@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.
- package/dist/common/utils.d.ts +0 -1
- package/dist/common/utils.js +0 -7
- package/dist/datetime-picker/index.js +2 -2
- package/dist/image/index.js +1 -1
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.js +11 -4
- package/dist/picker/index.wxml +4 -3
- package/dist/picker/index.wxs +1 -1
- package/dist/picker/index.wxss +1 -1
- package/dist/picker/shared.d.ts +11 -0
- package/dist/picker/shared.js +11 -0
- package/dist/picker-column/index.css +1 -1
- package/dist/picker-column/index.js +192 -77
- package/dist/picker-column/index.wxml +15 -36
- package/dist/picker-column/index.wxs +510 -399
- package/dist/picker-column/index.wxss +1 -1
- package/dist/wxs/utils.wxs +42 -1
- package/lib/common/utils.d.ts +0 -1
- package/lib/common/utils.js +1 -9
- package/lib/datetime-picker/index.js +3 -3
- package/lib/image/index.js +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +13 -4
- package/lib/picker/index.wxml +4 -3
- package/lib/picker/index.wxs +1 -1
- package/lib/picker/index.wxss +1 -1
- package/lib/picker/shared.d.ts +11 -0
- package/lib/picker/shared.js +11 -0
- package/lib/picker-column/index.css +1 -1
- package/lib/picker-column/index.js +192 -83
- package/lib/picker-column/index.wxml +15 -36
- package/lib/picker-column/index.wxs +510 -399
- package/lib/picker-column/index.wxss +1 -1
- package/lib/wxs/utils.wxs +42 -1
- package/package.json +1 -1
- package/dist/wxs/strToStyleObject.wxs +0 -10
- package/lib/wxs/strToStyleObject.wxs +0 -10
|
@@ -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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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">
|