onu-ui / onu-ui

Bullheaded and lightweight UnoCSS ui library.

Home Page:https://onu.zyob.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - Button按钮组件的源码中v-bind了useAttrs,未关闭组件的Attributes 继承,导致属性重复

euwei7 opened this issue · comments

commented

Describe the bug

我大概浏览了一下Button的实现方式,发现源码中的v-bind有问题。
如果binds合并了useAttrs(),那应该关闭组件的Attributes 继承,否则会导致属性重复。

问题代码:

// button.vue
const binds = Object.assign({}, useAttrs(), props.to ? { href: props.to } : {})

Reproduction

Playground

System Info

No response

Used Package Manager

npm

Validations