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-ui不兼容 #11

Closed
zzzgit opened this issue Jun 19, 2017 · 1 comment
Closed

跟element-ui不兼容 #11

zzzgit opened this issue Jun 19, 2017 · 1 comment

Comments

@zzzgit
Copy link

zzzgit commented Jun 19, 2017

element-ui的dialog,内容不是马上渲染的,只会在第一次open之后,才会渲染
这个插件,在dialog中,不生效,在其他地方,正常
可否修复一下这个bug?调用directive的时候,检查一下是否已经成功初始化,如果没有,尝试再去初始化一次?

@zhuowenli zhuowenli added the bug label Jul 14, 2017
@zhuowenli
Copy link
Owner

zhuowenli commented Jul 17, 2017

看了下 clipboard.js 的 issue,上面也有类似的问题:
zenorocha/clipboard.js#155

不过在v1.7.0中有提供了解决方案:
zenorocha/clipboard.js#368 (review)

我这边也把相关依赖升级到1.7.1了,同时会去尝试添加一个 container 配置来解决这个问题。

保险起见,你可以在弹窗中调用这个directive的时候,给他加一个 model 属性,把dialog的class传进来:
image

zhuowenli added a commit that referenced this issue Jul 17, 2017
🐛 fixed #11, dialog issue
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

2 participants