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

Element- el-date-picker 隐藏输入框 通过按钮实现弹出 #56

Open
PleaseStartYourPerformance opened this issue Dec 2, 2021 · 0 comments

Comments

@PleaseStartYourPerformance
Copy link
Owner

1.需要在HTML中添加一个日期时间选择器,但是设置为 v-show=false,不显示。
2.给它设置一个ref标识,在需要选择自定义时间时,直接通过this.r e f s . d a t e P i c k e r R e f 找 到 该 组 件 , 然 后 refs.datePickerRef找到该组件,然后refs.datePickerRef找到该组件,然后el表示组件元素,通过调用click点击事件控制选择器显示。

image

image

image

原文链接:https://blog.csdn.net/IT_iosers/article/details/116202792

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

No branches or pull requests

1 participant