@opentinyvue/vue-tree-menu 3.29.0 → 3.29.1
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/lib/index.js +10 -3
- package/package.json +1 -1
- package/src/pc.vue.d.ts +14 -14
package/lib/index.js
CHANGED
|
@@ -196,6 +196,8 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
196
196
|
"tiny-tree-menu__show-filter": _ctx.showFilter,
|
|
197
197
|
"tiny-tree-menu__show-expand": _ctx.showExpand
|
|
198
198
|
}]),
|
|
199
|
+
role: "navigation",
|
|
200
|
+
"aria-label": "Tree Menu",
|
|
199
201
|
style: normalizeStyle(_ctx.widthAdapt ? {
|
|
200
202
|
width: "100%"
|
|
201
203
|
} : {})
|
|
@@ -214,11 +216,14 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
214
216
|
}),
|
|
215
217
|
class: normalizeClass((_ctx.state.isExpand || _ctx.state.isCollapsed) && "is-hidden"),
|
|
216
218
|
placeholder: _ctx.placeholder || _ctx.t("ui.treeMenu.placeholder"),
|
|
219
|
+
"aria-label": _ctx.placeholder || _ctx.t("ui.treeMenu.placeholder"),
|
|
217
220
|
"prefix-icon": _ctx.searchIcon,
|
|
218
221
|
clearable: _ctx.state.clearable,
|
|
219
222
|
onInput: _ctx.inputChange
|
|
220
|
-
}, null, 8, ["modelValue", "class", "placeholder", "prefix-icon", "clearable", "onInput"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tree, {
|
|
223
|
+
}, null, 8, ["modelValue", "class", "placeholder", "aria-label", "prefix-icon", "clearable", "onInput"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tree, {
|
|
221
224
|
ref: "tree",
|
|
225
|
+
role: "tree",
|
|
226
|
+
tabindex: "0",
|
|
222
227
|
class: normalizeClass({
|
|
223
228
|
"tiny-tree-menu__wrap": !_ctx.ellipsis ? _ctx.wrap : false,
|
|
224
229
|
"tiny-tree-menu__overflow": _ctx.ellipsis,
|
|
@@ -269,9 +274,11 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
|
269
274
|
title: _ctx.getTitle(data.label),
|
|
270
275
|
href: data.url || void 0
|
|
271
276
|
}, [createElementVNode("span", _hoisted_4, [!data.customIcon && _ctx.suffixIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon), {
|
|
272
|
-
key: 0
|
|
277
|
+
key: 0,
|
|
278
|
+
"aria-hidden": "true"
|
|
273
279
|
})) : createCommentVNode("v-if", true), data.customIcon ? (openBlock(), createBlock(resolveDynamicComponent(data.customIcon), {
|
|
274
|
-
key: 1
|
|
280
|
+
key: 1,
|
|
281
|
+
"aria-hidden": "true"
|
|
275
282
|
})) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", {
|
|
276
283
|
node,
|
|
277
284
|
data,
|
package/package.json
CHANGED
package/src/pc.vue.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
146
146
|
dp: (props: any) => void;
|
|
147
147
|
gcls: (key: any) => any;
|
|
148
148
|
m: (...cssClasses: any[]) => string;
|
|
149
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "
|
|
149
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "node-drag-start" | "input-change" | "node-drag-enter" | "node-drag-over" | "node-drag-end" | "node-drop" | "node-expand" | "node-collapse" | "node-click" | "check-change" | "check" | "current-change" | "collapse-change")[], "change" | "node-drag-start" | "input-change" | "node-drag-enter" | "node-drag-over" | "node-drag-end" | "node-drop" | "node-expand" | "node-collapse" | "node-click" | "check-change" | "check" | "current-change" | "collapse-change", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
150
150
|
placeholder: {
|
|
151
151
|
default: string;
|
|
152
152
|
type: StringConstructor;
|
|
@@ -287,43 +287,43 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
287
287
|
tiny_chart_theme: ObjectConstructor;
|
|
288
288
|
}>> & {
|
|
289
289
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
290
|
-
"onNode-expand"?: ((...args: any[]) => any) | undefined;
|
|
291
|
-
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
292
|
-
onCheck?: ((...args: any[]) => any) | undefined;
|
|
293
|
-
"onCheck-change"?: ((...args: any[]) => any) | undefined;
|
|
294
290
|
"onNode-drag-start"?: ((...args: any[]) => any) | undefined;
|
|
291
|
+
"onInput-change"?: ((...args: any[]) => any) | undefined;
|
|
295
292
|
"onNode-drag-enter"?: ((...args: any[]) => any) | undefined;
|
|
296
293
|
"onNode-drag-over"?: ((...args: any[]) => any) | undefined;
|
|
297
294
|
"onNode-drag-end"?: ((...args: any[]) => any) | undefined;
|
|
298
295
|
"onNode-drop"?: ((...args: any[]) => any) | undefined;
|
|
299
|
-
"onNode-
|
|
296
|
+
"onNode-expand"?: ((...args: any[]) => any) | undefined;
|
|
300
297
|
"onNode-collapse"?: ((...args: any[]) => any) | undefined;
|
|
301
|
-
"
|
|
298
|
+
"onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
"onCheck-change"?: ((...args: any[]) => any) | undefined;
|
|
300
|
+
onCheck?: ((...args: any[]) => any) | undefined;
|
|
301
|
+
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
302
302
|
"onCollapse-change"?: ((...args: any[]) => any) | undefined;
|
|
303
303
|
}, {
|
|
304
304
|
ellipsis: boolean;
|
|
305
305
|
checkStrictly: boolean;
|
|
306
306
|
lazy: boolean;
|
|
307
307
|
tiny_mode_root: boolean;
|
|
308
|
-
showTitle: boolean;
|
|
309
|
-
clearable: boolean;
|
|
310
|
-
placeholder: string;
|
|
311
308
|
draggable: boolean;
|
|
312
|
-
wrap: boolean;
|
|
313
|
-
defaultExpandAll: boolean;
|
|
314
309
|
accordion: boolean;
|
|
315
|
-
|
|
310
|
+
defaultExpandAll: boolean;
|
|
316
311
|
emptyText: string;
|
|
317
312
|
expandOnClickNode: boolean;
|
|
313
|
+
indent: number;
|
|
318
314
|
showCheckbox: boolean;
|
|
319
315
|
showNumber: boolean;
|
|
320
316
|
collapsible: boolean;
|
|
321
317
|
onlyCheckChildren: boolean;
|
|
322
318
|
highlightQuery: boolean;
|
|
319
|
+
clearable: boolean;
|
|
320
|
+
showTitle: boolean;
|
|
321
|
+
placeholder: string;
|
|
323
322
|
searchIcon: Record<string, any>;
|
|
324
|
-
|
|
323
|
+
wrap: boolean;
|
|
325
324
|
showFilter: boolean;
|
|
326
325
|
showExpand: boolean;
|
|
327
326
|
menuCollapsible: boolean;
|
|
327
|
+
widthAdapt: boolean;
|
|
328
328
|
}, {}>;
|
|
329
329
|
export default _default;
|