企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 有时在微信小程序中需要对组件的样式进行修改 微信小程序官方文档中 [组件模板和样式 | 微信开放文档 ](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html)要求设置`styleIsolation`才可开放自定义组件的外部设置; # 在JS中添加设置 ```js export default { options: { styleIsolation: 'shared' } } ``` > 本文作者:yatoku