Merge branch 'master' into v4
commit
641b84a34a
|
@ -323,7 +323,11 @@ export default {
|
|||
// $attrs without `pt:*`
|
||||
return Object.entries(this.$attrs || {})
|
||||
.filter(([key]) => !key?.startsWith('pt:'))
|
||||
.reduce((acc, [key, value]) => (acc[key] = value) && acc, {});
|
||||
.reduce((acc, [key, value]) => {
|
||||
acc[key] = value;
|
||||
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@ export default {
|
|||
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
||||
methods: {
|
||||
getPTOptions(key) {
|
||||
const _ptm = root === 'root' ? this.ptmi : this.ptm;
|
||||
const _ptm = key === 'root' ? this.ptmi : this.ptm;
|
||||
|
||||
return _ptm(key, {
|
||||
context: {
|
||||
|
|
Loading…
Reference in New Issue