greenPro/unpackage/dist/dev/mp-weixin/pages/extUI/swipe-action/swipe-action.wxml

1 line
2.9 KiB
Plaintext

<view class="container"><uni-card wx:if="{{a}}" u-s="{{['d']}}" u-i="0d4ae53c-0" bind:__l="__l" u-p="{{a}}"><text class="uni-h6">通过滑动触发选项的容器,容器内可放置列表等组件,通过左右滑动来触发一些操作。</text></uni-card><uni-section wx:if="{{b}}" u-i="0d4ae53c-1" bind:__l="__l" u-p="{{b}}"></uni-section><uni-swipe-action u-s="{{['d']}}" u-i="0d4ae53c-2" bind:__l="__l"><uni-swipe-action-item wx:if="{{e}}" u-s="{{['d']}}" bindclick="{{d}}" u-i="0d4ae53c-3,0d4ae53c-2" bind:__l="__l" u-p="{{e}}"><view class="content-box" bindtap="{{c}}"><text class="content-text">使用数据填充</text></view></uni-swipe-action-item><uni-swipe-action-item u-s="{{['left','right','d']}}" bindclick="{{i}}" u-i="0d4ae53c-4,0d4ae53c-2" bind:__l="__l"><view class="slot-button" slot="left"><text class="slot-button-text" bindtap="{{f}}">置顶</text></view><view class="content-box" bindtap="{{g}}"><text class="content-text">使用左右插槽</text></view><view class="slot-button" bindtap="{{h}}" slot="right"><text class="slot-button-text">删除</text></view></uni-swipe-action-item><uni-swipe-action-item wx:if="{{m}}" u-s="{{['left','d']}}" bindclick="{{l}}" u-i="0d4ae53c-5,0d4ae53c-2" bind:__l="__l" u-p="{{m}}"><view class="slot-button" slot="left"><text class="slot-button-text" bindtap="{{j}}">置顶</text></view><view class="content-box" bindtap="{{k}}"><text class="content-text">数据与插槽混合使用</text></view></uni-swipe-action-item></uni-swipe-action><uni-section wx:if="{{n}}" u-i="0d4ae53c-6" bind:__l="__l" u-p="{{n}}"></uni-section><uni-swipe-action u-s="{{['d']}}" u-i="0d4ae53c-7" bind:__l="__l"><uni-swipe-action-item wx:if="{{o}}" u-s="{{['d']}}" u-i="0d4ae53c-8,0d4ae53c-7" bind:__l="__l" u-p="{{o}}"><view class="content-box"><text class="content-text">禁止左右滚动</text></view></uni-swipe-action-item></uni-swipe-action><uni-section wx:if="{{p}}" u-i="0d4ae53c-9" bind:__l="__l" u-p="{{p}}"></uni-section><view class="example-body"><view class="button" bindtap="{{r}}"><text class="button-text">当前状态:{{q}}</text></view></view><uni-swipe-action u-s="{{['d']}}" u-i="0d4ae53c-10" bind:__l="__l"><uni-swipe-action-item wx:if="{{v}}" u-s="{{['d']}}" bindchange="{{s}}" bindclick="{{t}}" u-i="0d4ae53c-11,0d4ae53c-10" bind:__l="__l" u-p="{{v}}"><view class="content-box"><text class="content-text">使用变量控制SwipeAction的开启状态</text></view></uni-swipe-action-item></uni-swipe-action><uni-section wx:if="{{w}}" u-i="0d4ae53c-12" bind:__l="__l" u-p="{{w}}"></uni-section><uni-swipe-action class="r" u-s="{{['d']}}" u-r="swipeAction" u-i="0d4ae53c-13" bind:__l="__l"><uni-swipe-action-item wx:for="{{x}}" wx:for-item="item" wx:key="b" u-s="{{['d']}}" bindchange="{{item.c}}" bindclick="{{item.d}}" u-i="{{item.e}}" bind:__l="__l" u-p="{{item.f}}"><view class="content-box"><text class="content-text">{{item.a}}</text></view></uni-swipe-action-item></uni-swipe-action></view>