UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

2 lines (1 loc) 434 B
import{ObjectUtils as t}from"primevue/utils";var e={name:"BaseComponent",props:{pt:{type:Object,value:{}}},methods:{getPTItem(e={},s=""){const r=t.convertToFlatCase(s);return e[Object.keys(e).find((e=>t.convertToFlatCase(e)===r))||""]},ptm(e="",s={}){return t.getItemValue(this.getPTItem(this.pt,e),{props:this.$props,state:this.$data,...s})},ptmo(e={},s="",r={}){return t.getItemValue(this.getPTItem(e,s),r)}}};export{e as default};