@wyfex/ivue 0.20.0 → 0.21.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.
Files changed (48) hide show
  1. package/README.md +1 -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/hook.d.ts +2 -3
  6. package/dist/types/UseCrud/types.d.ts +0 -1
  7. package/dist/types/UseEcharts/hook.d.ts +6 -0
  8. package/dist/types/UseEcharts/index.vue.d.ts +105 -0
  9. package/dist/types/UseEcharts/props.d.ts +46 -0
  10. package/dist/types/UseEcharts/types.d.ts +6 -0
  11. package/dist/types/UseElButton/index.vue.d.ts +16 -5
  12. package/dist/types/UseElButton/props.d.ts +2 -2
  13. package/dist/types/UseElCheckbox/hook.d.ts +3 -2
  14. package/dist/types/UseElCheckbox/index.vue.d.ts +14 -8
  15. package/dist/types/UseElCheckbox/props.d.ts +6 -2
  16. package/dist/types/UseElCheckbox/types.d.ts +1 -1
  17. package/dist/types/UseElDescriptions/hook.d.ts +2 -6
  18. package/dist/types/UseElDescriptions/types.d.ts +2 -2
  19. package/dist/types/UseElForm/components/QueryForm.vue.d.ts +2 -6
  20. package/dist/types/UseElForm/components/RowForm.vue.d.ts +2 -6
  21. package/dist/types/UseElForm/hooks/useElForm.d.ts +2 -6
  22. package/dist/types/UseElForm/index.vue.d.ts +20 -16
  23. package/dist/types/UseElForm/types.d.ts +6 -0
  24. package/dist/types/UseElInput/types.d.ts +2 -2
  25. package/dist/types/UseElSelect/types.d.ts +2 -2
  26. package/dist/types/UseElTable/hooks/useElTable.d.ts +2 -3
  27. package/dist/types/UseElUpload/types.d.ts +2 -2
  28. package/dist/types/index.d.ts +1 -0
  29. package/package.json +11 -11
  30. package/src/components/UseCrud/types.ts +1 -3
  31. package/src/components/UseEcharts/props.ts +77 -0
  32. package/src/components/UseEcharts/types.ts +14 -0
  33. package/src/components/UseElButton/props.ts +3 -3
  34. package/src/components/UseElCheckbox/props.ts +7 -5
  35. package/src/components/UseElCheckbox/types.ts +4 -1
  36. package/src/components/UseElDescriptions/props.ts +1 -1
  37. package/src/components/UseElDescriptions/types.ts +2 -2
  38. package/src/components/UseElDialog/props.ts +1 -1
  39. package/src/components/UseElDrawer/props.ts +1 -1
  40. package/src/components/UseElForm/props.ts +1 -1
  41. package/src/components/UseElForm/types.ts +48 -114
  42. package/src/components/UseElInput/types.ts +3 -5
  43. package/src/components/UseElSelect/types.ts +4 -8
  44. package/src/components/UseElTable/props.ts +1 -1
  45. package/src/components/UseElUpload/types.ts +2 -2
  46. package/src/components/UseLineTitle/defaultExtConfig.ts +4 -16
  47. package/src/components/UseLineTitle/types.ts +2 -0
  48. package/src/types/index.ts +38 -115
@@ -1,11 +1,10 @@
1
1
  import { ComputedRef, Slots } from 'vue';
2
- import { Emits, Props, UseCrudReturn } from './types';
2
+ import { Props, UseCrudReturn } from './types';
3
3
  import { GlobalConfig } from '../../types';
4
- export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef, emits }: {
4
+ export declare const useCrud: ({ mergedProps, globalConfig, slots, uefRef, modalRef }: {
5
5
  mergedProps: ComputedRef<Props>;
6
6
  globalConfig: ComputedRef<GlobalConfig>;
7
7
  slots: Slots;
8
8
  uefRef: any;
9
9
  modalRef: any;
10
- emits: Emits;
11
10
  }) => UseCrudReturn;
@@ -44,7 +44,6 @@ export interface UseCrudState {
44
44
  formColumns: FormColumn[];
45
45
  tableColumns: TableColumn[];
46
46
  formModel: Record<string, any>;
47
- formParams: Record<string, any>;
48
47
  tableLoading: boolean;
49
48
  tableData: any[];
50
49
  currentPage: number;
@@ -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;
62
+ data: Record<string, any>[] | string[] | number[];
57
63
  toJoin: boolean;
58
- modelValue: string | unknown[];
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
  };
@@ -1,11 +1,7 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { ConfigColumn, Emits, Props } from './types';
2
+ import { ConfigColumn, Props } from './types';
3
3
  import { GlobalConfig, RenderConfig } from '../../types';
4
- export declare const useElDescriptions: ({ props, emits, globalConfig }: {
5
- props: Props;
6
- emits: Emits;
7
- globalConfig: ComputedRef<GlobalConfig>;
8
- }) => {
4
+ export declare const useElDescriptions: (props: Props, globalConfig: ComputedRef<GlobalConfig>) => {
9
5
  processRenderContent: (item: ConfigColumn) => any;
10
6
  processRenderStyle: (renderConfig: RenderConfig | boolean, item: ConfigColumn) => any;
11
7
  processPlaceholder: (item: ConfigColumn) => string;
@@ -2,9 +2,9 @@ import { Component, ExtractPropTypes } from 'vue';
2
2
  import { EditAttrs, RenderConfig, UseDict } from '../../types';
3
3
  import { default as componentProps } from './props';
4
4
  export type Props = ExtractPropTypes<typeof componentProps>;
5
- export interface Emits {
5
+ export type Emits = {
6
6
  (e: 'onDictKeys', value?: string[]): void;
7
- }
7
+ };
8
8
  export interface ComponentConfig {
9
9
  is: Component;
10
10
  attrs?: EditAttrs;
@@ -56,9 +56,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
56
56
  }>, {
57
57
  showQueryForm: import('vue').Ref<boolean, boolean>;
58
58
  handleDisplayQueryForm: () => void;
59
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
60
- onDictKeys: (value?: string[] | undefined) => any;
61
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
62
60
  formColumns: {
63
61
  type: import('vue').PropType<import('../types').FormColumn[]>;
64
62
  required: boolean;
@@ -113,9 +111,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
113
111
  type: import('vue').PropType<import('../types').QueryConfig>;
114
112
  default: () => {};
115
113
  };
116
- }>> & Readonly<{
117
- onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
118
- }>, {
114
+ }>> & Readonly<{}>, {
119
115
  useRender: boolean | import('../../../types').RenderConfig;
120
116
  dictMap: import('../../../types').DictMap;
121
117
  dictProps: import('../../../types').DictProps;
@@ -55,9 +55,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
55
55
  };
56
56
  }>, {
57
57
  efRef: import('vue').Ref<null, null>;
58
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
59
- onDictKeys: (value?: string[] | undefined) => any;
60
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
58
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
61
59
  formColumns: {
62
60
  type: import('vue').PropType<import('../types').FormColumn[]>;
63
61
  required: boolean;
@@ -112,9 +110,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
112
110
  type: import('vue').PropType<import('../types').QueryConfig>;
113
111
  default: () => {};
114
112
  };
115
- }>> & Readonly<{
116
- onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
117
- }>, {
113
+ }>> & Readonly<{}>, {
118
114
  useRender: boolean | import('../../../types').RenderConfig;
119
115
  dictMap: import('../../../types').DictMap;
120
116
  dictProps: import('../../../types').DictProps;
@@ -1,11 +1,7 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { Emits, FormColumn, Props } from '../types';
2
+ import { FormColumn, Props } from '../types';
3
3
  import { GlobalConfig } from '../../../types';
4
- export declare const useElForm: ({ props, emits, globalConfig }: {
5
- props: Props;
6
- emits: Emits;
7
- globalConfig: ComputedRef<GlobalConfig>;
8
- }) => {
4
+ export declare const useElForm: (props: Props, globalConfig: ComputedRef<GlobalConfig>) => {
9
5
  formColumnsComputed: ComputedRef<FormColumn[]>;
10
6
  formRules: ComputedRef<Record<string, any>>;
11
7
  resolveQueryParams: (formColumns: FormColumn[], formModel: Record<string, any>) => Record<string, any>;
@@ -1,6 +1,6 @@
1
1
  declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  formColumns: {
3
- type: import('vue').PropType<import('./types').FormColumn[]>;
3
+ type: import('vue').PropType<import('./types.ts').FormColumn[]>;
4
4
  required: boolean;
5
5
  };
6
6
  formModel: {
@@ -8,15 +8,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
8
8
  required: boolean;
9
9
  };
10
10
  useRender: {
11
- type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
11
+ type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
12
12
  default: boolean;
13
13
  };
14
14
  dictMap: {
15
- type: import('vue').PropType<import('../../types').DictMap>;
15
+ type: import('vue').PropType<import('../../types/index.ts').DictMap>;
16
16
  default: () => {};
17
17
  };
18
18
  dictProps: {
19
- type: import('vue').PropType<import('../../types').DictProps>;
19
+ type: import('vue').PropType<import('../../types/index.ts').DictProps>;
20
20
  default: () => {};
21
21
  };
22
22
  formItemWidth: {
@@ -50,7 +50,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
50
50
  default: boolean;
51
51
  };
52
52
  queryConfig: {
53
- type: import('vue').PropType<import('./types').QueryConfig>;
53
+ type: import('vue').PropType<import('./types.ts').QueryConfig>;
54
54
  default: () => {};
55
55
  };
56
56
  }>, {
@@ -61,9 +61,11 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
61
61
  handleDisplayQueryForm: import('vue').ComputedRef<Function | undefined>;
62
62
  processApiData: (apiData: Record<string, any>) => Record<string, any>;
63
63
  getProcessedFormModel: () => Record<string, any>;
64
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
65
+ onDictKeys: (value?: string[] | undefined) => any;
66
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
65
67
  formColumns: {
66
- type: import('vue').PropType<import('./types').FormColumn[]>;
68
+ type: import('vue').PropType<import('./types.ts').FormColumn[]>;
67
69
  required: boolean;
68
70
  };
69
71
  formModel: {
@@ -71,15 +73,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
71
73
  required: boolean;
72
74
  };
73
75
  useRender: {
74
- type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
76
+ type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
75
77
  default: boolean;
76
78
  };
77
79
  dictMap: {
78
- type: import('vue').PropType<import('../../types').DictMap>;
80
+ type: import('vue').PropType<import('../../types/index.ts').DictMap>;
79
81
  default: () => {};
80
82
  };
81
83
  dictProps: {
82
- type: import('vue').PropType<import('../../types').DictProps>;
84
+ type: import('vue').PropType<import('../../types/index.ts').DictProps>;
83
85
  default: () => {};
84
86
  };
85
87
  formItemWidth: {
@@ -113,13 +115,15 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
113
115
  default: boolean;
114
116
  };
115
117
  queryConfig: {
116
- type: import('vue').PropType<import('./types').QueryConfig>;
118
+ type: import('vue').PropType<import('./types.ts').QueryConfig>;
117
119
  default: () => {};
118
120
  };
119
- }>> & Readonly<{}>, {
120
- useRender: boolean | import('../../types').RenderConfig;
121
- dictMap: import('../../types').DictMap;
122
- dictProps: import('../../types').DictProps;
121
+ }>> & Readonly<{
122
+ onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
123
+ }>, {
124
+ useRender: boolean | import('../../types/index.ts').RenderConfig;
125
+ dictMap: import('../../types/index.ts').DictMap;
126
+ dictProps: import('../../types/index.ts').DictProps;
123
127
  formItemWidth: string;
124
128
  labelSuffix: string;
125
129
  labelWidth: string;
@@ -127,7 +131,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
127
131
  rowGutter: number;
128
132
  colSpan: number;
129
133
  disabled: boolean;
130
- queryConfig: import('./types').QueryConfig;
134
+ queryConfig: import('./types.ts').QueryConfig;
131
135
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
132
136
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
133
137
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,5 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
+ import { FormInstance } from 'element-plus';
2
3
  import { default as componentProps } from './props';
3
4
  import { RenderConfig, UseDict } from '../../types';
4
5
  export type Props = ExtractPropTypes<typeof componentProps>;
@@ -191,3 +192,8 @@ export interface FormColumn {
191
192
  switchConfig?: SwitchConfig;
192
193
  inputRangeConfig?: InputRangeConfig;
193
194
  }
195
+ export interface FormComponentInstance {
196
+ efRef: FormInstance;
197
+ showQueryForm: boolean;
198
+ handleDisplayQueryForm: Function;
199
+ }
@@ -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): void;
6
- }
6
+ };
@@ -1,7 +1,7 @@
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 | (string | number)[]): void;
6
6
  (e: 'update:label', label: string | string[]): void;
7
- }
7
+ };
@@ -1,9 +1,8 @@
1
1
  import { Attrs, ComputedRef } from 'vue';
2
- import { Emits, Props, TableColumn } from '../types';
2
+ import { Props, TableColumn } from '../types';
3
3
  import { GlobalConfig } from '../../../types';
4
- export declare const useElTable: ({ mergedProps, emits, attrs, globalConfig }: {
4
+ export declare const useElTable: ({ mergedProps, attrs, globalConfig }: {
5
5
  mergedProps: ComputedRef<Props>;
6
- emits: Emits;
7
6
  attrs: Attrs;
8
7
  globalConfig: ComputedRef<GlobalConfig>;
9
8
  }) => {
@@ -1,9 +1,9 @@
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
  'update:fileId': [value: string | number];
6
6
  'update:linkUrl': [url: string];
7
7
  onFileObj: [file: Record<string, any>];
8
8
  onError: [error: Error | string];
9
- }
9
+ };
@@ -1,4 +1,5 @@
1
1
  export { default as UseCrud } from './UseCrud/index.vue';
2
+ export { default as UseEcharts } from './UseEcharts/index.vue';
2
3
  export { default as UseElButton } from './UseElButton/index.vue';
3
4
  export { default as UseElCheckbox } from './UseElCheckbox/index.vue';
4
5
  export { default as UseElConfigProvider } from './UseElConfigProvider/index.vue';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wyfex/ivue",
3
- "version": "0.20.0",
4
- "description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的高性能组件库",
3
+ "version": "0.21.1",
4
+ "description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的以配置驱动视图组件库",
5
5
  "homepage": "https://wyfex.top/idocs/ivue",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.cjs",
@@ -50,20 +50,20 @@
50
50
  "vue": ">=3.2.0 <4.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^26.1.2",
53
+ "@types/node": "^26.4.0",
54
54
  "@vitejs/plugin-vue": "^6.0.8",
55
55
  "@vue/tsconfig": "^0.9.1",
56
- "@wyfex/iutils": "^0.55.0",
57
- "dayjs": "^1.11.21",
58
- "element-plus": "^2.14.3",
59
- "sass-embedded": "^1.100.0",
56
+ "@wyfex/iutils": "^0.80.0",
57
+ "dayjs": "^1.11.23",
58
+ "element-plus": "^2.14.5",
59
+ "sass-embedded": "^1.103.1",
60
60
  "typescript": "~6.0.3",
61
61
  "unplugin-auto-import": "^21.1.0",
62
62
  "unplugin-dts": "^1.0.3",
63
63
  "unplugin-vue-components": "^32.1.0",
64
- "vite": "^8.2.1",
65
- "vite-svg-loader": "^5.1.1",
66
- "vue": "^3.5.41",
67
- "vue-tsc": "^3.3.9"
64
+ "vite": "^8.2.2",
65
+ "vite-svg-loader": "^5.1.2",
66
+ "vue": "^3.5.42",
67
+ "vue-tsc": "^3.3.11"
68
68
  }
69
69
  }
@@ -114,10 +114,8 @@ export interface UseCrudState {
114
114
  formColumns: FormColumn[]
115
115
  /** 表格列配置 */
116
116
  tableColumns: TableColumn[]
117
- /** 表单模型 查询表单的原始数据模型 */
117
+ /** 表单模型 */
118
118
  formModel: Record<string, any>
119
- /** 表单参数 查询表单提交接口的数据参数 */
120
- formParams: Record<string, any>
121
119
  /** 表格loading */
122
120
  tableLoading: boolean
123
121
  /** 表格数据 */