@opentinyvue/vue-tree-menu 2.29.0 → 2.30.0
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/index.d.ts +1 -12
- package/lib/index.js +16 -3
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
-
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license.
|
|
6
|
-
*
|
|
7
|
-
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
-
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
-
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
import TreeMenu from './src/pc.vue';
|
|
1
|
+
import { default as TreeMenu } from './src/pc.vue';
|
|
13
2
|
export default TreeMenu;
|
package/lib/index.js
CHANGED
|
@@ -177,7 +177,11 @@ var render = function render2() {
|
|
|
177
177
|
},
|
|
178
178
|
style: _vm.widthAdapt ? {
|
|
179
179
|
width: "100%"
|
|
180
|
-
} : {}
|
|
180
|
+
} : {},
|
|
181
|
+
attrs: {
|
|
182
|
+
"role": "navigation",
|
|
183
|
+
"aria-label": "Tree Menu"
|
|
184
|
+
}
|
|
181
185
|
}, [_vm.menuCollapsible ? _c("div", {
|
|
182
186
|
staticClass: "tiny-tree-menu__toggle-button",
|
|
183
187
|
on: {
|
|
@@ -190,6 +194,7 @@ var render = function render2() {
|
|
|
190
194
|
class: (_vm.state.isExpand || _vm.state.isCollapsed) && "is-hidden",
|
|
191
195
|
attrs: {
|
|
192
196
|
"placeholder": _vm.placeholder || _vm.t("ui.treeMenu.placeholder"),
|
|
197
|
+
"aria-label": _vm.placeholder || _vm.t("ui.treeMenu.placeholder"),
|
|
193
198
|
"prefix-icon": _vm.searchIcon,
|
|
194
199
|
"clearable": _vm.state.clearable
|
|
195
200
|
},
|
|
@@ -211,6 +216,8 @@ var render = function render2() {
|
|
|
211
216
|
"only-check-children": _vm.onlyCheckChildren
|
|
212
217
|
},
|
|
213
218
|
attrs: {
|
|
219
|
+
"role": "tree",
|
|
220
|
+
"tabindex": "0",
|
|
214
221
|
"tiny_mode": "pc",
|
|
215
222
|
"theme": "tiny",
|
|
216
223
|
"accordion": _vm.accordion,
|
|
@@ -268,9 +275,15 @@ var render = function render2() {
|
|
|
268
275
|
}, [_c("span", {
|
|
269
276
|
staticClass: "tree-node-name"
|
|
270
277
|
}, [!data.customIcon && _vm.suffixIcon ? _c(_vm.suffixIcon, {
|
|
271
|
-
tag: "component"
|
|
278
|
+
tag: "component",
|
|
279
|
+
attrs: {
|
|
280
|
+
"aria-hidden": "true"
|
|
281
|
+
}
|
|
272
282
|
}) : _vm._e(), data.customIcon ? _c(data.customIcon, {
|
|
273
|
-
tag: "component"
|
|
283
|
+
tag: "component",
|
|
284
|
+
attrs: {
|
|
285
|
+
"aria-hidden": "true"
|
|
286
|
+
}
|
|
274
287
|
}) : _vm._e(), _vm._t("default", function() {
|
|
275
288
|
return [_vm._v(_vm._s(data.label || node.label) + " ")];
|
|
276
289
|
}, {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-tree-menu",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~2.
|
|
11
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
12
|
-
"@opentinyvue/vue-input": "~2.
|
|
13
|
-
"@opentinyvue/vue-tree": "~2.
|
|
14
|
-
"@opentinyvue/vue-theme": "~3.
|
|
15
|
-
"@opentinyvue/vue-icon": "~2.
|
|
10
|
+
"@opentinyvue/vue-common": "~2.30.0",
|
|
11
|
+
"@opentinyvue/vue-renderless": "~3.30.0",
|
|
12
|
+
"@opentinyvue/vue-input": "~2.30.0",
|
|
13
|
+
"@opentinyvue/vue-tree": "~2.30.0",
|
|
14
|
+
"@opentinyvue/vue-theme": "~3.30.0",
|
|
15
|
+
"@opentinyvue/vue-icon": "~2.30.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts",
|