ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Button的v_skip是true,不能通过ref方式获取到渲染出的HTML button

Open shaoerkuai opened this issue 1 year ago • 1 comments
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

  1. Using ref to bind the button to a ref constant BtnRef

What is expected?

Using BtnRef to get HTMLElement

What is actually happening?

返回的ref只有focus和blur两个函数。 我实际上是在用ClipboardJS这个库,然后它强制需要绑定到元素才给用 目前除了手动的选择器以外,暂时没办法获取AButton渲染出的HTML Button标签

我想的是,既然我有ref可以绑定元素,那似乎没必要像jquery那样去select元素了吧? 现在暂时是通过自定义了一个id去解决

shaoerkuai avatar Jun 27 '24 08:06 shaoerkuai

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

github-actions[bot] avatar Aug 27 '24 02:08 github-actions[bot]