@tuya-miniapp/smart-ui 2.12.1-beta-5 → 2.12.1-beta-6
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/bottom-sheet/index.js +5 -0
- package/dist/bottom-sheet/index.wxml +8 -6
- package/dist/cascader/index.js +4 -0
- package/dist/cascader/index.wxml +2 -0
- package/dist/field/cell-input.wxml +8 -1
- package/dist/field/index.js +6 -0
- package/dist/grid-item/index.js +4 -0
- package/dist/grid-item/index.wxml +2 -0
- package/dist/icon/index.js +8 -0
- package/dist/icon/index.wxml +2 -0
- package/dist/nav-bar/index.js +12 -0
- package/dist/nav-bar/index.wxml +6 -0
- package/dist/notice-bar/index.js +4 -0
- package/dist/notice-bar/index.wxml +2 -0
- package/dist/popup/index.js +4 -0
- package/dist/popup/popup.wxml +2 -0
- package/dist/stepper/index.js +8 -0
- package/dist/stepper/index.wxml +4 -0
- package/dist/tag/index.js +4 -0
- package/dist/tag/index.wxml +3 -1
- package/lib/bottom-sheet/index.js +5 -0
- package/lib/bottom-sheet/index.wxml +8 -6
- package/lib/cascader/index.js +4 -0
- package/lib/cascader/index.wxml +2 -0
- package/lib/field/cell-input.wxml +8 -1
- package/lib/field/index.js +6 -0
- package/lib/grid-item/index.js +4 -0
- package/lib/grid-item/index.wxml +2 -0
- package/lib/icon/index.js +8 -0
- package/lib/icon/index.wxml +2 -0
- package/lib/nav-bar/index.js +12 -0
- package/lib/nav-bar/index.wxml +6 -0
- package/lib/notice-bar/index.js +4 -0
- package/lib/notice-bar/index.wxml +2 -0
- package/lib/popup/index.js +4 -0
- package/lib/popup/popup.wxml +2 -0
- package/lib/stepper/index.js +8 -0
- package/lib/stepper/index.wxml +4 -0
- package/lib/tag/index.js +4 -0
- package/lib/tag/index.wxml +3 -1
- package/package.json +1 -1
|
@@ -51,12 +51,14 @@
|
|
|
51
51
|
<block wx:else>
|
|
52
52
|
<view class="smart-bottom-sheet__header">
|
|
53
53
|
<view wx:if="{{ title }}">{{ title }}</view>
|
|
54
|
-
<smart-icon
|
|
55
|
-
wx:if="{{ title && showClose }}"
|
|
56
|
-
name="{{ xmarkIcon }}"
|
|
57
|
-
class="smart-bottom-sheet__icon"
|
|
58
|
-
size="{{ iconSize }}"
|
|
59
|
-
color="{{ xmarkIconColor }}"
|
|
54
|
+
<smart-icon
|
|
55
|
+
wx:if="{{ title && showClose }}"
|
|
56
|
+
name="{{ xmarkIcon }}"
|
|
57
|
+
class="smart-bottom-sheet__icon"
|
|
58
|
+
size="{{ iconSize }}"
|
|
59
|
+
color="{{ xmarkIconColor }}"
|
|
60
|
+
ariaRole="button"
|
|
61
|
+
ariaLabel="{{ closeIconAriaLabel }}"
|
|
60
62
|
bind:click="onClose"
|
|
61
63
|
/>
|
|
62
64
|
<slot name="title" />
|
package/dist/cascader/index.js
CHANGED
package/dist/cascader/index.wxml
CHANGED
|
@@ -36,9 +36,16 @@
|
|
|
36
36
|
wx:if="{{ showClear }}"
|
|
37
37
|
name="{{ clearIcon }}"
|
|
38
38
|
class="smart-field__clear-root smart-field__icon-root"
|
|
39
|
+
aria-label="{{ clearIconAriaLabel }}"
|
|
40
|
+
aria-role="button"
|
|
39
41
|
catch:touchstart="onClear"
|
|
40
42
|
/>
|
|
41
|
-
<view
|
|
43
|
+
<view
|
|
44
|
+
class="smart-field__icon-container"
|
|
45
|
+
bind:tap="onClickIcon"
|
|
46
|
+
aria-role="button"
|
|
47
|
+
aria-label="{{ rightIconButtonAriaLabel }}"
|
|
48
|
+
>
|
|
42
49
|
<smart-icon
|
|
43
50
|
wx:if="{{ rightIcon || icon }}"
|
|
44
51
|
name="{{ rightIcon || icon }}"
|
package/dist/field/index.js
CHANGED
package/dist/grid-item/index.js
CHANGED
package/dist/icon/index.js
CHANGED
package/dist/icon/index.wxml
CHANGED
package/dist/nav-bar/index.js
CHANGED
|
@@ -54,6 +54,18 @@ SmartComponent({
|
|
|
54
54
|
type: Boolean,
|
|
55
55
|
value: true,
|
|
56
56
|
},
|
|
57
|
+
leftArrowAriaLabel: {
|
|
58
|
+
type: String,
|
|
59
|
+
value: '',
|
|
60
|
+
},
|
|
61
|
+
leftIconAriaLabel: {
|
|
62
|
+
type: String,
|
|
63
|
+
value: '',
|
|
64
|
+
},
|
|
65
|
+
rightIconAriaLabel: {
|
|
66
|
+
type: String,
|
|
67
|
+
value: '',
|
|
68
|
+
},
|
|
57
69
|
},
|
|
58
70
|
data: {
|
|
59
71
|
leftArrowIcon: Left,
|
package/dist/nav-bar/index.wxml
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
hover-stay-time="70"
|
|
20
20
|
name="{{ leftArrowIcon }}"
|
|
21
21
|
data-type="leftArrow"
|
|
22
|
+
aria-role="button"
|
|
23
|
+
aria-label="{{ leftArrowAriaLabel }}"
|
|
22
24
|
custom-class="smart-nav-bar__arrow"
|
|
23
25
|
/>
|
|
24
26
|
<view
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
hover-stay-time="70"
|
|
29
31
|
class="smart-nav-bar__icon-wrap"
|
|
30
32
|
catch:tap="onClickLeftIcon"
|
|
33
|
+
aria-role="button"
|
|
34
|
+
aria-label="{{ leftIconAriaLabel }}"
|
|
31
35
|
>
|
|
32
36
|
<smart-icon
|
|
33
37
|
class="left-icon-class"
|
|
@@ -60,6 +64,8 @@
|
|
|
60
64
|
hover-stay-time="70"
|
|
61
65
|
class="smart-nav-bar__icon-wrap"
|
|
62
66
|
bind:tap="onClickRightIcon"
|
|
67
|
+
aria-role="button"
|
|
68
|
+
aria-label="{{ rightIconAriaLabel }}"
|
|
63
69
|
>
|
|
64
70
|
<smart-icon class="right-icon-class" custom-class="smart-nav-bar__icon" size="{{ rightIconSize }}" name="{{ rightIcon }}" color="{{ rightIconColor }}" />
|
|
65
71
|
</view>
|
package/dist/notice-bar/index.js
CHANGED
package/dist/popup/index.js
CHANGED
package/dist/popup/popup.wxml
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
wx:if="{{ closeable }}"
|
|
12
12
|
name="{{ closeIcon }}"
|
|
13
13
|
class="close-icon-class smart-popup__close-icon smart-popup__close-icon--{{ closeIconPosition }}"
|
|
14
|
+
aria-role="button"
|
|
15
|
+
aria-label="{{ closeIconAriaLabel }}"
|
|
14
16
|
bind:tap="onClickCloseIcon"
|
|
15
17
|
/>
|
|
16
18
|
</view>
|
package/dist/stepper/index.js
CHANGED
package/dist/stepper/index.wxml
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
class="minus-class {{ utils.bem('stepper__minus', { disabled: computed.checkMin({ min, currentValue, disabled, disableMinus }) }) }}"
|
|
10
10
|
hover-class="smart-stepper__minus--hover"
|
|
11
11
|
hover-stay-time="70"
|
|
12
|
+
aria-role="button"
|
|
13
|
+
aria-label="{{ minusAriaLabel }}"
|
|
12
14
|
bind:tap="onTap"
|
|
13
15
|
bind:touchstart="onTouchStart"
|
|
14
16
|
bind:touchend="onTouchEnd"
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
class="plus-class {{ utils.bem('stepper__plus', { disabled: computed.checkMax({ max, currentValue, disabled, disablePlus }) }) }}"
|
|
35
37
|
hover-class="smart-stepper__plus--hover"
|
|
36
38
|
hover-stay-time="70"
|
|
39
|
+
aria-role="button"
|
|
40
|
+
aria-label="{{ plusAriaLabel }}"
|
|
37
41
|
bind:tap="onTap"
|
|
38
42
|
bind:touchstart="onTouchStart"
|
|
39
43
|
bind:touchend="onTouchEnd"
|
package/dist/tag/index.js
CHANGED
package/dist/tag/index.wxml
CHANGED
|
@@ -51,12 +51,14 @@
|
|
|
51
51
|
<block wx:else>
|
|
52
52
|
<view class="smart-bottom-sheet__header">
|
|
53
53
|
<view wx:if="{{ title }}">{{ title }}</view>
|
|
54
|
-
<smart-icon
|
|
55
|
-
wx:if="{{ title && showClose }}"
|
|
56
|
-
name="{{ xmarkIcon }}"
|
|
57
|
-
class="smart-bottom-sheet__icon"
|
|
58
|
-
size="{{ iconSize }}"
|
|
59
|
-
color="{{ xmarkIconColor }}"
|
|
54
|
+
<smart-icon
|
|
55
|
+
wx:if="{{ title && showClose }}"
|
|
56
|
+
name="{{ xmarkIcon }}"
|
|
57
|
+
class="smart-bottom-sheet__icon"
|
|
58
|
+
size="{{ iconSize }}"
|
|
59
|
+
color="{{ xmarkIconColor }}"
|
|
60
|
+
ariaRole="button"
|
|
61
|
+
ariaLabel="{{ closeIconAriaLabel }}"
|
|
60
62
|
bind:click="onClose"
|
|
61
63
|
/>
|
|
62
64
|
<slot name="title" />
|
package/lib/cascader/index.js
CHANGED
package/lib/cascader/index.wxml
CHANGED
|
@@ -36,9 +36,16 @@
|
|
|
36
36
|
wx:if="{{ showClear }}"
|
|
37
37
|
name="{{ clearIcon }}"
|
|
38
38
|
class="smart-field__clear-root smart-field__icon-root"
|
|
39
|
+
aria-label="{{ clearIconAriaLabel }}"
|
|
40
|
+
aria-role="button"
|
|
39
41
|
catch:touchstart="onClear"
|
|
40
42
|
/>
|
|
41
|
-
<view
|
|
43
|
+
<view
|
|
44
|
+
class="smart-field__icon-container"
|
|
45
|
+
bind:tap="onClickIcon"
|
|
46
|
+
aria-role="button"
|
|
47
|
+
aria-label="{{ rightIconButtonAriaLabel }}"
|
|
48
|
+
>
|
|
42
49
|
<smart-icon
|
|
43
50
|
wx:if="{{ rightIcon || icon }}"
|
|
44
51
|
name="{{ rightIcon || icon }}"
|
package/lib/field/index.js
CHANGED
|
@@ -52,6 +52,12 @@ var numberFormat_1 = require("./numberFormat");
|
|
|
52
52
|
}, locale: {
|
|
53
53
|
type: String,
|
|
54
54
|
value: '',
|
|
55
|
+
}, clearIconAriaLabel: {
|
|
56
|
+
type: String,
|
|
57
|
+
value: '',
|
|
58
|
+
}, rightIconButtonAriaLabel: {
|
|
59
|
+
type: String,
|
|
60
|
+
value: '',
|
|
55
61
|
} }),
|
|
56
62
|
data: {
|
|
57
63
|
focused: false,
|
package/lib/grid-item/index.js
CHANGED
package/lib/grid-item/index.wxml
CHANGED
package/lib/icon/index.js
CHANGED
|
@@ -14,6 +14,14 @@ var component_1 = require("../common/component");
|
|
|
14
14
|
value: 'smart-icon',
|
|
15
15
|
},
|
|
16
16
|
name: String,
|
|
17
|
+
ariaLabel: {
|
|
18
|
+
type: String,
|
|
19
|
+
value: '',
|
|
20
|
+
},
|
|
21
|
+
ariaRole: {
|
|
22
|
+
type: String,
|
|
23
|
+
value: '',
|
|
24
|
+
},
|
|
17
25
|
},
|
|
18
26
|
methods: {
|
|
19
27
|
onClick: function (event) {
|
package/lib/icon/index.wxml
CHANGED
package/lib/nav-bar/index.js
CHANGED
|
@@ -59,6 +59,18 @@ var component_1 = require("../common/component");
|
|
|
59
59
|
type: Boolean,
|
|
60
60
|
value: true,
|
|
61
61
|
},
|
|
62
|
+
leftArrowAriaLabel: {
|
|
63
|
+
type: String,
|
|
64
|
+
value: '',
|
|
65
|
+
},
|
|
66
|
+
leftIconAriaLabel: {
|
|
67
|
+
type: String,
|
|
68
|
+
value: '',
|
|
69
|
+
},
|
|
70
|
+
rightIconAriaLabel: {
|
|
71
|
+
type: String,
|
|
72
|
+
value: '',
|
|
73
|
+
},
|
|
62
74
|
},
|
|
63
75
|
data: {
|
|
64
76
|
leftArrowIcon: Left_1.default,
|
package/lib/nav-bar/index.wxml
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
hover-stay-time="70"
|
|
20
20
|
name="{{ leftArrowIcon }}"
|
|
21
21
|
data-type="leftArrow"
|
|
22
|
+
aria-role="button"
|
|
23
|
+
aria-label="{{ leftArrowAriaLabel }}"
|
|
22
24
|
custom-class="smart-nav-bar__arrow"
|
|
23
25
|
/>
|
|
24
26
|
<view
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
hover-stay-time="70"
|
|
29
31
|
class="smart-nav-bar__icon-wrap"
|
|
30
32
|
catch:tap="onClickLeftIcon"
|
|
33
|
+
aria-role="button"
|
|
34
|
+
aria-label="{{ leftIconAriaLabel }}"
|
|
31
35
|
>
|
|
32
36
|
<smart-icon
|
|
33
37
|
class="left-icon-class"
|
|
@@ -60,6 +64,8 @@
|
|
|
60
64
|
hover-stay-time="70"
|
|
61
65
|
class="smart-nav-bar__icon-wrap"
|
|
62
66
|
bind:tap="onClickRightIcon"
|
|
67
|
+
aria-role="button"
|
|
68
|
+
aria-label="{{ rightIconAriaLabel }}"
|
|
63
69
|
>
|
|
64
70
|
<smart-icon class="right-icon-class" custom-class="smart-nav-bar__icon" size="{{ rightIconSize }}" name="{{ rightIcon }}" color="{{ rightIconColor }}" />
|
|
65
71
|
</view>
|
package/lib/notice-bar/index.js
CHANGED
package/lib/popup/index.js
CHANGED
package/lib/popup/popup.wxml
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
wx:if="{{ closeable }}"
|
|
12
12
|
name="{{ closeIcon }}"
|
|
13
13
|
class="close-icon-class smart-popup__close-icon smart-popup__close-icon--{{ closeIconPosition }}"
|
|
14
|
+
aria-role="button"
|
|
15
|
+
aria-label="{{ closeIconAriaLabel }}"
|
|
14
16
|
bind:tap="onClickCloseIcon"
|
|
15
17
|
/>
|
|
16
18
|
</view>
|
package/lib/stepper/index.js
CHANGED
package/lib/stepper/index.wxml
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
class="minus-class {{ utils.bem('stepper__minus', { disabled: computed.checkMin({ min, currentValue, disabled, disableMinus }) }) }}"
|
|
10
10
|
hover-class="smart-stepper__minus--hover"
|
|
11
11
|
hover-stay-time="70"
|
|
12
|
+
aria-role="button"
|
|
13
|
+
aria-label="{{ minusAriaLabel }}"
|
|
12
14
|
bind:tap="onTap"
|
|
13
15
|
bind:touchstart="onTouchStart"
|
|
14
16
|
bind:touchend="onTouchEnd"
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
class="plus-class {{ utils.bem('stepper__plus', { disabled: computed.checkMax({ max, currentValue, disabled, disablePlus }) }) }}"
|
|
35
37
|
hover-class="smart-stepper__plus--hover"
|
|
36
38
|
hover-stay-time="70"
|
|
39
|
+
aria-role="button"
|
|
40
|
+
aria-label="{{ plusAriaLabel }}"
|
|
37
41
|
bind:tap="onTap"
|
|
38
42
|
bind:touchstart="onTouchStart"
|
|
39
43
|
bind:touchend="onTouchEnd"
|
package/lib/tag/index.js
CHANGED
package/lib/tag/index.wxml
CHANGED