@nutui/icons-react-taro 3.0.2-cpp.3.beta.2 → 3.0.2-cpp.3.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.
- package/dist/es/icons/IconHarmonyTemplate.js +13 -1
- package/dist/lib/index.umd.js +11 -11
- package/dist/types/icons-react-taro.mjs +453 -441
- package/package.json +1 -1
|
@@ -95,6 +95,12 @@ const Icon = (props) => {
|
|
|
95
95
|
svgSrc,
|
|
96
96
|
children,
|
|
97
97
|
onClick,
|
|
98
|
+
ariaRole,
|
|
99
|
+
ariaLabel,
|
|
100
|
+
ariaRoledescription,
|
|
101
|
+
ariaHidden,
|
|
102
|
+
ariaChecked,
|
|
103
|
+
ariaSelected,
|
|
98
104
|
fallback = !globalConfig.useSvg
|
|
99
105
|
} = { ...defaultProps, ...props };
|
|
100
106
|
const handleClick = (e) => {
|
|
@@ -132,7 +138,13 @@ const Icon = (props) => {
|
|
|
132
138
|
className: classes(),
|
|
133
139
|
style: getStyle(),
|
|
134
140
|
onClick: handleClick,
|
|
135
|
-
svg: true
|
|
141
|
+
svg: true,
|
|
142
|
+
ariaRole,
|
|
143
|
+
ariaLabel,
|
|
144
|
+
ariaRoledescription,
|
|
145
|
+
ariaHidden,
|
|
146
|
+
ariaChecked,
|
|
147
|
+
ariaSelected
|
|
136
148
|
},
|
|
137
149
|
children
|
|
138
150
|
);
|