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

el-switch 无法兼容长文字。并且width 属性无效 #559

Closed
xjcloudy opened this issue Oct 21, 2016 · 3 comments
Closed

el-switch 无法兼容长文字。并且width 属性无效 #559

xjcloudy opened this issue Oct 21, 2016 · 3 comments

Comments

@xjcloudy
Copy link

在线演示地址

如图所示:
image

width 属性有bug。

@Leopoldthecoder
Copy link
Contributor

fixed in #477

@rustbomber
Copy link

补充:设置了width后,控制台显示:
vue.js?3de6:2611[Vue warn]: Invalid prop: type check failed for prop "width". Expected Number, got String.
(found in component )
但width值就是数值。

@jikkai
Copy link
Contributor

jikkai commented Oct 25, 2016

@akaylh 非字符串绑定使用动态Props,http://vuejs.org/guide/components.html#Dynamic-Props

⭕<... :width="120">
❌<... width="120">

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

4 participants