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

className 在微信小程序端不生效 #1289

Open
liuweiGL opened this issue Sep 27, 2024 · 0 comments
Open

className 在微信小程序端不生效 #1289

liuweiGL opened this issue Sep 27, 2024 · 0 comments

Comments

@liuweiGL
Copy link

组件

ALL

APP

微信小程序

组件库版本

latest

解决方案

在 component 构造器中传递 externalClasses 参数

Component({
  externalClasses : ['custom-class']
})

组件 wxml

<view class="ant-xxx custom-class">xxx</view>

参考文档 外部样式类

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