lew-ui 2.7.67 → 2.7.69
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/components/data/tree/src/LewTree.vue.d.ts +26 -11
- package/dist/components/data/tree/src/LewTreeItem.vue.d.ts +1 -1
- package/dist/components/data/tree/src/types.d.ts +31 -0
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +1435 -293
- package/dist/components/form/tree-select/src/emits.d.ts +1 -1
- package/dist/components/form/tree-select/src/props.d.ts +11 -1
- package/dist/components/general/text-trim/index.d.ts +0 -1
- package/dist/components/general/text-trim/src/LewTextTrim.vue.d.ts +2 -10
- package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +4 -0
- package/dist/components/navigation/action-box/src/props.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +613 -605
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
- package/dist/components/form/tree-select-multiple/index.d.ts +0 -3
- package/dist/components/form/tree-select-multiple/src/LewTreeSelectMultiple.vue.d.ts +0 -1331
- package/dist/components/form/tree-select-multiple/src/emits.d.ts +0 -4
- package/dist/components/form/tree-select-multiple/src/props.d.ts +0 -127
- package/dist/components/general/text-trim/src/emits.d.ts +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LewTreeDataSource } from '../../../../types';
|
|
2
2
|
declare function reset(): void;
|
|
3
|
-
declare function search(keyword: string): void;
|
|
4
3
|
declare function __VLS_template(): {
|
|
5
4
|
attrs: Partial<{}>;
|
|
6
5
|
slots: {
|
|
@@ -86,22 +85,38 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
86
85
|
validator: (value: any) => boolean;
|
|
87
86
|
};
|
|
88
87
|
modelValue: {
|
|
89
|
-
type: globalThis.PropType<
|
|
88
|
+
type: globalThis.PropType<string | string[]>;
|
|
90
89
|
};
|
|
91
90
|
expandKeys: {
|
|
92
|
-
type: globalThis.PropType<
|
|
91
|
+
type: globalThis.PropType<string[]>;
|
|
93
92
|
};
|
|
94
93
|
}>, {
|
|
95
|
-
search:
|
|
94
|
+
search: any;
|
|
96
95
|
reset: typeof reset;
|
|
97
|
-
getTree: () =>
|
|
96
|
+
getTree: () => {
|
|
97
|
+
label: string;
|
|
98
|
+
key: string;
|
|
99
|
+
level: number;
|
|
100
|
+
isLeaf?: boolean | undefined;
|
|
101
|
+
loading?: boolean | undefined;
|
|
102
|
+
disabled?: boolean | undefined;
|
|
103
|
+
parentKey?: string | undefined;
|
|
104
|
+
treeIndex?: number | undefined;
|
|
105
|
+
labelPaths?: string[] | undefined;
|
|
106
|
+
valueKeys?: string[] | undefined;
|
|
107
|
+
parentKeyPaths?: string[] | undefined;
|
|
108
|
+
parentLabelPaths?: string[] | undefined;
|
|
109
|
+
allNodeValues: string[];
|
|
110
|
+
leafNodeValues: string[];
|
|
111
|
+
children?: /*elided*/ any[] | undefined;
|
|
112
|
+
}[];
|
|
98
113
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
99
114
|
change: (data: any) => void;
|
|
100
115
|
expand: (data: any) => void;
|
|
101
116
|
loadStart: () => void;
|
|
102
117
|
loadEnd: (text: string) => void;
|
|
103
|
-
"update:modelValue": (value:
|
|
104
|
-
"update:expandKeys": (value:
|
|
118
|
+
"update:modelValue": (value: string | string[]) => void;
|
|
119
|
+
"update:expandKeys": (value: string[]) => void;
|
|
105
120
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
106
121
|
dataSource: {
|
|
107
122
|
type: PropType<LewTreeDataSource[]>;
|
|
@@ -178,18 +193,18 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
178
193
|
validator: (value: any) => boolean;
|
|
179
194
|
};
|
|
180
195
|
modelValue: {
|
|
181
|
-
type: globalThis.PropType<
|
|
196
|
+
type: globalThis.PropType<string | string[]>;
|
|
182
197
|
};
|
|
183
198
|
expandKeys: {
|
|
184
|
-
type: globalThis.PropType<
|
|
199
|
+
type: globalThis.PropType<string[]>;
|
|
185
200
|
};
|
|
186
201
|
}>> & Readonly<{
|
|
187
202
|
onChange?: ((data: any) => any) | undefined;
|
|
188
|
-
"onUpdate:modelValue"?: ((value:
|
|
203
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
189
204
|
onExpand?: ((data: any) => any) | undefined;
|
|
190
205
|
onLoadStart?: (() => any) | undefined;
|
|
191
206
|
onLoadEnd?: ((text: string) => any) | undefined;
|
|
192
|
-
"onUpdate:expandKeys"?: ((value:
|
|
207
|
+
"onUpdate:expandKeys"?: ((value: string[]) => any) | undefined;
|
|
193
208
|
}>, {
|
|
194
209
|
checkable: boolean;
|
|
195
210
|
height: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LewTreeDataSource } from '../../../../types';
|
|
2
|
+
import { InjectionKey, Ref } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Tree 组件通过 provide/inject 传递的上下文类型
|
|
5
|
+
*/
|
|
6
|
+
export interface TreeContext {
|
|
7
|
+
readonly multiple: boolean;
|
|
8
|
+
readonly checkable: boolean;
|
|
9
|
+
readonly expandAll: boolean;
|
|
10
|
+
readonly free: boolean;
|
|
11
|
+
readonly showLine: boolean;
|
|
12
|
+
readonly onlyLeafSelectable: boolean;
|
|
13
|
+
readonly keyField: string;
|
|
14
|
+
readonly labelField: string;
|
|
15
|
+
modelValue: Ref<string | string[] | undefined>;
|
|
16
|
+
expandKeys: Ref<string[]>;
|
|
17
|
+
dataSource: Ref<LewTreeDataSource[]>;
|
|
18
|
+
cacheDataSource: Ref<LewTreeDataSource[]>;
|
|
19
|
+
loadMethod?: (item: LewTreeDataSource) => void | Promise<LewTreeDataSource[]>;
|
|
20
|
+
treeSelection?: {
|
|
21
|
+
isSelected: (key: string) => boolean;
|
|
22
|
+
isIndeterminate: (key: string) => boolean;
|
|
23
|
+
toggleKey: (key: string) => void;
|
|
24
|
+
addKey: (key: string) => void;
|
|
25
|
+
removeKey: (key: string) => void;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Tree 组件的 Symbol Key,用于类型安全的 inject
|
|
30
|
+
*/
|
|
31
|
+
export declare const TREE_INJECTION_KEY: InjectionKey<TreeContext>;
|