@tuya-miniapp/smart-ui 0.0.1-beta-4 → 0.0.1-beta-6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/action-sheet/index.js +9 -0
- package/dist/action-sheet/index.wxml +1 -1
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.wxml +2 -2
- package/dist/picker/index.wxss +1 -1
- package/dist/picker-column/index.css +1 -1
- package/dist/picker-column/index.wxss +1 -1
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.wxml +2 -1
- package/dist/stepper/index.wxml +2 -2
- package/lib/action-sheet/index.js +9 -0
- package/lib/action-sheet/index.wxml +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.wxml +2 -2
- package/lib/picker/index.wxss +1 -1
- package/lib/picker-column/index.css +1 -1
- package/lib/picker-column/index.wxss +1 -1
- package/lib/radio/index.js +5 -0
- package/lib/radio/index.wxml +2 -1
- package/lib/stepper/index.wxml +2 -2
- package/package.json +1 -1
@@ -10,6 +10,7 @@ VantComponent({
|
|
10
10
|
cancelText: String,
|
11
11
|
confirmText: String,
|
12
12
|
description: String,
|
13
|
+
activeColor: String,
|
13
14
|
round: {
|
14
15
|
type: Boolean,
|
15
16
|
value: true,
|
@@ -45,6 +46,14 @@ VantComponent({
|
|
45
46
|
},
|
46
47
|
data: {
|
47
48
|
checkMarkIcon,
|
49
|
+
checkMarkIconColor: '#3678E3',
|
50
|
+
},
|
51
|
+
mounted() {
|
52
|
+
var _a;
|
53
|
+
// @ts-ignore
|
54
|
+
const themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
55
|
+
const checkMarkIconColor = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
|
56
|
+
this.setData({ checkMarkIconColor });
|
48
57
|
},
|
49
58
|
methods: {
|
50
59
|
onSelect(event) {
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<block wx:if="{{ !item.loading }}">
|
53
53
|
{{ item.name }}
|
54
54
|
<view wx:if="{{ item.subname }}" class="van-action-sheet__subname" >{{ item.subname }}</view>
|
55
|
-
<van-icon wx:if="{{ item.checked }}" name="{{ checkMarkIcon }}" class="van-action-sheet__icon" color="
|
55
|
+
<van-icon wx:if="{{ item.checked }}" name="{{ checkMarkIcon }}" class="van-action-sheet__icon" color="{{ checkMarkIconColor }}" />
|
56
56
|
</block>
|
57
57
|
<van-loading wx:else custom-class="van-action-sheet__loading" size="22px" />
|
58
58
|
</button>
|
package/dist/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-
|
1
|
+
@import '../common/index.css';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
package/dist/picker/index.wxml
CHANGED
@@ -25,10 +25,10 @@
|
|
25
25
|
active-index="{{ item.activeIndex || activeIndex }}"
|
26
26
|
item-height="{{ itemHeight }}"
|
27
27
|
visible-item-count="{{ visibleItemCount }}"
|
28
|
-
active-class="active-
|
28
|
+
active-class="active-class"
|
29
29
|
bind:change="onChange"
|
30
30
|
/>
|
31
|
-
|
31
|
+
|
32
32
|
<view
|
33
33
|
class="van-picker__frame van-hairline--top-bottom"
|
34
34
|
style="{{ computed.frameStyle({ itemHeight }) }}"
|
package/dist/picker/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-
|
1
|
+
@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.van-picker-column{color:var(--picker-option-text-color,var(--app-B6-
|
1
|
+
@import '../common/index.css';.van-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.van-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.van-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.van-picker-column__unit_hidden{opacity:0}.van-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-text-color,var(--app-B6-
|
1
|
+
@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.van-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.van-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.van-picker-column__unit_hidden{opacity:0}.van-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
package/dist/radio/index.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import CheckMarkIcon from '@tuya-miniapp/icons/dist/svg/Checkmark';
|
1
2
|
import { canIUseModel } from '../common/version';
|
2
3
|
import { VantComponent } from '../common/component';
|
3
4
|
import { useParent } from '../common/relation';
|
@@ -30,6 +31,7 @@ VantComponent({
|
|
30
31
|
data: {
|
31
32
|
direction: '',
|
32
33
|
parentDisabled: false,
|
34
|
+
icon: CheckMarkIcon,
|
33
35
|
},
|
34
36
|
methods: {
|
35
37
|
updateFromParent() {
|
package/dist/radio/index.wxml
CHANGED
@@ -13,7 +13,8 @@
|
|
13
13
|
<slot wx:if="{{ useIconSlot }}" name="icon" />
|
14
14
|
<van-icon
|
15
15
|
wx:else
|
16
|
-
name="
|
16
|
+
name="{{ icon }}"
|
17
|
+
color="{{ value ? '#fff' : 'none'}}"
|
17
18
|
class="{{ utils.bem('radio__icon', [shape, { disabled: disabled || parentDisabled, checked: value === name }]) }}"
|
18
19
|
style="{{ computed.iconStyle({ iconSize, checkedColor, disabled, parentDisabled, value, name }) }}"
|
19
20
|
custom-class="icon-class"
|
package/dist/stepper/index.wxml
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
wx:if="{{ showMinus }}"
|
7
7
|
data-type="minus"
|
8
8
|
style="{{ computed.buttonStyle({ buttonSize }) }}"
|
9
|
-
class="minus-class {{ utils.bem('stepper__minus', { disabled: disabled || disableMinus || currentValue <= min }) }}"
|
9
|
+
class="minus-class {{ utils.bem('stepper__minus', { disabled: disabled || disableMinus || currentValue <= +min }) }}"
|
10
10
|
hover-class="van-stepper__minus--hover"
|
11
11
|
hover-stay-time="70"
|
12
12
|
bind:tap="onTap"
|
@@ -31,7 +31,7 @@
|
|
31
31
|
wx:if="{{ showPlus }}"
|
32
32
|
data-type="plus"
|
33
33
|
style="{{ computed.buttonStyle({ buttonSize }) }}"
|
34
|
-
class="plus-class {{ utils.bem('stepper__plus', { disabled: disabled || disablePlus || currentValue >= max }) }}"
|
34
|
+
class="plus-class {{ utils.bem('stepper__plus', { disabled: disabled || disablePlus || currentValue >= +max }) }}"
|
35
35
|
hover-class="van-stepper__plus--hover"
|
36
36
|
hover-stay-time="70"
|
37
37
|
bind:tap="onTap"
|
@@ -15,6 +15,7 @@ var button_1 = require("../mixins/button");
|
|
15
15
|
cancelText: String,
|
16
16
|
confirmText: String,
|
17
17
|
description: String,
|
18
|
+
activeColor: String,
|
18
19
|
round: {
|
19
20
|
type: Boolean,
|
20
21
|
value: true,
|
@@ -50,6 +51,14 @@ var button_1 = require("../mixins/button");
|
|
50
51
|
},
|
51
52
|
data: {
|
52
53
|
checkMarkIcon: Checkmark_1.default,
|
54
|
+
checkMarkIconColor: '#3678E3',
|
55
|
+
},
|
56
|
+
mounted: function () {
|
57
|
+
var _a;
|
58
|
+
// @ts-ignore
|
59
|
+
var themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
|
60
|
+
var checkMarkIconColor = this.data.activeColor || themeInfo['--app-M1'] || '#3678E3';
|
61
|
+
this.setData({ checkMarkIconColor: checkMarkIconColor });
|
53
62
|
},
|
54
63
|
methods: {
|
55
64
|
onSelect: function (event) {
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<block wx:if="{{ !item.loading }}">
|
53
53
|
{{ item.name }}
|
54
54
|
<view wx:if="{{ item.subname }}" class="van-action-sheet__subname" >{{ item.subname }}</view>
|
55
|
-
<van-icon wx:if="{{ item.checked }}" name="{{ checkMarkIcon }}" class="van-action-sheet__icon" color="
|
55
|
+
<van-icon wx:if="{{ item.checked }}" name="{{ checkMarkIcon }}" class="van-action-sheet__icon" color="{{ checkMarkIconColor }}" />
|
56
56
|
</block>
|
57
57
|
<van-loading wx:else custom-class="van-action-sheet__loading" size="22px" />
|
58
58
|
</button>
|
package/lib/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-
|
1
|
+
@import '../common/index.css';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
package/lib/picker/index.wxml
CHANGED
@@ -25,10 +25,10 @@
|
|
25
25
|
active-index="{{ item.activeIndex || activeIndex }}"
|
26
26
|
item-height="{{ itemHeight }}"
|
27
27
|
visible-item-count="{{ visibleItemCount }}"
|
28
|
-
active-class="active-
|
28
|
+
active-class="active-class"
|
29
29
|
bind:change="onChange"
|
30
30
|
/>
|
31
|
-
|
31
|
+
|
32
32
|
<view
|
33
33
|
class="van-picker__frame van-hairline--top-bottom"
|
34
34
|
style="{{ computed.frameStyle({ itemHeight }) }}"
|
package/lib/picker/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-
|
1
|
+
@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.van-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.van-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.van-picker-column{color:var(--picker-option-text-color,var(--app-B6-
|
1
|
+
@import '../common/index.css';.van-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.van-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.van-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.van-picker-column__unit_hidden{opacity:0}.van-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-text-color,var(--app-B6-
|
1
|
+
@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.van-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.van-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.van-picker-column__unit_hidden{opacity:0}.van-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
package/lib/radio/index.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var Checkmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Checkmark"));
|
3
7
|
var version_1 = require("../common/version");
|
4
8
|
var component_1 = require("../common/component");
|
5
9
|
var relation_1 = require("../common/relation");
|
@@ -32,6 +36,7 @@ var relation_1 = require("../common/relation");
|
|
32
36
|
data: {
|
33
37
|
direction: '',
|
34
38
|
parentDisabled: false,
|
39
|
+
icon: Checkmark_1.default,
|
35
40
|
},
|
36
41
|
methods: {
|
37
42
|
updateFromParent: function () {
|
package/lib/radio/index.wxml
CHANGED
@@ -13,7 +13,8 @@
|
|
13
13
|
<slot wx:if="{{ useIconSlot }}" name="icon" />
|
14
14
|
<van-icon
|
15
15
|
wx:else
|
16
|
-
name="
|
16
|
+
name="{{ icon }}"
|
17
|
+
color="{{ value ? '#fff' : 'none'}}"
|
17
18
|
class="{{ utils.bem('radio__icon', [shape, { disabled: disabled || parentDisabled, checked: value === name }]) }}"
|
18
19
|
style="{{ computed.iconStyle({ iconSize, checkedColor, disabled, parentDisabled, value, name }) }}"
|
19
20
|
custom-class="icon-class"
|
package/lib/stepper/index.wxml
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
wx:if="{{ showMinus }}"
|
7
7
|
data-type="minus"
|
8
8
|
style="{{ computed.buttonStyle({ buttonSize }) }}"
|
9
|
-
class="minus-class {{ utils.bem('stepper__minus', { disabled: disabled || disableMinus || currentValue <= min }) }}"
|
9
|
+
class="minus-class {{ utils.bem('stepper__minus', { disabled: disabled || disableMinus || currentValue <= +min }) }}"
|
10
10
|
hover-class="van-stepper__minus--hover"
|
11
11
|
hover-stay-time="70"
|
12
12
|
bind:tap="onTap"
|
@@ -31,7 +31,7 @@
|
|
31
31
|
wx:if="{{ showPlus }}"
|
32
32
|
data-type="plus"
|
33
33
|
style="{{ computed.buttonStyle({ buttonSize }) }}"
|
34
|
-
class="plus-class {{ utils.bem('stepper__plus', { disabled: disabled || disablePlus || currentValue >= max }) }}"
|
34
|
+
class="plus-class {{ utils.bem('stepper__plus', { disabled: disabled || disablePlus || currentValue >= +max }) }}"
|
35
35
|
hover-class="van-stepper__plus--hover"
|
36
36
|
hover-stay-time="70"
|
37
37
|
bind:tap="onTap"
|