Skip to content
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

basicModal组件通过ref调用内部方法 #194

Open
RonLeeLi opened this issue Nov 6, 2022 · 1 comment
Open

basicModal组件通过ref调用内部方法 #194

RonLeeLi opened this issue Nov 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@RonLeeLi
Copy link

RonLeeLi commented Nov 6, 2022

设置 ref="modalRef"
期望:使用ref调用方法
实际: 如:modalRef.value.closeModal() 无法获取到closeModal方法

是否是 basicModal组件没有将方法通过expose暴露出去,导致外部无法通过ref调用

@jekip jekip added the enhancement New feature or request label Nov 6, 2022
@jekip
Copy link
Owner

jekip commented Nov 6, 2022

对,下个版本 expose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants