WeUI 在真机预览中为什么不生效?
引用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>