@tuya-miniapp/smart-ui 2.7.2-beta-1 → 2.7.2-beta-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.
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="{{prefix}}-hidden-image"
|
|
19
19
|
style="{{img_hidden_light}}"
|
|
20
20
|
/>
|
|
21
|
-
<text wx:else class="{{prefix}}-number-text">{{ item <= -1 || item > maxNum ? '' : item }}</text>
|
|
21
|
+
<text wx:else class="{{prefix}}-number-text smart-manrope">{{ item <= -1 || item > maxNum ? '' : item }}</text>
|
|
22
22
|
</view>
|
|
23
23
|
</view>
|
|
24
24
|
<view class="{{prefix}}-operate-wrap">
|
|
@@ -302,9 +302,7 @@ SmartComponent({
|
|
|
302
302
|
},
|
|
303
303
|
getValue() {
|
|
304
304
|
const { data } = this;
|
|
305
|
-
return
|
|
306
|
-
? data.options[data.currentIndex][data.valueKey]
|
|
307
|
-
: data.options[data.currentIndex];
|
|
305
|
+
return data.options[data.currentIndex];
|
|
308
306
|
},
|
|
309
307
|
activeIndexChange(index) {
|
|
310
308
|
let currentIndex = ((index + 1) % this.data.options.length) - 1;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="{{prefix}}-hidden-image"
|
|
19
19
|
style="{{img_hidden_light}}"
|
|
20
20
|
/>
|
|
21
|
-
<text wx:else class="{{prefix}}-number-text">{{ item <= -1 || item > maxNum ? '' : item }}</text>
|
|
21
|
+
<text wx:else class="{{prefix}}-number-text smart-manrope">{{ item <= -1 || item > maxNum ? '' : item }}</text>
|
|
22
22
|
</view>
|
|
23
23
|
</view>
|
|
24
24
|
<view class="{{prefix}}-operate-wrap">
|
|
@@ -308,9 +308,7 @@ var getId = function () {
|
|
|
308
308
|
},
|
|
309
309
|
getValue: function () {
|
|
310
310
|
var data = this.data;
|
|
311
|
-
return
|
|
312
|
-
? data.options[data.currentIndex][data.valueKey]
|
|
313
|
-
: data.options[data.currentIndex];
|
|
311
|
+
return data.options[data.currentIndex];
|
|
314
312
|
},
|
|
315
313
|
activeIndexChange: function (index) {
|
|
316
314
|
var currentIndex = ((index + 1) % this.data.options.length) - 1;
|