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

建议: 给组件添加一个自定义class属性 #49

Open
2460392754 opened this issue May 25, 2020 · 1 comment
Open

建议: 给组件添加一个自定义class属性 #49

2460392754 opened this issue May 25, 2020 · 1 comment

Comments

@2460392754
Copy link
Collaborator

2460392754 commented May 25, 2020

添加这样一个属性能够方便开发者在小程序环境(例如微信小程序)中使用组件添加的class时候,能够直接添加在组件本身上,而不是在shadow-root的容器标签上

例如:

<u-button :custom-class="customClass">雪月夜</u-button>
@lazyrm
Copy link

lazyrm commented Jun 1, 2020

我也又同等需求,目前u-field 使用过程中遇到同等问题,在H5情况下 可以直接在当前页面覆盖css解决,在小程序中就麻烦了,只能用important解决

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