@tuya-miniapp/smart-ui 2.12.1-beta-6 → 2.12.1-beta-7

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.
@@ -44,6 +44,7 @@
44
44
  class="smart-field__icon-container"
45
45
  bind:tap="onClickIcon"
46
46
  aria-role="button"
47
+ role="button"
47
48
  aria-label="{{ rightIconButtonAriaLabel }}"
48
49
  >
49
50
  <smart-icon
@@ -5,6 +5,7 @@
5
5
  class="custom-class {{ utils.bem('grid-item', { square }) }}"
6
6
  style="{{ computed.wrapperStyle({ square, gutter, columnNum, index }) }}"
7
7
  aria-role="button"
8
+ role="button"
8
9
  aria-label="{{ ariaLabel }}"
9
10
  bindtap="onClick"
10
11
  >
@@ -4,6 +4,7 @@
4
4
  class="{{ computed.rootClass({ classPrefix, name }) }}"
5
5
  style="{{ computed.rootStyle({ customStyle, color, size }) }}"
6
6
  bindtap="onClick"
7
+ role="{{ ariaRole }}"
7
8
  aria-role="{{ ariaRole }}"
8
9
  aria-label="{{ ariaLabel }}"
9
10
  >
@@ -31,6 +31,7 @@
31
31
  class="smart-nav-bar__icon-wrap"
32
32
  catch:tap="onClickLeftIcon"
33
33
  aria-role="button"
34
+ role="button"
34
35
  aria-label="{{ leftIconAriaLabel }}"
35
36
  >
36
37
  <smart-icon
@@ -65,6 +66,7 @@
65
66
  class="smart-nav-bar__icon-wrap"
66
67
  bind:tap="onClickRightIcon"
67
68
  aria-role="button"
69
+ role="button"
68
70
  aria-label="{{ rightIconAriaLabel }}"
69
71
  >
70
72
  <smart-icon class="right-icon-class" custom-class="smart-nav-bar__icon" size="{{ rightIconSize }}" name="{{ rightIcon }}" color="{{ rightIconColor }}" />
@@ -10,6 +10,7 @@
10
10
  hover-class="smart-stepper__minus--hover"
11
11
  hover-stay-time="70"
12
12
  aria-role="button"
13
+ role="button"
13
14
  aria-label="{{ minusAriaLabel }}"
14
15
  bind:tap="onTap"
15
16
  bind:touchstart="onTouchStart"
@@ -37,6 +38,7 @@
37
38
  hover-class="smart-stepper__plus--hover"
38
39
  hover-stay-time="70"
39
40
  aria-role="button"
41
+ role="button"
40
42
  aria-label="{{ plusAriaLabel }}"
41
43
  bind:tap="onTap"
42
44
  bind:touchstart="onTouchStart"
@@ -44,6 +44,7 @@
44
44
  class="smart-field__icon-container"
45
45
  bind:tap="onClickIcon"
46
46
  aria-role="button"
47
+ role="button"
47
48
  aria-label="{{ rightIconButtonAriaLabel }}"
48
49
  >
49
50
  <smart-icon
@@ -5,6 +5,7 @@
5
5
  class="custom-class {{ utils.bem('grid-item', { square }) }}"
6
6
  style="{{ computed.wrapperStyle({ square, gutter, columnNum, index }) }}"
7
7
  aria-role="button"
8
+ role="button"
8
9
  aria-label="{{ ariaLabel }}"
9
10
  bindtap="onClick"
10
11
  >
@@ -4,6 +4,7 @@
4
4
  class="{{ computed.rootClass({ classPrefix, name }) }}"
5
5
  style="{{ computed.rootStyle({ customStyle, color, size }) }}"
6
6
  bindtap="onClick"
7
+ role="{{ ariaRole }}"
7
8
  aria-role="{{ ariaRole }}"
8
9
  aria-label="{{ ariaLabel }}"
9
10
  >
@@ -31,6 +31,7 @@
31
31
  class="smart-nav-bar__icon-wrap"
32
32
  catch:tap="onClickLeftIcon"
33
33
  aria-role="button"
34
+ role="button"
34
35
  aria-label="{{ leftIconAriaLabel }}"
35
36
  >
36
37
  <smart-icon
@@ -65,6 +66,7 @@
65
66
  class="smart-nav-bar__icon-wrap"
66
67
  bind:tap="onClickRightIcon"
67
68
  aria-role="button"
69
+ role="button"
68
70
  aria-label="{{ rightIconAriaLabel }}"
69
71
  >
70
72
  <smart-icon class="right-icon-class" custom-class="smart-nav-bar__icon" size="{{ rightIconSize }}" name="{{ rightIcon }}" color="{{ rightIconColor }}" />
@@ -10,6 +10,7 @@
10
10
  hover-class="smart-stepper__minus--hover"
11
11
  hover-stay-time="70"
12
12
  aria-role="button"
13
+ role="button"
13
14
  aria-label="{{ minusAriaLabel }}"
14
15
  bind:tap="onTap"
15
16
  bind:touchstart="onTouchStart"
@@ -37,6 +38,7 @@
37
38
  hover-class="smart-stepper__plus--hover"
38
39
  hover-stay-time="70"
39
40
  aria-role="button"
41
+ role="button"
40
42
  aria-label="{{ plusAriaLabel }}"
41
43
  bind:tap="onTap"
42
44
  bind:touchstart="onTouchStart"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.12.1-beta-6",
3
+ "version": "2.12.1-beta-7",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",