@tuya-miniapp/smart-ui 2.9.3-beta-0 → 2.9.3-beta-2
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/dialog/dialog.d.ts +1 -0
- package/dist/dialog/dialog.js +1 -0
- package/dist/dialog/index.wxml +1 -1
- package/dist/picker/index.wxml +1 -0
- package/dist/picker-column/index.js +4 -0
- package/dist/picker-column/index.wxml +1 -1
- package/dist/picker-column/index.wxs +10 -0
- package/lib/dialog/dialog.d.ts +1 -0
- package/lib/dialog/dialog.js +1 -0
- package/lib/dialog/index.wxml +1 -1
- package/lib/picker/index.wxml +1 -0
- package/lib/picker-column/index.js +4 -0
- package/lib/picker-column/index.wxml +1 -1
- package/lib/picker-column/index.wxs +10 -0
- package/package.json +1 -1
package/dist/dialog/dialog.d.ts
CHANGED
package/dist/dialog/dialog.js
CHANGED
package/dist/dialog/index.wxml
CHANGED
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
size="large"
|
|
118
118
|
class="smart-dialog__button"
|
|
119
119
|
loading="{{ loading.confirm }}"
|
|
120
|
-
custom-class="smart-dialog__confirm {{
|
|
120
|
+
custom-class="smart-dialog__confirm {{ inputValue === '' && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
|
|
121
121
|
custom-style="color: {{ confirmButtonColor || 'var(--dialog-confirm-color, var(--app-B4-N1, rgba(0, 0, 0, 1)))' }}"
|
|
122
122
|
button-id="{{ confirmButtonId }}"
|
|
123
123
|
open-type="{{ confirmButtonOpenType }}"
|
package/dist/picker/index.wxml
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
options="{{ item.values }}"
|
|
27
27
|
disabled="{{ item.disabled || false }}"
|
|
28
28
|
unit="{{ item.unit || unit }}"
|
|
29
|
+
unit-gap="{{ item.unitGap }}"
|
|
29
30
|
changeAnimation="{{ changeAnimation }}"
|
|
30
31
|
default-index="{{ item.defaultIndex || defaultIndex }}"
|
|
31
32
|
active-index="{{ (item.activeIndex === null || item.activeIndex === undefined) ? activeIndex : item.activeIndex }}"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<view wx:if="{{unit}}" class="smart-picker-column__unit" style="height: {{ itemHeight }}px">
|
|
54
54
|
<view class="smart-picker-column__max-text" style="{{fontStyle}}">
|
|
55
55
|
{{ maxText }}
|
|
56
|
-
<view class="smart-picker-column__unit_text" >{{unit}}</view>
|
|
56
|
+
<view class="smart-picker-column__unit_text" style="{{computed.unitGapStyle(unitGap)}}">{{unit}}</view>
|
|
57
57
|
</view>
|
|
58
58
|
</view>
|
|
59
59
|
|
|
@@ -3,6 +3,15 @@ var style = require('../wxs/style.wxs');
|
|
|
3
3
|
var addUnit = require('../wxs/add-unit.wxs');
|
|
4
4
|
var wxUtils = require('../wxs/utils.wxs');
|
|
5
5
|
|
|
6
|
+
function unitGapStyle(unitGap) {
|
|
7
|
+
if (unitGap === undefined || unitGap === null) {
|
|
8
|
+
return '';
|
|
9
|
+
}
|
|
10
|
+
return style({
|
|
11
|
+
'margin-left': addUnit(unitGap)
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
6
15
|
function setStyle(ownerInstance, style, selector) {
|
|
7
16
|
var dom = wxUtils.queryComponent(ownerInstance, selector);
|
|
8
17
|
if (!dom) {
|
|
@@ -628,4 +637,5 @@ module.exports = {
|
|
|
628
637
|
touchMove: touchMove,
|
|
629
638
|
touchEnd: touchEnd,
|
|
630
639
|
tapItem: tapItem,
|
|
640
|
+
unitGapStyle: unitGapStyle,
|
|
631
641
|
};
|
package/lib/dialog/dialog.d.ts
CHANGED
package/lib/dialog/dialog.js
CHANGED
package/lib/dialog/index.wxml
CHANGED
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
size="large"
|
|
118
118
|
class="smart-dialog__button"
|
|
119
119
|
loading="{{ loading.confirm }}"
|
|
120
|
-
custom-class="smart-dialog__confirm {{
|
|
120
|
+
custom-class="smart-dialog__confirm {{ inputValue === '' && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
|
|
121
121
|
custom-style="color: {{ confirmButtonColor || 'var(--dialog-confirm-color, var(--app-B4-N1, rgba(0, 0, 0, 1)))' }}"
|
|
122
122
|
button-id="{{ confirmButtonId }}"
|
|
123
123
|
open-type="{{ confirmButtonOpenType }}"
|
package/lib/picker/index.wxml
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
options="{{ item.values }}"
|
|
27
27
|
disabled="{{ item.disabled || false }}"
|
|
28
28
|
unit="{{ item.unit || unit }}"
|
|
29
|
+
unit-gap="{{ item.unitGap }}"
|
|
29
30
|
changeAnimation="{{ changeAnimation }}"
|
|
30
31
|
default-index="{{ item.defaultIndex || defaultIndex }}"
|
|
31
32
|
active-index="{{ (item.activeIndex === null || item.activeIndex === undefined) ? activeIndex : item.activeIndex }}"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<view wx:if="{{unit}}" class="smart-picker-column__unit" style="height: {{ itemHeight }}px">
|
|
54
54
|
<view class="smart-picker-column__max-text" style="{{fontStyle}}">
|
|
55
55
|
{{ maxText }}
|
|
56
|
-
<view class="smart-picker-column__unit_text" >{{unit}}</view>
|
|
56
|
+
<view class="smart-picker-column__unit_text" style="{{computed.unitGapStyle(unitGap)}}">{{unit}}</view>
|
|
57
57
|
</view>
|
|
58
58
|
</view>
|
|
59
59
|
|
|
@@ -3,6 +3,15 @@ var style = require('../wxs/style.wxs');
|
|
|
3
3
|
var addUnit = require('../wxs/add-unit.wxs');
|
|
4
4
|
var wxUtils = require('../wxs/utils.wxs');
|
|
5
5
|
|
|
6
|
+
function unitGapStyle(unitGap) {
|
|
7
|
+
if (unitGap === undefined || unitGap === null) {
|
|
8
|
+
return '';
|
|
9
|
+
}
|
|
10
|
+
return style({
|
|
11
|
+
'margin-left': addUnit(unitGap)
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
6
15
|
function setStyle(ownerInstance, style, selector) {
|
|
7
16
|
var dom = wxUtils.queryComponent(ownerInstance, selector);
|
|
8
17
|
if (!dom) {
|
|
@@ -628,4 +637,5 @@ module.exports = {
|
|
|
628
637
|
touchMove: touchMove,
|
|
629
638
|
touchEnd: touchEnd,
|
|
630
639
|
tapItem: tapItem,
|
|
640
|
+
unitGapStyle: unitGapStyle,
|
|
631
641
|
};
|