@wyfex/ivue 0.19.4 → 0.21.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.
Files changed (57) hide show
  1. package/README.md +7 -1
  2. package/dist/index.es.js +10 -10
  3. package/dist/index.umd.cjs +10 -10
  4. package/dist/ivue.css +1 -1
  5. package/dist/types/UseCrud/defaultExtConfig.d.ts +4 -0
  6. package/dist/types/UseCrud/hook.d.ts +2 -22
  7. package/dist/types/UseCrud/index.vue.d.ts +11 -2
  8. package/dist/types/UseCrud/types.d.ts +47 -3
  9. package/dist/types/UseCrud/utils.d.ts +48 -2
  10. package/dist/types/UseEcharts/hook.d.ts +6 -0
  11. package/dist/types/UseEcharts/index.vue.d.ts +105 -0
  12. package/dist/types/UseEcharts/props.d.ts +46 -0
  13. package/dist/types/UseEcharts/types.d.ts +6 -0
  14. package/dist/types/UseElButton/index.vue.d.ts +16 -5
  15. package/dist/types/UseElButton/props.d.ts +2 -2
  16. package/dist/types/UseElCheckbox/hook.d.ts +3 -2
  17. package/dist/types/UseElCheckbox/index.vue.d.ts +14 -8
  18. package/dist/types/UseElCheckbox/props.d.ts +6 -2
  19. package/dist/types/UseElCheckbox/types.d.ts +1 -1
  20. package/dist/types/UseElDatePicker/index.vue.d.ts +4 -4
  21. package/dist/types/UseElDatePicker/types.d.ts +2 -2
  22. package/dist/types/UseElDialog/hook.d.ts +1 -0
  23. package/dist/types/UseElDialog/index.vue.d.ts +19 -1
  24. package/dist/types/UseElDialog/props.d.ts +8 -0
  25. package/dist/types/UseElDrawer/index.vue.d.ts +10 -1
  26. package/dist/types/UseElDrawer/props.d.ts +4 -0
  27. package/dist/types/UseElForm/types.d.ts +1 -2
  28. package/dist/types/UseElInput/index.vue.d.ts +4 -4
  29. package/dist/types/UseElSelect/index.vue.d.ts +4 -4
  30. package/dist/types/UseElTable/defaultExtConfig.d.ts +1 -1
  31. package/dist/types/UseElTable/types.d.ts +9 -10
  32. package/dist/types/UseElTimeSelect/index.vue.d.ts +28 -0
  33. package/dist/types/UseElTimeSelect/props.d.ts +13 -0
  34. package/dist/types/UseElTimeSelect/types.d.ts +6 -0
  35. package/dist/types/UseRender/index.vue.d.ts +1 -1
  36. package/dist/types/index.d.ts +2 -1
  37. package/package.json +12 -12
  38. package/src/components/UseCrud/defaultExtConfig.ts +1 -0
  39. package/src/components/UseCrud/props.ts +1 -1
  40. package/src/components/UseCrud/types.ts +97 -23
  41. package/src/components/UseEcharts/props.ts +77 -0
  42. package/src/components/UseEcharts/types.ts +14 -0
  43. package/src/components/UseElButton/props.ts +3 -3
  44. package/src/components/UseElButton/types.ts +12 -37
  45. package/src/components/UseElCheckbox/props.ts +7 -5
  46. package/src/components/UseElCheckbox/types.ts +5 -2
  47. package/src/components/UseElConfigProvider/types.ts +10 -18
  48. package/src/components/UseElDatePicker/types.ts +3 -3
  49. package/src/components/UseElDialog/props.ts +16 -2
  50. package/src/components/UseElDrawer/props.ts +7 -0
  51. package/src/components/UseElForm/types.ts +3 -10
  52. package/src/components/UseElTable/types.ts +92 -183
  53. package/src/components/UseElTimeSelect/props.ts +22 -0
  54. package/src/components/UseElTimeSelect/types.ts +15 -0
  55. package/src/components/UseLineTitle/defaultExtConfig.ts +1 -1
  56. package/dist/types/UseCrud/useCrudWithBusiness.d.ts +0 -46
  57. /package/dist/types/UseElForm/components/controls/{TimeSelect.vue.d.ts → TimeSelectRange.vue.d.ts} +0 -0
@@ -1,4 +1,8 @@
1
1
  declare const _default: {
2
+ crudFetch: {
3
+ queryImmediate: true;
4
+ autoCancelQueryStrategy: "unmount";
5
+ };
2
6
  mode: {
3
7
  type: "PAGE";
4
8
  };
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Slots } from 'vue';
2
- import { Emits, Props } from './types';
2
+ import { Emits, Props, UseCrudReturn } from './types';
3
3
  import { GlobalConfig } from '../../types';
4
4
  export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef, emits }: {
5
5
  mergedProps: ComputedRef<Props>;
@@ -8,24 +8,4 @@ export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modal
8
8
  uefRef: any;
9
9
  modalRef: any;
10
10
  emits: Emits;
11
- }) => {
12
- state: any;
13
- heightComputed: ComputedRef<string>;
14
- margin: ComputedRef<string | undefined>;
15
- actionBar: import('./types').ActionBar | undefined;
16
- handleDisplayQueryForm: () => void;
17
- showModal: import('vue').Ref<boolean, boolean>;
18
- modalComponent: import('vue').ShallowRef<null, null> | import('vue').ShallowRef<import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>> | import('vue').ShallowRef<import('vue').FunctionalComponent<any, {}, any, {}>, import('vue').FunctionalComponent<any, {}, any, {}>> | import('vue').ShallowRef<{
19
- new (...args: any[]): any;
20
- __isFragment?: never;
21
- __isTeleport?: never;
22
- __isSuspense?: never;
23
- }, {
24
- new (...args: any[]): any;
25
- __isFragment?: never;
26
- __isTeleport?: never;
27
- __isSuspense?: never;
28
- }>;
29
- handleShowModal: () => Promise<void>;
30
- handleCloseModal: ComputedRef<any>;
31
- };
11
+ }) => UseCrudReturn;
@@ -8,10 +8,19 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
8
8
  default: () => {};
9
9
  };
10
10
  }>, {
11
- uefRef: import('vue').Ref<any, any>;
11
+ state: import('vue').Ref<import('./types').UseCrudState, import('./types').UseCrudState>;
12
+ onQuery: (e: Record<string, unknown>, done?: () => void) => void;
13
+ onCancelQueryRequest: () => void;
14
+ handleDelete: (payload: {
15
+ id?: string | number;
16
+ ids?: string | Array<string | number>;
17
+ }, loadingConfig: {
18
+ source?: Record<string, unknown>;
19
+ key?: string;
20
+ }, successCb?: () => void, errorCb?: (err: unknown) => void, successMsg?: string) => Promise<void>;
12
21
  modalRef: import('vue').Ref<any, any>;
13
22
  handleShowModal: () => Promise<void>;
14
- handleCloseModal: import('vue').ComputedRef<any>;
23
+ handleCloseModal: import('vue').ComputedRef<() => void>;
15
24
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
25
  onDictKeys: (value?: string[] | undefined) => any;
17
26
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -1,4 +1,4 @@
1
- import { Component, ExtractPropTypes } from 'vue';
1
+ import { Component, ComputedRef, ExtractPropTypes, Ref, ShallowRef } from 'vue';
2
2
  import { default as componentProps } from './props';
3
3
  import { FormColumn } from '../UseElForm/types';
4
4
  import { TableColumn, ExtConfig as TableExtConfig } from '../UseElTable/types';
@@ -6,9 +6,10 @@ export type Props = ExtractPropTypes<typeof componentProps>;
6
6
  export type Emits = {
7
7
  (e: 'onDictKeys', value?: string[]): void;
8
8
  };
9
- export type BaseConfigs = Omit<FormColumn, 'prop'> & Omit<TableColumn, 'prop'>;
9
+ export type BaseConfigs = FormColumn & TableColumn;
10
10
  export interface Configs extends BaseConfigs {
11
- prop: string;
11
+ queryLabel?: string;
12
+ queryProp?: string;
12
13
  onlySearch?: boolean;
13
14
  tableOrder?: number;
14
15
  }
@@ -25,9 +26,52 @@ export interface ActionBar {
25
26
  divider?: Divider;
26
27
  }
27
28
  export interface ExtConfig {
29
+ crudFetch?: {
30
+ queryApi?: Function;
31
+ queryImmediate?: boolean;
32
+ autoCancelQueryStrategy?: 'none' | 'unmount' | 'deactivate' | 'both';
33
+ onQueryBefore?: (done: () => void) => void;
34
+ onQueryError?: (err: any) => void;
35
+ deleteApi?: Function;
36
+ };
28
37
  actionBar?: ActionBar;
29
38
  modal?: {
30
39
  type?: 'Drawer' | 'Dialog';
31
40
  };
32
41
  }
33
42
  export type MergedExtConfig = ExtConfig & TableExtConfig;
43
+ export interface UseCrudState {
44
+ formColumns: FormColumn[];
45
+ tableColumns: TableColumn[];
46
+ formModel: Record<string, any>;
47
+ tableLoading: boolean;
48
+ tableData: any[];
49
+ currentPage: number;
50
+ pageSize: number;
51
+ total: number;
52
+ dictMap: Record<string, any>;
53
+ }
54
+ export interface UseCrudReturn {
55
+ state: Ref<UseCrudState>;
56
+ heightComputed: ComputedRef<string>;
57
+ fetchTableData: (options?: {
58
+ params?: Record<string, any>;
59
+ isPageApi?: boolean;
60
+ }, cb?: () => void) => Promise<any>;
61
+ onQuery: (e: Record<string, unknown>, done?: () => void) => void;
62
+ onCancelQueryRequest: () => void;
63
+ handleDelete: (payload: {
64
+ id?: string | number;
65
+ ids?: string | Array<string | number>;
66
+ }, loadingConfig: {
67
+ source?: Record<string, unknown>;
68
+ key?: string;
69
+ }, successCb?: () => void, errorCb?: (err: unknown) => void, successMsg?: string) => Promise<void>;
70
+ margin: ComputedRef<string | undefined>;
71
+ actionBar: any;
72
+ handleDisplayQueryForm: () => void;
73
+ showModal: Ref<boolean>;
74
+ modalComponent: ShallowRef<Component | null>;
75
+ handleShowModal: () => Promise<void>;
76
+ handleCloseModal: ComputedRef<() => void>;
77
+ }
@@ -1,2 +1,48 @@
1
- export declare const getFilteredFormColumns: (list: any) => any;
2
- export declare const getFilteredAndSortedTableColumns: (list: any) => any[];
1
+ import { Configs } from './types';
2
+ export declare const getFilteredFormColumns: (list: Configs[]) => {
3
+ label: string | undefined;
4
+ prop: string | undefined;
5
+ queryLabel?: string;
6
+ queryProp?: string;
7
+ onlySearch?: boolean;
8
+ tableOrder?: number;
9
+ required?: boolean | import('../UseElForm/types').IRequired;
10
+ errorMessage?: string;
11
+ disabled?: boolean;
12
+ useDict?: boolean | string | import('../../types').UseDict;
13
+ span?: number;
14
+ labelWidth?: string;
15
+ labelPosition?: "left" | "right" | "top";
16
+ show?: boolean;
17
+ filter?: boolean;
18
+ formItemClass?: string;
19
+ slot?: string | boolean;
20
+ renderConfig?: import('../../types').RenderConfig;
21
+ inputConfig?: import('../UseElForm/types').InputConfig;
22
+ inputNumberConfig?: import('../UseElForm/types').InputNumberConfig;
23
+ selectConfig?: import('../UseElForm/types').SelectConfig;
24
+ treeSelectConfig?: import('../UseElForm/types').TreeSelectConfig;
25
+ cascaderConfig?: import('../UseElForm/types').CascaderConfig;
26
+ datePickerConfig?: import('../UseElForm/types').DatePickerConfig;
27
+ timePickerConfig?: import('../UseElForm/types').TimePickerConfig;
28
+ timeSelectConfig?: import('../UseElForm/types').TimeSelectConfig;
29
+ radioConfig?: import('../UseElForm/types').RadioConfig;
30
+ switchConfig?: import('../UseElForm/types').SwitchConfig;
31
+ inputRangeConfig?: import('../UseElForm/types').InputRangeConfig;
32
+ width?: string | number;
33
+ minWidth?: string | number;
34
+ align?: string;
35
+ fixed?: boolean | string;
36
+ sortable?: boolean;
37
+ showOverflowTooltip?: boolean;
38
+ extConfig?: {
39
+ header?: import('../UseElTable/types').Header;
40
+ edit?: import('../UseElTable/types').Edit;
41
+ formatter?: Function;
42
+ class?: string | string[];
43
+ style?: string | Record<string, unknown>;
44
+ slot?: boolean | string;
45
+ };
46
+ children?: import('../UseElTable/types').TableColumn[];
47
+ }[];
48
+ export declare const getFilteredAndSortedTableColumns: (list: Configs[]) => Configs[];
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ import { InjectedEcharts, Props } from './types';
3
+ export declare const useEcharts: (props: Props, chartRef: Ref<HTMLElement | null>, injectedEcharts: InjectedEcharts | null) => {
4
+ chartInstance: any;
5
+ initChart: () => void;
6
+ };
@@ -0,0 +1,105 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ echarts: {
3
+ type: import('vue').PropType<{
4
+ init: (...args: any[]) => any;
5
+ }>;
6
+ default: null;
7
+ };
8
+ options: {
9
+ type: import('vue').PropType<Record<string, any>>;
10
+ default: () => {};
11
+ };
12
+ width: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ height: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ theme: {
21
+ type: import('vue').PropType<string | Record<string, any>>;
22
+ default: string;
23
+ };
24
+ notMerge: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ resizeDelay: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ autoResize: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ loading: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ loadingConfig: {
41
+ type: import('vue').PropType<Record<string, any>>;
42
+ default: () => {};
43
+ };
44
+ }>, {
45
+ chartInstance: any;
46
+ initChart: () => void;
47
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
48
+ echarts: {
49
+ type: import('vue').PropType<{
50
+ init: (...args: any[]) => any;
51
+ }>;
52
+ default: null;
53
+ };
54
+ options: {
55
+ type: import('vue').PropType<Record<string, any>>;
56
+ default: () => {};
57
+ };
58
+ width: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ height: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ theme: {
67
+ type: import('vue').PropType<string | Record<string, any>>;
68
+ default: string;
69
+ };
70
+ notMerge: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ resizeDelay: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ autoResize: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ loading: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ loadingConfig: {
87
+ type: import('vue').PropType<Record<string, any>>;
88
+ default: () => {};
89
+ };
90
+ }>> & Readonly<{}>, {
91
+ width: string;
92
+ options: Record<string, any>;
93
+ height: string;
94
+ echarts: {
95
+ init: (...args: any[]) => any;
96
+ };
97
+ theme: string | Record<string, any>;
98
+ notMerge: boolean;
99
+ resizeDelay: number;
100
+ autoResize: boolean;
101
+ loading: boolean;
102
+ loadingConfig: Record<string, any>;
103
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
104
+ declare const _default: typeof __VLS_export;
105
+ export default _default;
@@ -0,0 +1,46 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: {
3
+ echarts: {
4
+ type: PropType<{
5
+ init: (...args: any[]) => any;
6
+ }>;
7
+ default: null;
8
+ };
9
+ options: {
10
+ type: PropType<Record<string, any>>;
11
+ default: () => {};
12
+ };
13
+ width: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ height: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ theme: {
22
+ type: PropType<string | Record<string, any>>;
23
+ default: string;
24
+ };
25
+ notMerge: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ resizeDelay: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ autoResize: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ loading: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ loadingConfig: {
42
+ type: PropType<Record<string, any>>;
43
+ default: () => {};
44
+ };
45
+ };
46
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { default as componentProps } from './props';
3
+ export type Props = ExtractPropTypes<typeof componentProps>;
4
+ export type InjectedEcharts = {
5
+ init: (dom: HTMLElement | null, theme?: string | object) => any;
6
+ };
@@ -1,7 +1,11 @@
1
- declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare var __VLS_10: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_10) => any;
4
+ };
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
6
  btnText: {
3
- type: StringConstructor;
4
- required: boolean;
7
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
8
+ default: string;
5
9
  };
6
10
  type: {
7
11
  type: StringConstructor;
@@ -16,8 +20,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
16
20
  click: (value?: string | number | Record<string, unknown> | undefined) => any;
17
21
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
22
  btnText: {
19
- type: StringConstructor;
20
- required: boolean;
23
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
24
+ default: string;
21
25
  };
22
26
  type: {
23
27
  type: StringConstructor;
@@ -33,6 +37,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
33
37
  }>, {
34
38
  type: string;
35
39
  extConfig: import('./types').ExtConfig;
40
+ btnText: string | number | boolean;
36
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
43
  declare const _default: typeof __VLS_export;
38
44
  export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -2,8 +2,8 @@ import { PropType } from 'vue';
2
2
  import { ExtConfig } from './types';
3
3
  declare const _default: {
4
4
  btnText: {
5
- type: StringConstructor;
6
- required: boolean;
5
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
6
+ default: string;
7
7
  };
8
8
  type: {
9
9
  type: StringConstructor;
@@ -1,9 +1,10 @@
1
1
  import { Emits, Props } from './types';
2
2
  export declare const useElCheckbox: (props: Props, emits: Emits) => {
3
- dataComputed: import('vue').ComputedRef<any>;
4
- checkedItems: import('vue').WritableComputedRef<unknown[], any>;
3
+ dataComputed: import('vue').ComputedRef<Record<string, any>[] | null>;
4
+ checkedItems: import('vue').WritableComputedRef<unknown[] | undefined, any>;
5
5
  isIndeterminate: import('vue').Ref<boolean, boolean>;
6
6
  checkAll: import('vue').Ref<boolean, boolean>;
7
+ handleModelValueChange: (e: string | number | boolean) => void;
7
8
  handleCheckAllChange: (bool: boolean) => void;
8
9
  handleCheckedItemsChange: (list: any[]) => void;
9
10
  };
@@ -1,9 +1,12 @@
1
1
  declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: {
3
- type: (ArrayConstructor | StringConstructor)[];
3
+ type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
4
4
  default: () => never[];
5
5
  };
6
- data: any;
6
+ data: {
7
+ type: import('vue').PropType<Record<string, any>[] | string[] | number[]>;
8
+ default: undefined;
9
+ };
7
10
  defaultProps: {
8
11
  type: ObjectConstructor;
9
12
  default: () => {
@@ -24,13 +27,16 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
24
27
  default: boolean;
25
28
  };
26
29
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
- "update:modelValue": (value: string | number | (string | number)[]) => any;
30
+ "update:modelValue": (value: string | number | boolean | (string | number)[]) => any;
28
31
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
32
  modelValue: {
30
- type: (ArrayConstructor | StringConstructor)[];
33
+ type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
31
34
  default: () => never[];
32
35
  };
33
- data: any;
36
+ data: {
37
+ type: import('vue').PropType<Record<string, any>[] | string[] | number[]>;
38
+ default: undefined;
39
+ };
34
40
  defaultProps: {
35
41
  type: ObjectConstructor;
36
42
  default: () => {
@@ -51,11 +57,11 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
51
57
  default: boolean;
52
58
  };
53
59
  }>> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
60
+ "onUpdate:modelValue"?: ((value: string | number | boolean | (string | number)[]) => any) | undefined;
55
61
  }>, {
56
- data: any;
57
- modelValue: string | unknown[];
62
+ data: Record<string, any>[] | string[] | number[];
58
63
  toJoin: boolean;
64
+ modelValue: string | number | boolean | unknown[];
59
65
  defaultProps: Record<string, any>;
60
66
  showCheckAll: boolean;
61
67
  vertical: boolean;
@@ -1,9 +1,13 @@
1
+ import { PropType } from 'vue';
1
2
  declare const _default: {
2
3
  modelValue: {
3
- type: (ArrayConstructor | StringConstructor)[];
4
+ type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
4
5
  default: () => never[];
5
6
  };
6
- data: any;
7
+ data: {
8
+ type: PropType<Record<string, any>[] | string[] | number[]>;
9
+ default: undefined;
10
+ };
7
11
  defaultProps: {
8
12
  type: ObjectConstructor;
9
13
  default: () => {
@@ -2,5 +2,5 @@ import { ExtractPropTypes } from 'vue';
2
2
  import { default as componentProps } from './props';
3
3
  export type Props = ExtractPropTypes<typeof componentProps>;
4
4
  export type Emits = {
5
- (e: 'update:modelValue', value: string | number | (string | number)[]): void;
5
+ (e: 'update:modelValue', value: string | number | boolean | (string | number)[]): void;
6
6
  };
@@ -81,13 +81,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
81
81
  }>, {
82
82
  useRender: boolean | import('../../types').RenderConfig;
83
83
  type: string;
84
- modelValue: string | number | unknown[];
84
+ placeholder: string;
85
+ format: string;
86
+ valueFormat: string;
85
87
  startPlaceholder: string;
86
88
  endPlaceholder: string;
87
89
  rangeSeparator: string;
88
- format: string;
89
- valueFormat: string;
90
- placeholder: string;
90
+ modelValue: string | number | unknown[];
91
91
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
92
92
  declare const _default: typeof __VLS_export;
93
93
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { default as componentProps } from './props';
3
3
  export type Props = ExtractPropTypes<typeof componentProps>;
4
- export interface Emits {
4
+ export type Emits = {
5
5
  (e: 'update:modelValue', value: string | number | any[]): void;
6
- }
6
+ };
@@ -8,6 +8,7 @@ export declare const useElDialog: ({ props, edRef }: {
8
8
  edRef: Ref<DialogInstance | null, DialogInstance | null>;
9
9
  handleClose: import('vue').ComputedRef<(() => void) | undefined>;
10
10
  isFullScreen: Ref<boolean, boolean>;
11
+ maxHeight: import('vue').ComputedRef<string | number>;
11
12
  iconComponent: import('vue').ComputedRef<string>;
12
13
  handleFullScreen: () => void;
13
14
  handleClosed: () => void;
@@ -7,6 +7,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ top: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  maxHeight: {
11
15
  type: (StringConstructor | NumberConstructor)[];
12
16
  default: string;
@@ -60,6 +64,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
60
64
  type: StringConstructor;
61
65
  default: string;
62
66
  };
67
+ confirmLoading: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
63
71
  cancelBtnType: {
64
72
  type: StringConstructor;
65
73
  default: string;
@@ -85,6 +93,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
85
93
  type: BooleanConstructor;
86
94
  default: boolean;
87
95
  };
96
+ top: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
88
100
  maxHeight: {
89
101
  type: (StringConstructor | NumberConstructor)[];
90
102
  default: string;
@@ -138,6 +150,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
138
150
  type: StringConstructor;
139
151
  default: string;
140
152
  };
153
+ confirmLoading: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
141
157
  cancelBtnType: {
142
158
  type: StringConstructor;
143
159
  default: string;
@@ -152,6 +168,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
152
168
  default: () => void;
153
169
  };
154
170
  }>> & Readonly<{}>, {
171
+ top: string;
172
+ onClose: Function;
155
173
  title: string;
156
174
  appendToBody: boolean;
157
175
  maxHeight: string | number;
@@ -164,9 +182,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
164
182
  showFooterTopBorder: boolean;
165
183
  footerPosition: string;
166
184
  strictCloseEvent: boolean;
167
- onClose: Function;
168
185
  confirmBtnText: string;
169
186
  cancelBtnText: string;
187
+ confirmLoading: boolean;
170
188
  cancelBtnType: string;
171
189
  onConfirm: Function;
172
190
  onCancel: Function;
@@ -7,6 +7,10 @@ declare const _default: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ top: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  maxHeight: {
11
15
  type: (StringConstructor | NumberConstructor)[];
12
16
  default: string;
@@ -60,6 +64,10 @@ declare const _default: {
60
64
  type: StringConstructor;
61
65
  default: string;
62
66
  };
67
+ confirmLoading: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
63
71
  cancelBtnType: {
64
72
  type: StringConstructor;
65
73
  default: string;
@@ -48,6 +48,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
48
48
  type: StringConstructor;
49
49
  default: string;
50
50
  };
51
+ confirmLoading: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
51
55
  cancelBtnType: {
52
56
  type: StringConstructor;
53
57
  default: string;
@@ -114,6 +118,10 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
114
118
  type: StringConstructor;
115
119
  default: string;
116
120
  };
121
+ confirmLoading: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
117
125
  cancelBtnType: {
118
126
  type: StringConstructor;
119
127
  default: string;
@@ -129,6 +137,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
129
137
  };
130
138
  }>> & Readonly<{}>, {
131
139
  size: string | number;
140
+ onClose: Function;
132
141
  title: string;
133
142
  appendToBody: boolean;
134
143
  closeOnClickModal: boolean;
@@ -137,9 +146,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
137
146
  showFooter: boolean;
138
147
  footerPosition: string;
139
148
  strictCloseEvent: boolean;
140
- onClose: Function;
141
149
  confirmBtnText: string;
142
150
  cancelBtnText: string;
151
+ confirmLoading: boolean;
143
152
  cancelBtnType: string;
144
153
  onConfirm: Function;
145
154
  onCancel: Function;
@@ -48,6 +48,10 @@ declare const _default: {
48
48
  type: StringConstructor;
49
49
  default: string;
50
50
  };
51
+ confirmLoading: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
51
55
  cancelBtnType: {
52
56
  type: StringConstructor;
53
57
  default: string;