mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Rename componentbase
with basecomponent
This commit is contained in:
parent
01c151b799
commit
fa0241d46c
16 changed files with 35 additions and 35 deletions
21
components/lib/basecomponent/BaseComponent.vue
Normal file
21
components/lib/basecomponent/BaseComponent.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
import { ObjectUtils } from 'primevue/utils';
|
||||
|
||||
export default {
|
||||
name: 'BaseComponent',
|
||||
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>
|
Loading…
Add table
Add a link
Reference in a new issue