lew-ui 2.7.70 → 2.7.76
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/LICENSE +21 -21
- package/dist/_components/CloseButton.vue.d.ts +20 -0
- package/dist/_components/CloseIcon.vue.d.ts +18 -0
- package/dist/_components/CommonInput.vue.d.ts +12 -49
- package/dist/components/data/collapse/index.d.ts +1 -0
- package/dist/components/data/collapse/src/model.d.ts +14 -0
- package/dist/components/data/collapse/src/props.d.ts +0 -11
- package/dist/components/data/expand/src/LewExpand.vue.d.ts +8 -2
- package/dist/components/data/pagination/index.d.ts +1 -0
- package/dist/components/data/pagination/src/model.d.ts +16 -0
- package/dist/components/data/pagination/src/props.d.ts +0 -18
- package/dist/components/data/table/src/LewTable.vue.d.ts +11 -2
- package/dist/components/data/table/src/props.d.ts +5 -0
- package/dist/components/feedback/alert/src/LewAlert.vue.d.ts +2 -6
- package/dist/components/feedback/alert/src/emits.d.ts +1 -3
- package/dist/components/feedback/drawer/index.d.ts +1 -0
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +9 -10
- package/dist/components/feedback/drawer/src/model.d.ts +8 -0
- package/dist/components/feedback/drawer/src/props.d.ts +0 -7
- package/dist/components/feedback/modal/index.d.ts +1 -0
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +4 -4
- package/dist/components/feedback/modal/src/model.d.ts +8 -0
- package/dist/components/feedback/modal/src/props.d.ts +0 -6
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +20 -10
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +100 -100
- package/dist/components/form/cascader/src/emits.d.ts +4 -3
- package/dist/components/form/cascader/src/model.d.ts +2 -1
- package/dist/components/form/cascader/src/props.d.ts +80 -80
- package/dist/components/form/checkbox/src/LewCheckbox.vue.d.ts +54 -54
- package/dist/components/form/checkbox/src/LewCheckboxGroup.vue.d.ts +52 -52
- package/dist/components/form/checkbox/src/props.d.ts +83 -83
- package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +32 -32
- package/dist/components/form/color-picker/src/props.d.ts +21 -21
- package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +4 -4
- package/dist/components/form/input/src/LewInput.vue.d.ts +4 -35
- package/dist/components/form/input/src/props.d.ts +0 -17
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +6 -10
- package/dist/components/form/input-number/src/emits.d.ts +1 -1
- package/dist/components/form/input-number/src/props.d.ts +0 -4
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -53
- package/dist/components/form/input-tag/src/props.d.ts +0 -5
- package/dist/components/form/select/src/LewSelect.vue.d.ts +33 -88
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +12 -88
- package/dist/components/general/avatar/index.d.ts +6 -2
- package/dist/components/general/button/index.d.ts +7 -2
- package/dist/components/general/button/src/LewButton.vue.d.ts +8 -8
- package/dist/components/general/button/src/emits.d.ts +10 -0
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +15 -16
- package/dist/components/general/image/index.d.ts +6 -2
- package/dist/components/general/tag/src/LewTag.vue.d.ts +52 -14
- package/dist/components/general/tag/src/emits.d.ts +3 -0
- package/dist/components/general/tag/src/props.d.ts +9 -0
- package/dist/components/general/text-trim/index.d.ts +7 -2
- package/dist/components/general/text-trim/src/emits.d.ts +2 -0
- package/dist/components/general/text-trim/src/text-trim.d.ts +1 -1
- package/dist/components/navigation/action-box/index.d.ts +7 -3
- package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +6 -2
- package/dist/components/navigation/action-box/src/emits.d.ts +1 -0
- package/dist/components/navigation/back-top/index.d.ts +7 -2
- package/dist/components/navigation/back-top/src/emits.d.ts +2 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +7 -3
- package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +2 -2
- package/dist/components/navigation/breadcrumb/src/emits.d.ts +3 -1
- package/dist/components/navigation/dropdown/index.d.ts +8 -3
- package/dist/components/navigation/dropdown/src/emits.d.ts +1 -0
- package/dist/components/navigation/dropdown/src/model.d.ts +8 -0
- package/dist/components/navigation/dropdown/src/props.d.ts +0 -6
- package/dist/components/navigation/menu/index.d.ts +8 -3
- package/dist/components/navigation/menu/src/LewMenu.vue.d.ts +4 -4
- package/dist/components/navigation/menu/src/emits.d.ts +1 -0
- package/dist/components/navigation/menu/src/model.d.ts +7 -0
- package/dist/components/navigation/menu/src/props.d.ts +0 -5
- package/dist/components/navigation/menu-tree/index.d.ts +9 -4
- package/dist/components/navigation/menu-tree/src/emits.d.ts +1 -0
- package/dist/components/navigation/menu-tree/src/model.d.ts +16 -0
- package/dist/components/navigation/menu-tree/src/props.d.ts +0 -13
- package/dist/components/navigation/steps/index.d.ts +8 -3
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +10 -6
- package/dist/components/navigation/steps/src/emits.d.ts +1 -0
- package/dist/components/navigation/steps/src/model.d.ts +7 -0
- package/dist/components/navigation/steps/src/props.d.ts +3 -6
- package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -2
- package/dist/directives/context-menu/src/emits.d.ts +3 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3206 -2580
- package/dist/index.umd.cjs +1 -47
- package/dist/locals/de.d.ts +25 -0
- package/dist/locals/en.d.ts +32 -7
- package/dist/locals/es.d.ts +25 -0
- package/dist/locals/fr.d.ts +25 -0
- package/dist/locals/it.d.ts +25 -0
- package/dist/locals/ja.d.ts +25 -0
- package/dist/locals/ko.d.ts +25 -0
- package/dist/locals/pt.d.ts +25 -0
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -5
- package/dist/methods/notification/src/NotificationContainer.vue.d.ts +6 -0
- package/dist/methods/notification/src/index.d.ts +4 -0
- package/package.json +8 -4
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { LewButtonProps } from '../../../..';
|
|
3
3
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
4
|
-
export declare const modalModel: {
|
|
5
|
-
visible: {
|
|
6
|
-
type: BooleanConstructor;
|
|
7
|
-
default: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
export declare const modalProps: {
|
|
11
5
|
title: {
|
|
12
6
|
type: StringConstructor;
|
|
@@ -248,14 +248,13 @@ declare function __VLS_template(): {
|
|
|
248
248
|
readonly text?: string | undefined;
|
|
249
249
|
readonly request?: (() => Promise<void>) | undefined;
|
|
250
250
|
readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
251
|
+
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
251
252
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
|
|
252
253
|
$attrs: {
|
|
253
254
|
[x: string]: unknown;
|
|
254
255
|
};
|
|
255
256
|
$refs: {
|
|
256
257
|
[x: string]: unknown;
|
|
257
|
-
} & {
|
|
258
|
-
buttonRef: HTMLButtonElement;
|
|
259
258
|
};
|
|
260
259
|
$slots: Readonly<{
|
|
261
260
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -263,7 +262,7 @@ declare function __VLS_template(): {
|
|
|
263
262
|
$root: ComponentPublicInstance | null;
|
|
264
263
|
$parent: ComponentPublicInstance | null;
|
|
265
264
|
$host: Element | null;
|
|
266
|
-
$emit: (event:
|
|
265
|
+
$emit: (event: "click", e: MouseEvent) => void;
|
|
267
266
|
$el: HTMLButtonElement;
|
|
268
267
|
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
269
268
|
text: {
|
|
@@ -321,7 +320,11 @@ declare function __VLS_template(): {
|
|
|
321
320
|
type: PropType<() => Promise<void>>;
|
|
322
321
|
validator: (value: any) => boolean;
|
|
323
322
|
};
|
|
324
|
-
}>> & Readonly<{
|
|
323
|
+
}>> & Readonly<{
|
|
324
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
325
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
326
|
+
click: (e: MouseEvent) => void;
|
|
327
|
+
}, string, {
|
|
325
328
|
loading: boolean;
|
|
326
329
|
type: import('../../../..').LewButtonType;
|
|
327
330
|
color: LewColor;
|
|
@@ -415,7 +418,9 @@ declare function __VLS_template(): {
|
|
|
415
418
|
type: PropType<() => Promise<void>>;
|
|
416
419
|
validator: (value: any) => boolean;
|
|
417
420
|
};
|
|
418
|
-
}>> & Readonly<{
|
|
421
|
+
}>> & Readonly<{
|
|
422
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
423
|
+
}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
419
424
|
$slots: {
|
|
420
425
|
default?(_: {}): any;
|
|
421
426
|
};
|
|
@@ -798,14 +803,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
798
803
|
readonly text?: string | undefined;
|
|
799
804
|
readonly request?: (() => Promise<void>) | undefined;
|
|
800
805
|
readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
806
|
+
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
801
807
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
|
|
802
808
|
$attrs: {
|
|
803
809
|
[x: string]: unknown;
|
|
804
810
|
};
|
|
805
811
|
$refs: {
|
|
806
812
|
[x: string]: unknown;
|
|
807
|
-
} & {
|
|
808
|
-
buttonRef: HTMLButtonElement;
|
|
809
813
|
};
|
|
810
814
|
$slots: Readonly<{
|
|
811
815
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -813,7 +817,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
813
817
|
$root: ComponentPublicInstance | null;
|
|
814
818
|
$parent: ComponentPublicInstance | null;
|
|
815
819
|
$host: Element | null;
|
|
816
|
-
$emit: (event:
|
|
820
|
+
$emit: (event: "click", e: MouseEvent) => void;
|
|
817
821
|
$el: HTMLButtonElement;
|
|
818
822
|
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
819
823
|
text: {
|
|
@@ -871,7 +875,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
871
875
|
type: PropType<() => Promise<void>>;
|
|
872
876
|
validator: (value: any) => boolean;
|
|
873
877
|
};
|
|
874
|
-
}>> & Readonly<{
|
|
878
|
+
}>> & Readonly<{
|
|
879
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
880
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
881
|
+
click: (e: MouseEvent) => void;
|
|
882
|
+
}, string, {
|
|
875
883
|
loading: boolean;
|
|
876
884
|
type: import('../../../..').LewButtonType;
|
|
877
885
|
color: LewColor;
|
|
@@ -965,7 +973,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
965
973
|
type: PropType<() => Promise<void>>;
|
|
966
974
|
validator: (value: any) => boolean;
|
|
967
975
|
};
|
|
968
|
-
}>> & Readonly<{
|
|
976
|
+
}>> & Readonly<{
|
|
977
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
978
|
+
}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
969
979
|
$slots: {
|
|
970
980
|
default?(_: {}): any;
|
|
971
981
|
};
|
|
@@ -237,85 +237,85 @@ declare function __VLS_template(): {
|
|
|
237
237
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
238
238
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
239
239
|
options: {
|
|
240
|
-
type: PropType<LewCascaderOption[]>;
|
|
241
|
-
|
|
242
|
-
validator: (value: any[] | undefined) => boolean;
|
|
240
|
+
readonly type: PropType<LewCascaderOption[]>;
|
|
241
|
+
readonly typePopKeys: readonly ["LewCascaderOption"];
|
|
242
|
+
readonly validator: (value: any[] | undefined) => boolean;
|
|
243
243
|
};
|
|
244
244
|
width: {
|
|
245
|
-
type: PropType<import("csstype").Property.Width>;
|
|
246
|
-
default:
|
|
247
|
-
validator: (value: string | number | undefined) => boolean;
|
|
245
|
+
readonly type: PropType<import("csstype").Property.Width>;
|
|
246
|
+
readonly default: "100%";
|
|
247
|
+
readonly validator: (value: string | number | undefined) => boolean;
|
|
248
248
|
};
|
|
249
249
|
placeholder: {
|
|
250
|
-
type: StringConstructor;
|
|
251
|
-
defaultLocale:
|
|
252
|
-
validator: (value: any) => boolean;
|
|
250
|
+
readonly type: StringConstructor;
|
|
251
|
+
readonly defaultLocale: true;
|
|
252
|
+
readonly validator: (value: any) => boolean;
|
|
253
253
|
};
|
|
254
254
|
disabled: {
|
|
255
|
-
type: BooleanConstructor;
|
|
256
|
-
default:
|
|
257
|
-
validator: (value: any) => boolean;
|
|
255
|
+
readonly type: BooleanConstructor;
|
|
256
|
+
readonly default: false;
|
|
257
|
+
readonly validator: (value: any) => boolean;
|
|
258
258
|
};
|
|
259
259
|
clearable: {
|
|
260
|
-
type: BooleanConstructor;
|
|
261
|
-
default:
|
|
262
|
-
validator: (value: any) => boolean;
|
|
260
|
+
readonly type: BooleanConstructor;
|
|
261
|
+
readonly default: true;
|
|
262
|
+
readonly validator: (value: any) => boolean;
|
|
263
263
|
};
|
|
264
264
|
free: {
|
|
265
|
-
type: BooleanConstructor;
|
|
266
|
-
default:
|
|
267
|
-
validator: (value: any) => boolean;
|
|
265
|
+
readonly type: BooleanConstructor;
|
|
266
|
+
readonly default: false;
|
|
267
|
+
readonly validator: (value: any) => boolean;
|
|
268
268
|
};
|
|
269
269
|
size: {
|
|
270
|
-
type: PropType<import('../../../..').LewSize>;
|
|
271
|
-
default:
|
|
272
|
-
typeValues: import('../../../..').LewSize[];
|
|
273
|
-
validator: (value: any) => boolean;
|
|
270
|
+
readonly type: PropType<import('../../../..').LewSize>;
|
|
271
|
+
readonly default: "medium";
|
|
272
|
+
readonly typeValues: import('../../../..').LewSize[];
|
|
273
|
+
readonly validator: (value: any) => boolean;
|
|
274
274
|
};
|
|
275
275
|
trigger: {
|
|
276
|
-
type: PropType<import('../../../..').LewTrigger>;
|
|
277
|
-
default:
|
|
278
|
-
typeValues: import('../../../..').LewTrigger[];
|
|
279
|
-
validator: (value: any) => boolean;
|
|
276
|
+
readonly type: PropType<import('../../../..').LewTrigger>;
|
|
277
|
+
readonly default: "click";
|
|
278
|
+
readonly typeValues: import('../../../..').LewTrigger[];
|
|
279
|
+
readonly validator: (value: any) => boolean;
|
|
280
280
|
};
|
|
281
281
|
loadMethod: {
|
|
282
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
283
|
-
default: null;
|
|
284
|
-
validator: (value: any) => boolean;
|
|
282
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
283
|
+
readonly default: null;
|
|
284
|
+
readonly validator: (value: any) => boolean;
|
|
285
285
|
};
|
|
286
286
|
loadMethodId: {
|
|
287
|
-
type: StringConstructor;
|
|
288
|
-
hidden:
|
|
289
|
-
validator: (value: any) => boolean;
|
|
287
|
+
readonly type: StringConstructor;
|
|
288
|
+
readonly hidden: true;
|
|
289
|
+
readonly validator: (value: any) => boolean;
|
|
290
290
|
};
|
|
291
291
|
initMethod: {
|
|
292
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
293
|
-
default: null;
|
|
294
|
-
validator: (value: any) => boolean;
|
|
292
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
293
|
+
readonly default: null;
|
|
294
|
+
readonly validator: (value: any) => boolean;
|
|
295
295
|
};
|
|
296
296
|
initMethodId: {
|
|
297
|
-
type: StringConstructor;
|
|
298
|
-
validator: (value: any) => boolean;
|
|
297
|
+
readonly type: StringConstructor;
|
|
298
|
+
readonly validator: (value: any) => boolean;
|
|
299
299
|
};
|
|
300
300
|
readonly: {
|
|
301
|
-
type: BooleanConstructor;
|
|
302
|
-
default:
|
|
303
|
-
validator: (value: any) => boolean;
|
|
301
|
+
readonly type: BooleanConstructor;
|
|
302
|
+
readonly default: false;
|
|
303
|
+
readonly validator: (value: any) => boolean;
|
|
304
304
|
};
|
|
305
305
|
onlyLeafSelectable: {
|
|
306
|
-
type: BooleanConstructor;
|
|
307
|
-
default:
|
|
308
|
-
validator: (value: any) => boolean;
|
|
306
|
+
readonly type: BooleanConstructor;
|
|
307
|
+
readonly default: true;
|
|
308
|
+
readonly validator: (value: any) => boolean;
|
|
309
309
|
};
|
|
310
310
|
multiple: {
|
|
311
|
-
type: BooleanConstructor;
|
|
312
|
-
default:
|
|
313
|
-
validator: (value: any) => boolean;
|
|
311
|
+
readonly type: BooleanConstructor;
|
|
312
|
+
readonly default: false;
|
|
313
|
+
readonly validator: (value: any) => boolean;
|
|
314
314
|
};
|
|
315
315
|
showAllLevels: {
|
|
316
|
-
type: BooleanConstructor;
|
|
317
|
-
default:
|
|
318
|
-
validator: (value: any) => boolean;
|
|
316
|
+
readonly type: BooleanConstructor;
|
|
317
|
+
readonly default: true;
|
|
318
|
+
readonly validator: (value: any) => boolean;
|
|
319
319
|
};
|
|
320
320
|
modelValue: {
|
|
321
321
|
type: globalThis.PropType<string | string[]>;
|
|
@@ -325,97 +325,97 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
325
325
|
hide: typeof hide;
|
|
326
326
|
getSelected: typeof getSelected;
|
|
327
327
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
328
|
-
change: (value:
|
|
328
|
+
change: (value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => void;
|
|
329
329
|
clear: () => void;
|
|
330
330
|
delete: (value: string[], deletedItem: string) => void;
|
|
331
331
|
"update:modelValue": (value: string | string[] | undefined) => void;
|
|
332
332
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
333
333
|
options: {
|
|
334
|
-
type: PropType<LewCascaderOption[]>;
|
|
335
|
-
|
|
336
|
-
validator: (value: any[] | undefined) => boolean;
|
|
334
|
+
readonly type: PropType<LewCascaderOption[]>;
|
|
335
|
+
readonly typePopKeys: readonly ["LewCascaderOption"];
|
|
336
|
+
readonly validator: (value: any[] | undefined) => boolean;
|
|
337
337
|
};
|
|
338
338
|
width: {
|
|
339
|
-
type: PropType<import("csstype").Property.Width>;
|
|
340
|
-
default:
|
|
341
|
-
validator: (value: string | number | undefined) => boolean;
|
|
339
|
+
readonly type: PropType<import("csstype").Property.Width>;
|
|
340
|
+
readonly default: "100%";
|
|
341
|
+
readonly validator: (value: string | number | undefined) => boolean;
|
|
342
342
|
};
|
|
343
343
|
placeholder: {
|
|
344
|
-
type: StringConstructor;
|
|
345
|
-
defaultLocale:
|
|
346
|
-
validator: (value: any) => boolean;
|
|
344
|
+
readonly type: StringConstructor;
|
|
345
|
+
readonly defaultLocale: true;
|
|
346
|
+
readonly validator: (value: any) => boolean;
|
|
347
347
|
};
|
|
348
348
|
disabled: {
|
|
349
|
-
type: BooleanConstructor;
|
|
350
|
-
default:
|
|
351
|
-
validator: (value: any) => boolean;
|
|
349
|
+
readonly type: BooleanConstructor;
|
|
350
|
+
readonly default: false;
|
|
351
|
+
readonly validator: (value: any) => boolean;
|
|
352
352
|
};
|
|
353
353
|
clearable: {
|
|
354
|
-
type: BooleanConstructor;
|
|
355
|
-
default:
|
|
356
|
-
validator: (value: any) => boolean;
|
|
354
|
+
readonly type: BooleanConstructor;
|
|
355
|
+
readonly default: true;
|
|
356
|
+
readonly validator: (value: any) => boolean;
|
|
357
357
|
};
|
|
358
358
|
free: {
|
|
359
|
-
type: BooleanConstructor;
|
|
360
|
-
default:
|
|
361
|
-
validator: (value: any) => boolean;
|
|
359
|
+
readonly type: BooleanConstructor;
|
|
360
|
+
readonly default: false;
|
|
361
|
+
readonly validator: (value: any) => boolean;
|
|
362
362
|
};
|
|
363
363
|
size: {
|
|
364
|
-
type: PropType<import('../../../..').LewSize>;
|
|
365
|
-
default:
|
|
366
|
-
typeValues: import('../../../..').LewSize[];
|
|
367
|
-
validator: (value: any) => boolean;
|
|
364
|
+
readonly type: PropType<import('../../../..').LewSize>;
|
|
365
|
+
readonly default: "medium";
|
|
366
|
+
readonly typeValues: import('../../../..').LewSize[];
|
|
367
|
+
readonly validator: (value: any) => boolean;
|
|
368
368
|
};
|
|
369
369
|
trigger: {
|
|
370
|
-
type: PropType<import('../../../..').LewTrigger>;
|
|
371
|
-
default:
|
|
372
|
-
typeValues: import('../../../..').LewTrigger[];
|
|
373
|
-
validator: (value: any) => boolean;
|
|
370
|
+
readonly type: PropType<import('../../../..').LewTrigger>;
|
|
371
|
+
readonly default: "click";
|
|
372
|
+
readonly typeValues: import('../../../..').LewTrigger[];
|
|
373
|
+
readonly validator: (value: any) => boolean;
|
|
374
374
|
};
|
|
375
375
|
loadMethod: {
|
|
376
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
377
|
-
default: null;
|
|
378
|
-
validator: (value: any) => boolean;
|
|
376
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
377
|
+
readonly default: null;
|
|
378
|
+
readonly validator: (value: any) => boolean;
|
|
379
379
|
};
|
|
380
380
|
loadMethodId: {
|
|
381
|
-
type: StringConstructor;
|
|
382
|
-
hidden:
|
|
383
|
-
validator: (value: any) => boolean;
|
|
381
|
+
readonly type: StringConstructor;
|
|
382
|
+
readonly hidden: true;
|
|
383
|
+
readonly validator: (value: any) => boolean;
|
|
384
384
|
};
|
|
385
385
|
initMethod: {
|
|
386
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
387
|
-
default: null;
|
|
388
|
-
validator: (value: any) => boolean;
|
|
386
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
387
|
+
readonly default: null;
|
|
388
|
+
readonly validator: (value: any) => boolean;
|
|
389
389
|
};
|
|
390
390
|
initMethodId: {
|
|
391
|
-
type: StringConstructor;
|
|
392
|
-
validator: (value: any) => boolean;
|
|
391
|
+
readonly type: StringConstructor;
|
|
392
|
+
readonly validator: (value: any) => boolean;
|
|
393
393
|
};
|
|
394
394
|
readonly: {
|
|
395
|
-
type: BooleanConstructor;
|
|
396
|
-
default:
|
|
397
|
-
validator: (value: any) => boolean;
|
|
395
|
+
readonly type: BooleanConstructor;
|
|
396
|
+
readonly default: false;
|
|
397
|
+
readonly validator: (value: any) => boolean;
|
|
398
398
|
};
|
|
399
399
|
onlyLeafSelectable: {
|
|
400
|
-
type: BooleanConstructor;
|
|
401
|
-
default:
|
|
402
|
-
validator: (value: any) => boolean;
|
|
400
|
+
readonly type: BooleanConstructor;
|
|
401
|
+
readonly default: true;
|
|
402
|
+
readonly validator: (value: any) => boolean;
|
|
403
403
|
};
|
|
404
404
|
multiple: {
|
|
405
|
-
type: BooleanConstructor;
|
|
406
|
-
default:
|
|
407
|
-
validator: (value: any) => boolean;
|
|
405
|
+
readonly type: BooleanConstructor;
|
|
406
|
+
readonly default: false;
|
|
407
|
+
readonly validator: (value: any) => boolean;
|
|
408
408
|
};
|
|
409
409
|
showAllLevels: {
|
|
410
|
-
type: BooleanConstructor;
|
|
411
|
-
default:
|
|
412
|
-
validator: (value: any) => boolean;
|
|
410
|
+
readonly type: BooleanConstructor;
|
|
411
|
+
readonly default: true;
|
|
412
|
+
readonly validator: (value: any) => boolean;
|
|
413
413
|
};
|
|
414
414
|
modelValue: {
|
|
415
415
|
type: globalThis.PropType<string | string[]>;
|
|
416
416
|
};
|
|
417
417
|
}>> & Readonly<{
|
|
418
|
-
onChange?: ((value:
|
|
418
|
+
onChange?: ((value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => any) | undefined;
|
|
419
419
|
onClear?: (() => any) | undefined;
|
|
420
420
|
onDelete?: ((value: string[], deletedItem: string) => any) | undefined;
|
|
421
421
|
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { LewCascaderOption } from '../../../../types';
|
|
1
2
|
export declare const cascaderEmits: {
|
|
2
|
-
readonly change: (value:
|
|
3
|
-
value:
|
|
4
|
-
items:
|
|
3
|
+
readonly change: (value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => {
|
|
4
|
+
value: string | string[] | undefined;
|
|
5
|
+
items: LewCascaderOption | LewCascaderOption[] | undefined;
|
|
5
6
|
};
|
|
6
7
|
readonly clear: () => boolean;
|
|
7
8
|
readonly delete: (value: string[], deletedItem: string) => {
|
|
@@ -2,86 +2,86 @@ import { Property } from 'csstype';
|
|
|
2
2
|
import { LewCascaderOption, LewSize, LewTrigger } from '../../../..';
|
|
3
3
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
4
4
|
export declare const cascaderProps: {
|
|
5
|
-
options: {
|
|
6
|
-
type: PropType<LewCascaderOption[]>;
|
|
7
|
-
|
|
8
|
-
validator: (value: any[] | undefined) => boolean;
|
|
9
|
-
};
|
|
10
|
-
width: {
|
|
11
|
-
type: PropType<Property.Width>;
|
|
12
|
-
default:
|
|
13
|
-
validator: (value: string | number | undefined) => boolean;
|
|
14
|
-
};
|
|
15
|
-
placeholder: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
defaultLocale:
|
|
18
|
-
validator: (value: any) => boolean;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default:
|
|
23
|
-
validator: (value: any) => boolean;
|
|
24
|
-
};
|
|
25
|
-
clearable: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default:
|
|
28
|
-
validator: (value: any) => boolean;
|
|
29
|
-
};
|
|
30
|
-
free: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default:
|
|
33
|
-
validator: (value: any) => boolean;
|
|
34
|
-
};
|
|
35
|
-
size: {
|
|
36
|
-
type: PropType<LewSize>;
|
|
37
|
-
default:
|
|
38
|
-
typeValues: LewSize[];
|
|
39
|
-
validator: (value: any) => boolean;
|
|
40
|
-
};
|
|
41
|
-
trigger: {
|
|
42
|
-
type: PropType<LewTrigger>;
|
|
43
|
-
default:
|
|
44
|
-
typeValues: LewTrigger[];
|
|
45
|
-
validator: (value: any) => boolean;
|
|
46
|
-
};
|
|
47
|
-
loadMethod: {
|
|
48
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
49
|
-
default: null;
|
|
50
|
-
validator: (value: any) => boolean;
|
|
51
|
-
};
|
|
52
|
-
loadMethodId: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
hidden:
|
|
55
|
-
validator: (value: any) => boolean;
|
|
56
|
-
};
|
|
57
|
-
initMethod: {
|
|
58
|
-
type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
59
|
-
default: null;
|
|
60
|
-
validator: (value: any) => boolean;
|
|
61
|
-
};
|
|
62
|
-
initMethodId: {
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
validator: (value: any) => boolean;
|
|
65
|
-
};
|
|
66
|
-
readonly: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default:
|
|
69
|
-
validator: (value: any) => boolean;
|
|
70
|
-
};
|
|
71
|
-
onlyLeafSelectable: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default:
|
|
74
|
-
validator: (value: any) => boolean;
|
|
75
|
-
};
|
|
76
|
-
multiple: {
|
|
77
|
-
type: BooleanConstructor;
|
|
78
|
-
default:
|
|
79
|
-
validator: (value: any) => boolean;
|
|
80
|
-
};
|
|
81
|
-
showAllLevels: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default:
|
|
84
|
-
validator: (value: any) => boolean;
|
|
5
|
+
readonly options: {
|
|
6
|
+
readonly type: PropType<LewCascaderOption[]>;
|
|
7
|
+
readonly typePopKeys: readonly ["LewCascaderOption"];
|
|
8
|
+
readonly validator: (value: any[] | undefined) => boolean;
|
|
9
|
+
};
|
|
10
|
+
readonly width: {
|
|
11
|
+
readonly type: PropType<Property.Width>;
|
|
12
|
+
readonly default: "100%";
|
|
13
|
+
readonly validator: (value: string | number | undefined) => boolean;
|
|
14
|
+
};
|
|
15
|
+
readonly placeholder: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly defaultLocale: true;
|
|
18
|
+
readonly validator: (value: any) => boolean;
|
|
19
|
+
};
|
|
20
|
+
readonly disabled: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
readonly validator: (value: any) => boolean;
|
|
24
|
+
};
|
|
25
|
+
readonly clearable: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: true;
|
|
28
|
+
readonly validator: (value: any) => boolean;
|
|
29
|
+
};
|
|
30
|
+
readonly free: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
readonly validator: (value: any) => boolean;
|
|
34
|
+
};
|
|
35
|
+
readonly size: {
|
|
36
|
+
readonly type: PropType<LewSize>;
|
|
37
|
+
readonly default: "medium";
|
|
38
|
+
readonly typeValues: LewSize[];
|
|
39
|
+
readonly validator: (value: any) => boolean;
|
|
40
|
+
};
|
|
41
|
+
readonly trigger: {
|
|
42
|
+
readonly type: PropType<LewTrigger>;
|
|
43
|
+
readonly default: "click";
|
|
44
|
+
readonly typeValues: LewTrigger[];
|
|
45
|
+
readonly validator: (value: any) => boolean;
|
|
46
|
+
};
|
|
47
|
+
readonly loadMethod: {
|
|
48
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
49
|
+
readonly default: null;
|
|
50
|
+
readonly validator: (value: any) => boolean;
|
|
51
|
+
};
|
|
52
|
+
readonly loadMethodId: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly hidden: true;
|
|
55
|
+
readonly validator: (value: any) => boolean;
|
|
56
|
+
};
|
|
57
|
+
readonly initMethod: {
|
|
58
|
+
readonly type: PropType<() => Promise<LewCascaderOption[]>>;
|
|
59
|
+
readonly default: null;
|
|
60
|
+
readonly validator: (value: any) => boolean;
|
|
61
|
+
};
|
|
62
|
+
readonly initMethodId: {
|
|
63
|
+
readonly type: StringConstructor;
|
|
64
|
+
readonly validator: (value: any) => boolean;
|
|
65
|
+
};
|
|
66
|
+
readonly readonly: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
readonly validator: (value: any) => boolean;
|
|
70
|
+
};
|
|
71
|
+
readonly onlyLeafSelectable: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: true;
|
|
74
|
+
readonly validator: (value: any) => boolean;
|
|
75
|
+
};
|
|
76
|
+
readonly multiple: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
readonly validator: (value: any) => boolean;
|
|
80
|
+
};
|
|
81
|
+
readonly showAllLevels: {
|
|
82
|
+
readonly type: BooleanConstructor;
|
|
83
|
+
readonly default: true;
|
|
84
|
+
readonly validator: (value: any) => boolean;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
export type LewCascaderProps = ExtractPublicPropTypes<typeof cascaderProps>;
|