mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Update componentbase structure
This commit is contained in:
parent
9fef4a19c5
commit
90be0a29c3
18 changed files with 16 additions and 15 deletions
|
@ -1,21 +0,0 @@
|
|||
<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>
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"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