ant-design-vue
ant-design-vue copied to clipboard
Button的v_skip是true,不能通过ref方式获取到渲染出的HTML button
trafficstars
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Version
undefined
Environment
Vue 3.4
Reproduction link
https://www.antdv.com/components/button-cn
Steps to reproduce
- Using
refto bind the button to a ref constantBtnRef
What is expected?
Using BtnRef to get HTMLElement
What is actually happening?
返回的ref只有focus和blur两个函数。 我实际上是在用ClipboardJS这个库,然后它强制需要绑定到元素才给用 目前除了手动的选择器以外,暂时没办法获取AButton渲染出的HTML Button标签
我想的是,既然我有ref可以绑定元素,那似乎没必要像jquery那样去select元素了吧? 现在暂时是通过自定义了一个id去解决
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days