mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
parent
fef42fd089
commit
87db9bd87d
@ -113,9 +113,10 @@ export default defineComponent({
|
||||
onKeypress,
|
||||
onKeyup,
|
||||
} = attrs as HTMLAttributes;
|
||||
const globalProps = Object.keys({ ...others, ...attrs }).reduce((prev, key) => {
|
||||
const othersAndAttrs = { ...others, ...attrs };
|
||||
const globalProps = Object.keys(othersAndAttrs).reduce((prev, key) => {
|
||||
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
||||
prev[key] = others[key];
|
||||
prev[key] = othersAndAttrs[key];
|
||||
}
|
||||
return prev;
|
||||
}, {});
|
||||
|
Loading…
Reference in New Issue
Block a user