Rename componentbase with basecomponent

This commit is contained in:
mertsincan 2023-03-31 22:51:41 +01:00
parent 01c151b799
commit fa0241d46c
16 changed files with 35 additions and 35 deletions

View 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>