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>
app.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>
我也遇到这样的问题,请问下有解决了吗?
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)