diff --git a/components/base/ComponentBase.vue b/components/base/ComponentBase.vue index a8b4a2576..829a748fd 100644 --- a/components/base/ComponentBase.vue +++ b/components/base/ComponentBase.vue @@ -12,6 +12,9 @@ export default { 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); } } }; diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index 443448ddb..7c4beb618 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -1,7 +1,7 @@