今天刚更新工具,看着像bug又出现了
插件使用报错引入插件报错:[non-writable] modification of global variable "App" is not allowed when using plugins at app.json.
2021-03-10app.json: "useExtendedLib": {"weui": true} json: "usingComponents": { "mp-dialog": "weui-miniprogram/slideview/slideview"} wxml: <mp-dialog title="test" show="{{false}}" bindbuttontap="tapDialogButton" buttons="{{[{text: '取消'}, {text: '确认'}]}}"> asdfasdf </mp-dialog>
slideview按照示例做的没有效果呢,左滑不生效。https://developers.weixin.qq.com/miniprogram/dev/extended/weui/slideview.html按照示例做的没有效果呢,左滑不生效。 { "usingComponents": { "mp-cells": "/weui-miniprogram/cells/cells", "mp-cell": "/weui-miniprogram/cell/cell", "mp-slideview": "/weui-miniprogram/slideview/slideview" } } this.setData({ slideButtons: [{ text: '普通', src: '/images/basics_cur.png', },{ text: '普通', extClass: 'test', src: '/images/basics_cur.png', },{ type: 'warn', text: '警示', extClass: 'test', src: '/images/basics_cur.png', }], }); <view class="page padding"> <view class="page__hd"> <view class="page__title">Slideview</view> <view class="page__desc">左滑操作</view> </view> <view class="page__bd"> <view class="weui-cells"> <mp-slideview buttons="{{slideButtons}}" bindbuttontap="slideButtonTap"> <mp-cell value="左滑可以删除" footer="说明文字"></mp-cell> </mp-slideview> </view> <view class="weui-slidecells"> <mp-slideview buttons="{{slideButtons}}" icon="{{true}}" bindbuttontap="slideButtonTap"> <view class="weui-slidecell"> 左滑可以删除(图标Button) </view> </mp-slideview> </view> </view> </view>
2021-03-04