Merge branch 'master' into v4

pull/5507/head
mertsincan 2024-02-11 08:47:11 +00:00
commit 641b84a34a
2 changed files with 6 additions and 2 deletions

View File

@ -323,7 +323,11 @@ export default {
// $attrs without `pt:*` // $attrs without `pt:*`
return Object.entries(this.$attrs || {}) return Object.entries(this.$attrs || {})
.filter(([key]) => !key?.startsWith('pt:')) .filter(([key]) => !key?.startsWith('pt:'))
.reduce((acc, [key, value]) => (acc[key] = value) && acc, {}); .reduce((acc, [key, value]) => {
acc[key] = value;
return acc;
}, {});
} }
} }
}; };

View File

@ -32,7 +32,7 @@ export default {
emits: ['update:modelValue', 'change', 'focus', 'blur'], emits: ['update:modelValue', 'change', 'focus', 'blur'],
methods: { methods: {
getPTOptions(key) { getPTOptions(key) {
const _ptm = root === 'root' ? this.ptmi : this.ptm; const _ptm = key === 'root' ? this.ptmi : this.ptm;
return _ptm(key, { return _ptm(key, {
context: { context: {