-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat Tag CheckableTag #2400
Feat Tag CheckableTag #2400
Conversation
class={this.getTagClassName(prefixCls)} | ||
style={this.getTagStyle()} | ||
> | ||
<span v-show={visible} class={this.getTagClassName(prefixCls)} style={this.getTagStyle()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
事件不需要了吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没注意这个不是根节点,那我加上 {...omit(this.$attr,['close'])}
就行了吗?要不要过滤掉不是 on 开头的 attr 呢? @Amour1688
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
['onClose']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里还真不需要 单独挂载事件
没有设置 inheritAttrs: false, 的情况下,事件也会被默认挂载到 根节点上
这里的 close 事件绑定到根节点也没关系
😓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像是这样的,我一开始以为根节点是指的 Wave 组件上,不会往下传了。现在测了下应该是挂载到了实际的根节点上。
有冲突,还有尽量保持 commit 记录整洁 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
First of all, thank you for your contribution! 😄
New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!
[中文版模板 / Chinese template]
This is a ...
请注意有个破坏性更改,Tag使用时需要用 v-model:visible 不能使用 v-model 控制现隐。 CheckableTag 需要使用 v-model:checked 不能使用 v-model 控制是否被选中