@tuya-miniapp/smart-ui 2.6.4-beta-8 → 2.6.4-beta-9

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.
@@ -6,6 +6,8 @@
6
6
  style="{{ computed.rootStyle({ itemHeight, visibleItemCount }) }}"
7
7
  instanceId="{{instanceId}}"
8
8
  id="{{instanceId}}"
9
+ data-isdestroy="{{isDestroy}}"
10
+ data-changeanimation="{{changeAnimation}}"
9
11
  data-options="{{options}}"
10
12
  data-valuekey="{{valueKey}}"
11
13
  data-itemheight="{{itemHeight}}"
@@ -13,13 +15,16 @@
13
15
  data-activeindex="{{activeIndex}}"
14
16
  data-loop="{{loop}}"
15
17
  data-animationtime="{{animationTime}}"
18
+ isdestroy="{{isDestroy}}"
16
19
  options="{{options}}"
17
20
  activeindex="{{activeIndex}}"
21
+ changeanimation="{{changeAnimation}}"
18
22
  loop="{{loop}}"
19
23
  valuekey="{{valueKey}}"
20
24
  itemheight="{{itemHeight}}"
21
25
  visibleitemcount="{{visibleItemCount}}"
22
26
  animationtime="{{animationTime}}"
27
+ change:isdestroy="{{computed.updateValue(instanceId, 'isDestroy')}}"
23
28
  change:options="{{computed.updateValue(instanceId, 'options')}}"
24
29
  change:valuekey="{{computed.updateValue(instanceId,'valueKey')}}"
25
30
  change:itemheight="{{computed.updateValue(instanceId,'itemHeight')}}"
@@ -33,42 +38,16 @@
33
38
  bind:touchend="{{computed.touchEnd(instanceId)}}"
34
39
  bind:touchcancel="{{computed.touchEnd(instanceId)}}"
35
40
  >
36
- <view
37
- id="options"
38
- class="smart-picker-column__offset"
39
- style="height: {{ itemHeight * options.length }}px;{{ computed.wrapperStyle({ offset, itemHeight, visibleItemCount, animate, duration, renderStart, unit, loop }) }}"
40
- >
41
- <view class="smart-picker-column__visual">
42
- <view class="smart-picker-column__visual__item_1">
43
- <view
44
- wx:for="{{ computed.sliceArray(viewOptions, 0, 10) }}"
45
- wx:key="index"
46
- data-index="{{item}}"
47
- style="{{computed.wrapperItemStyle({ itemHeight, animationIndex, index: item, visibleItemCount })}}"
48
- class="smart-picker-column__item_{{index}} {{ computed.wrapperItemClass({ index: item, animationIndex, options })}}"
49
- bind:tap="{{computed.tapItem(instanceId)}}"
50
- >
51
- <view
52
- class="smart-picker-column__item__text"
53
- style="{{computed.wrapperItemTextStyle({ fontStyle, activeStyle, index: item, animationIndex })}}"
54
- ></view>
55
- </view>
56
- </view>
57
- <view class="smart-picker-column__visual__item_2">
58
- <view
59
- wx:for="{{ computed.sliceArray(viewOptions, 10) }}"
60
- wx:key="index"
61
- data-index="{{item}}"
62
- style="{{computed.wrapperItemStyle({ itemHeight, fontStyle, activeStyle: item === currentIndex ? activeStyle : '', animationIndex, index: item, visibleItemCount })}}"
63
- class="smart-picker-column__item_{{index + 10}} {{ computed.wrapperItemClass({ index: item, animationIndex, options })}}"
64
- bind:tap="{{computed.tapItem(instanceId)}}"
65
- >
66
- <view
67
- class="smart-picker-column__item__text"
68
- style="{{computed.wrapperItemTextStyle({ fontStyle, activeStyle, index: item, animationIndex })}}"
69
- ></view>
70
- </view>
71
- </view>
41
+ <view class="smart-picker-column__offset" style="{{ computed.wrapperStyle({ animationIndex, itemHeight, animationTime, unit, moving, optionsVIndexList, options, valueKey, visibleItemCount, loop, changeAnimation }) }}" id="options">
42
+ <view
43
+ wx:for="{{ optionsVIndexList }}"
44
+ wx:for-item="optionIndex"
45
+ wx:key="index"
46
+ data-index="{{index}}"
47
+ style="{{computed.wrapperItemStyle({ itemHeight, index, visibleItemCount, fontStyle, activeStyle, instanceId, index, optionsVIndexList, animationIndex, options })}}"
48
+ class="smart-picker-column__item_{{index}} smart-ellipsis {{ computed.wrapperItemClass({ index, animationIndex, optionsVIndexList, instanceId, options })}}"
49
+ bind:tap="{{computed.tapItem(instanceId)}}"
50
+ >
72
51
  </view>
73
52
  </view>
74
53
  <view wx:if="{{unit}}" class="smart-picker-column__unit" style="height: {{ itemHeight }}px">