引入方式
"useExtendedLib": {
"weui": true
},
page.json
"usingComponents": {
"mp-navigation-bar": "weui-miniprogram/navigation-bar/navigation-bar"
}
page.wxml
<mp-navigation-bar ext-class="navigation" animated="true" color="#ffffff" background="#161823" title="标题" back="{{false}}">
<slot name="left">
1234
</slot>
</mp-navigation-bar>
标题栏出来了但是左边内容没有
<view slot="left"> hello world </view>
这样用
查看mp-navigation-bar源码中是否有添加slot。如果有添加。你直接<mp-navigation-bar>1234</mp-navigation-bar>
useExtendedLib: {
weui: true
}
提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
https://developers.weixin.qq.com/s/5HetjomN70vb