@wimi/ui 0.4.16 → 0.4.18
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/{en-fXWwo_l-.mjs → en-gonzj404.mjs} +1 -1
- package/dist/{index-Ce-XXHsr.mjs → index-BQq5z6-F.mjs} +204 -21
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/{ja-DGKucQeW.mjs → ja-CN386CXw.mjs} +1 -1
- package/dist/{ko-g8wFjJ4_.mjs → ko-BNNzPe5h.mjs} +1 -1
- package/dist/{ru-CRHBZ_wN.mjs → ru-CpRb9z7m.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/typings/components/tree/src/tree.vue.d.ts +26 -6
- package/dist/typings/components/tree/src/types.d.ts +6 -0
- package/dist/{zh-cn-C3TF4wYn.mjs → zh-cn-rZv9VN_q.mjs} +1 -1
- package/dist/{zh-tw-CTZLQW91.mjs → zh-tw-Doi3PYqg.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TreeOption } from 'naive-ui';
|
|
2
|
-
import { WmTreeProps } from './types';
|
|
3
|
-
declare var __VLS_10: {},
|
|
2
|
+
import { Key, WmTreeProps } from './types';
|
|
3
|
+
declare var __VLS_10: {}, __VLS_30: {}, __VLS_37: string, __VLS_38: any, __VLS_40: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
[K in NonNullable<typeof
|
|
5
|
+
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
6
6
|
} & {
|
|
7
7
|
header?: (props: typeof __VLS_10) => any;
|
|
8
8
|
} & {
|
|
9
|
-
empty?: (props: typeof
|
|
9
|
+
empty?: (props: typeof __VLS_30) => any;
|
|
10
10
|
} & {
|
|
11
|
-
footer?: (props: typeof
|
|
11
|
+
footer?: (props: typeof __VLS_40) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_component: import("vue").DefineComponent<WmTreeProps, {
|
|
14
14
|
scrollTo: import("vueuc").VVirtualListScrollTo;
|
|
@@ -20,7 +20,24 @@ declare const __VLS_component: import("vue").DefineComponent<WmTreeProps, {
|
|
|
20
20
|
keys: import("naive-ui/es/tree/src/interface").Key[];
|
|
21
21
|
options: Array<TreeOption | null>;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
getFilteredCheckedKeys: () => Key[];
|
|
24
|
+
getFilteredCheckedData: () => {
|
|
25
|
+
keys: Key[];
|
|
26
|
+
options: TreeOption[];
|
|
27
|
+
} | undefined;
|
|
28
|
+
getSearchValue: () => string;
|
|
29
|
+
getVisibleKeys: () => Set<Key>;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:checkedKeys": (keys: Key[], options: TreeOption[], meta: {
|
|
32
|
+
node: TreeOption | null;
|
|
33
|
+
action: "check" | "uncheck";
|
|
34
|
+
}) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<WmTreeProps> & Readonly<{
|
|
36
|
+
"onUpdate:checkedKeys"?: (keys: Key[], options: TreeOption[], meta: {
|
|
37
|
+
node: TreeOption | null;
|
|
38
|
+
action: "check" | "uncheck";
|
|
39
|
+
}) => any;
|
|
40
|
+
}>, {
|
|
24
41
|
ellipsis: boolean;
|
|
25
42
|
selectable: boolean;
|
|
26
43
|
animated: boolean;
|
|
@@ -34,6 +51,9 @@ declare const __VLS_component: import("vue").DefineComponent<WmTreeProps, {
|
|
|
34
51
|
showLine: boolean;
|
|
35
52
|
checkboxPlacement: "left" | "right";
|
|
36
53
|
keyboard: boolean;
|
|
54
|
+
filterCheckedOnly: boolean;
|
|
55
|
+
checkAllOnClear: boolean;
|
|
56
|
+
defaultCheckAll: boolean;
|
|
37
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
58
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
59
|
export default _default;
|
|
@@ -86,4 +86,10 @@ export type WmTreeProps = TreeProps & {
|
|
|
86
86
|
ellipsis?: boolean;
|
|
87
87
|
loading?: boolean;
|
|
88
88
|
inputProps?: InputProps;
|
|
89
|
+
/** 搜索过滤时,勾选操作是否只影响可见节点,默认 true */
|
|
90
|
+
filterCheckedOnly?: boolean;
|
|
91
|
+
/** 清空搜索时是否自动全选所有节点,默认 false */
|
|
92
|
+
checkAllOnClear?: boolean;
|
|
93
|
+
/** 开启多选时是否默认全选所有节点,默认 false */
|
|
94
|
+
defaultCheckAll?: boolean;
|
|
89
95
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, d as dayjs_minExports, c as commonjsGlobal } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, d as dayjs_minExports, c as commonjsGlobal } from "./index-BQq5z6-F.mjs";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, d as dayjs_minExports, c as commonjsGlobal } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, d as dayjs_minExports, c as commonjsGlobal } from "./index-BQq5z6-F.mjs";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|