Merge branch 'master' into v4
commit
641b84a34a
|
@ -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;
|
||||||
|
}, {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue