引用WeUI,复制官方文档中代码,在开发工具中显示正常,但真机预览的时候样式不生效
"useExtendedLib": {
"weui": true
},
"componentFramework": "glass-easel",
"sitemapLocation": "sitemap.json",
"lazyCodeLoading": "requiredComponents",
"usingComponents": {
"navigation-bar": "/components/navigation-bar/navigation-bar",
"mp-dialog": "weui-miniprogram/dialog/dialog",
"mp-icon": "weui-miniprogram/icon/icon"
}
<scroll-view class="scrollarea" scroll-y type="list">
<view class="container">
这里是首页
<mp-icon type="field" icon="add" color="black" size="{{25}}"></mp-icon>
<mp-icon icon="add" color="black" size="{{25}}"></mp-icon>
<mp-dialog title="test" show="{{true}}" bindbuttontap="tapDialogButton" buttons="{{buttons}}">
<view>
test content
</view>
</mp-dialog>
</view>
</scroll-view>
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。