mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update ComponentBase path
This commit is contained in:
parent
c14c2f160e
commit
a8b6598bf7
4 changed files with 2 additions and 2 deletions
21
components/lib/base/ComponentBase.vue
Normal file
21
components/lib/base/ComponentBase.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
import { ObjectUtils } from 'primevue/utils';
|
||||
|
||||
export default {
|
||||
name: 'ComponentBase',
|
||||
props: {
|
||||
pt: {
|
||||
type: Object,
|
||||
value: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
ptm(key = '', params = {}) {
|
||||
return ObjectUtils.getItemValue((this.pt || {})[key.toLowerCase()], { props: this.$props, state: this.$data, ...params });
|
||||
},
|
||||
ptmo(obj = {}, key = '', params = {}) {
|
||||
return ObjectUtils.getItemValue(obj[key.toLowerCase()], params);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
8
components/lib/base/package.json
Normal file
8
components/lib/base/package.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"main": "./componentbase.cjs.js",
|
||||
"module": "./componentbase.esm.js",
|
||||
"unpkg": "./componentbase.min.js",
|
||||
"browser": {
|
||||
"./sfc": "./ComponentBase.vue"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue