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

1 line
5.3 KiB
Plaintext

<view><uni-card wx:if="{{a}}" u-s="{{['d']}}" u-i="5f93fc88-0" bind:__l="__l" u-p="{{a}}"><text class="uni-h6">折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。</text></uni-card><uni-section wx:if="{{j}}" u-s="{{['d']}}" u-i="5f93fc88-1" bind:__l="__l" u-p="{{j}}"><uni-collapse wx:if="{{i}}" class="r" u-s="{{['d']}}" u-r="collapse" bindchange="{{g}}" u-i="5f93fc88-2,5f93fc88-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><uni-collapse-item wx:if="{{c}}" u-s="{{['d']}}" u-i="5f93fc88-3,5f93fc88-2" bind:__l="__l" u-p="{{c}}"><view class="content"><text class="text">{{b}}</text></view></uni-collapse-item><uni-collapse-item wx:if="{{d}}" u-s="{{['d']}}" u-i="5f93fc88-4,5f93fc88-2" bind:__l="__l" u-p="{{d}}"><view class="content"><text class="text">折叠内容主体,这是一段比较长内容。默认折叠主要内容,只显示当前项标题。点击标题展开,才能看到这段文字。再次点击标题,折叠内容。</text></view></uni-collapse-item><uni-collapse-item wx:if="{{e}}" u-s="{{['d']}}" u-i="5f93fc88-5,5f93fc88-2" bind:__l="__l" u-p="{{e}}"><view class="content"><text class="text">禁用状态内容主体,页面上是看不到这段话的。</text></view></uni-collapse-item></uni-collapse></uni-section><button class="button" type="primary" bindtap="{{k}}">动态修改内容</button><uni-section wx:if="{{n}}" u-s="{{['d']}}" u-i="5f93fc88-6" bind:__l="__l" u-p="{{n}}"><uni-collapse u-s="{{['d']}}" u-i="5f93fc88-7,5f93fc88-6" bind:__l="__l"><uni-collapse-item wx:if="{{l}}" u-s="{{['d']}}" u-i="5f93fc88-8,5f93fc88-7" bind:__l="__l" u-p="{{l}}"><view class="content"><text class="text">默认开启组件动画,使用动画效果折叠内容会有一个从上到下的动画。</text></view></uni-collapse-item><uni-collapse-item wx:if="{{m}}" u-s="{{['d']}}" u-i="5f93fc88-9,5f93fc88-7" bind:__l="__l" u-p="{{m}}"><view class="content"><text class="text">设置 show-animation="false",关闭当前组件动画效果。</text></view></uni-collapse-item></uni-collapse></uni-section><uni-section wx:if="{{v}}" u-s="{{['d']}}" u-i="5f93fc88-10" bind:__l="__l" u-p="{{v}}"><uni-collapse wx:if="{{t}}" u-s="{{['d']}}" bindchange="{{r}}" u-i="5f93fc88-11,5f93fc88-10" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"><uni-collapse-item wx:if="{{o}}" u-s="{{['d']}}" u-i="5f93fc88-12,5f93fc88-11" bind:__l="__l" u-p="{{o}}"><view class="content"><text class="text">手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。</text></view></uni-collapse-item><uni-collapse-item wx:if="{{p}}" u-s="{{['d']}}" u-i="5f93fc88-13,5f93fc88-11" bind:__l="__l" u-p="{{p}}"><view class="content"><text class="text">手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。</text></view></uni-collapse-item><uni-collapse-item wx:if="{{q}}" u-s="{{['d']}}" u-i="5f93fc88-14,5f93fc88-11" bind:__l="__l" u-p="{{q}}"><view class="content"><text class="text">手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。</text></view></uni-collapse-item></uni-collapse></uni-section><uni-section wx:if="{{y}}" u-s="{{['d']}}" u-i="5f93fc88-15" bind:__l="__l" u-p="{{y}}"><uni-collapse u-s="{{['d']}}" u-i="5f93fc88-16,5f93fc88-15" bind:__l="__l"><uni-collapse-item wx:if="{{w}}" u-s="{{['d']}}" u-i="5f93fc88-17,5f93fc88-16" bind:__l="__l" u-p="{{w}}"><view class="content"><text class="text">折叠内容主体,可自定义内容及样式</text></view></uni-collapse-item><uni-collapse-item wx:if="{{x}}" u-s="{{['d']}}" u-i="5f93fc88-18,5f93fc88-16" bind:__l="__l" u-p="{{x}}"><view class="content"><text class="text">折叠内容主体,可自定义内容及样式</text></view></uni-collapse-item></uni-collapse></uni-section><uni-section wx:if="{{J}}" u-s="{{['d']}}" u-i="5f93fc88-19" bind:__l="__l" u-p="{{J}}"><uni-collapse u-s="{{['d']}}" u-i="5f93fc88-20,5f93fc88-19" bind:__l="__l"><uni-collapse-item wx:if="{{A}}" u-s="{{['title','d']}}" u-i="5f93fc88-21,5f93fc88-20" bind:__l="__l" u-p="{{A}}"><uni-list u-s="{{['d']}}" u-i="5f93fc88-22,5f93fc88-21" bind:__l="__l" slot="title"><uni-list-item wx:if="{{z}}" u-i="5f93fc88-23,5f93fc88-22" bind:__l="__l" u-p="{{z}}"></uni-list-item></uni-list><view class="content"><text class="text">折叠内容主体,可自定义内容及样式</text></view></uni-collapse-item><uni-collapse-item wx:if="{{I}}" u-s="{{['d']}}" u-i="5f93fc88-24,5f93fc88-20" bind:__l="__l" u-p="{{I}}"><uni-list u-s="{{['d']}}" u-i="5f93fc88-25,5f93fc88-24" bind:__l="__l"><uni-list-item wx:if="{{B}}" u-i="5f93fc88-26,5f93fc88-25" bind:__l="__l" u-p="{{B}}"></uni-list-item><uni-list-item wx:if="{{C}}" u-i="5f93fc88-27,5f93fc88-25" bind:__l="__l" u-p="{{C}}"></uni-list-item><uni-list-item wx:if="{{D}}" u-i="5f93fc88-28,5f93fc88-25" bind:__l="__l" u-p="{{D}}"></uni-list-item><uni-list-item wx:if="{{E}}" u-i="5f93fc88-29,5f93fc88-25" bind:__l="__l" u-p="{{E}}"></uni-list-item><uni-list-item wx:if="{{F}}" u-i="5f93fc88-30,5f93fc88-25" bind:__l="__l" u-p="{{F}}"></uni-list-item><uni-list-item wx:if="{{H}}" bindclick="{{G}}" u-i="5f93fc88-31,5f93fc88-25" bind:__l="__l" u-p="{{H}}"></uni-list-item></uni-list></uni-collapse-item></uni-collapse></uni-section></view>