Refactor #5257
parent
a4539ae307
commit
5d9ac9917d
|
@ -270,7 +270,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;
|
||||||
|
}, {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue