|
@@ -16,6 +16,10 @@
|
|
|
if (options.length) return ':' + options.join(' ');
|
|
if (options.length) return ':' + options.join(' ');
|
|
|
return ''
|
|
return ''
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ module.exports.options = function (options) {
|
|
|
|
|
+ return options.filter(function (option) { return !option.hide })
|
|
|
|
|
+ }
|
|
|
</wxs>
|
|
</wxs>
|
|
|
<!--module/chats/components/message-select/message-select.wxml-->
|
|
<!--module/chats/components/message-select/message-select.wxml-->
|
|
|
<view class="chat-card left">
|
|
<view class="chat-card left">
|
|
@@ -25,8 +29,8 @@
|
|
|
<view class="chat-card__content">
|
|
<view class="chat-card__content">
|
|
|
<t-cell t-class="cell-border-gradient" title="{{payload.title}}"></t-cell>
|
|
<t-cell t-class="cell-border-gradient" title="{{payload.title}}"></t-cell>
|
|
|
<scroll-view class="options-wrapper" type="custom" scroll-y style="height: {{_.maxHeight(options, itemHeight)}}px;" mark:type="options" bind:tap="handleTop">
|
|
<scroll-view class="options-wrapper" type="custom" scroll-y style="height: {{_.maxHeight(options, itemHeight)}}px;" mark:type="options" bind:tap="handleTop">
|
|
|
- <grid-builder list="{{options}}" cross-axis-count="3" cross-axis-gap="8" main-axis-gap="8" padding="{{[4,4,4,4]}}">
|
|
|
|
|
- <view slot:item slot:index class="card {{_.getClassName(item)}}" style="height: {{itemHeight}}px;" mark:item="{{item}}" mark:index="{{index}}">
|
|
|
|
|
|
|
+ <grid-builder list="{{_.options(options)}}" cross-axis-count="3" cross-axis-gap="8" main-axis-gap="8" padding="{{[4,4,4,4]}}">
|
|
|
|
|
+ <view slot:item slot:index class="card {{_.getClassName(item)}}" style="height: {{itemHeight}}px;" mark:item="{{item}}">
|
|
|
<t-icon wx:if="{{item.checked}}" name="check" t-class="card__icon" ariaHidden="{{true}}" />
|
|
<t-icon wx:if="{{item.checked}}" name="check" t-class="card__icon" ariaHidden="{{true}}" />
|
|
|
<text overflow="ellipsis" max-lines="2">{{item.name}}{{_.subName(item)}}</text>
|
|
<text overflow="ellipsis" max-lines="2">{{item.name}}{{_.subName(item)}}</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -63,8 +67,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="form-picker__content">
|
|
<view class="form-picker__content">
|
|
|
<scroll-view class="options-wrapper" type="custom" scroll-y style="height: {{_.maxHeight(subOptions, itemHeight)}}px;" mark:type="sub" bind:tap="handleSub">
|
|
<scroll-view class="options-wrapper" type="custom" scroll-y style="height: {{_.maxHeight(subOptions, itemHeight)}}px;" mark:type="sub" bind:tap="handleSub">
|
|
|
- <grid-builder list="{{subOptions}}" cross-axis-count="3" cross-axis-gap="8" main-axis-gap="8" padding="{{[4,4,4,4]}}">
|
|
|
|
|
- <view slot:item slot:index class="card {{_.getClassName(item)}}" style="height: {{itemHeight}}px;" mark:item="{{item}}" mark:index="{{index}}">
|
|
|
|
|
|
|
+ <grid-builder list="{{_.options(subOptions)}}" cross-axis-count="3" cross-axis-gap="8" main-axis-gap="8" padding="{{[4,4,4,4]}}">
|
|
|
|
|
+ <view slot:item slot:index class="card {{_.getClassName(item)}}" style="height: {{itemHeight}}px;" mark:item="{{item}}">
|
|
|
<t-icon wx:if="{{item.checked}}" name="check" t-class="card__icon" ariaHidden="{{true}}" />
|
|
<t-icon wx:if="{{item.checked}}" name="check" t-class="card__icon" ariaHidden="{{true}}" />
|
|
|
<text overflow="ellipsis" max-lines="2">{{item.name}}{{_.subName(item)}}</text>
|
|
<text overflow="ellipsis" max-lines="2">{{item.name}}{{_.subName(item)}}</text>
|
|
|
</view>
|
|
</view>
|