周波 发表于 2022-12-19 18:21:24

百度小程序为什么在 comment-list 评论列表组件绑定数据 toolbar-config="{{

为什么在 comment-list 评论列表组件绑定数据 toolbar-config="{{toolbarConfig}}" 时,动态配置 toolbarConfig 会导致 toolbar 只剩下输入框?

希望工程boss 发表于 2022-12-19 18:21:46

<p style="box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; color: rgb(0, 0, 0); font-family: Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Source Han Sans CN&quot;, Roboto, &quot;Microsoft Yahei&quot;, sans-serif;">重新赋值 toolbarConfig 导致覆盖掉了默认的配置。建议使用以下两种方式动态配置 toolbarConfig 。</p><p style="box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; color: rgb(0, 0, 0); font-family: Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Source Han Sans CN&quot;, Roboto, &quot;Microsoft Yahei&quot;, sans-serif;">1、</p><p style="box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; color: rgb(0, 0, 0); font-family: Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Source Han Sans CN&quot;, Roboto, &quot;Microsoft Yahei&quot;, sans-serif;"><img alt="默认图片" src="https://devforum.cdn.bcebos.com/mbdma/content_image/3d5544a06b6b2253169b18ff7244f2b0.png" class="upload-img" style="box-sizing: border-box; border: 0px; max-width: 100%; vertical-align: middle; display: block; margin-left: auto; margin-right: auto;"></p><p style="box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; color: rgb(0, 0, 0); font-family: Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Source Han Sans CN&quot;, Roboto, &quot;Microsoft Yahei&quot;, sans-serif;">2、</p><p style="box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; color: rgb(0, 0, 0); font-family: Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Source Han Sans CN&quot;, Roboto, &quot;Microsoft Yahei&quot;, sans-serif;"><img alt="默认图片" src="https://devforum.cdn.bcebos.com/mbdma/content_image/effae4b1d8848f94c0f6ffcb340c64eb.png" class="upload-img" style="box-sizing: border-box; border: 0px; max-width: 100%; vertical-align: middle; display: block; margin-left: auto; margin-right: auto;"></p><p></p>
页: [1]
查看完整版本: 百度小程序为什么在 comment-list 评论列表组件绑定数据 toolbar-config="{{