@cloudbase/weda-ui-mp 3.21.2 → 3.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<wxs module="tools"> function includes(array, item) { return array.map(function (v) { return v.value }).indexOf(item.value) !== -1 } module.exports = { includes: includes } </wxs>
|
|
2
|
-
<view class="weda-ui-custom-picker">
|
|
2
|
+
<view class="weda-ui-custom-picker wd-select-modal">
|
|
3
3
|
<view class="weda-ui-custom-mask" data-clear="false" bindtap="cancelPicker"></view>
|
|
4
4
|
<view class="weda-ui-custom-picker__inner" style="height: {{height}};">
|
|
5
5
|
<view wx:if="{{!focus}}" class="weda-ui-custom-picker__header">
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
</view>
|
|
20
20
|
<scroll-view wx:if="{{status !== -1}}" class="weda-ui-custom-picker__body" scroll-y="true" enhanced="true" bindscrolltolower="bindscrolltolower">
|
|
21
21
|
<view class="weda-ui-custom-picker__columns">
|
|
22
|
-
<view class="weda-ui-custom-picker__column">
|
|
23
|
-
<view wx:for="{{showOption}}" wx:key="i" wx:for-index="i" class="weda-ui-custom-picker__column-item {{multiple?'multiple':''}} {{ tools.includes(selectedCache, item) ? 'is-selected':''}} {{ (item.disabled) ? 'is-disabled':''}}" bindtap="onItemClick" data-value="{{item}}">
|
|
22
|
+
<view class="weda-ui-custom-picker__column wd-select-list">
|
|
23
|
+
<view wx:for="{{showOption}}" wx:key="i" wx:for-index="i" class="weda-ui-custom-picker__column-item wd-select-list-item {{multiple?'multiple':''}} {{ tools.includes(selectedCache, item) ? 'is-selected':''}} {{ (item.disabled) ? 'is-disabled':''}}" bindtap="onItemClick" data-value="{{item}}">
|
|
24
24
|
<text class="weda-ui-custom-picker__column-item-text {{multiple?'multiple':''}}">{{item.label||item.value}}</text>
|
|
25
25
|
</view>
|
|
26
26
|
<view wx:if="{{status === 1}}" class="weda-ui-custom-picker__status weda-ui-custom-picker__status--loading"> <i class="weda-ui-custom-picker__loading-icon"></i>加载中... </view>
|