@wyfex/ivue 0.11.0 → 0.13.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 (39) hide show
  1. package/dist/index.es.js +23 -11
  2. package/dist/index.umd.cjs +23 -11
  3. package/dist/ivue.css +1 -1
  4. package/dist/types/UseElButton/hook.d.ts +3 -7
  5. package/dist/types/UseElButton/index.vue.d.ts +2 -2
  6. package/dist/types/UseElButton/types.d.ts +1 -1
  7. package/dist/types/UseElForm/components/QueryForm.vue.d.ts +134 -0
  8. package/dist/types/UseElForm/components/RowForm.vue.d.ts +140 -0
  9. package/dist/types/UseElForm/components/controls/Cascader.vue.d.ts +14 -0
  10. package/dist/types/UseElForm/components/controls/DatePicker.vue.d.ts +15 -0
  11. package/dist/types/UseElForm/components/controls/Input.vue.d.ts +11 -0
  12. package/dist/types/UseElForm/components/controls/InputNumber.vue.d.ts +10 -0
  13. package/dist/types/UseElForm/components/controls/InputRange.vue.d.ts +11 -0
  14. package/dist/types/UseElForm/components/controls/Radio.vue.d.ts +11 -0
  15. package/dist/types/UseElForm/components/controls/Select.vue.d.ts +18 -0
  16. package/dist/types/UseElForm/components/controls/Switch.vue.d.ts +8 -0
  17. package/dist/types/UseElForm/components/controls/TimePicker.vue.d.ts +10 -0
  18. package/dist/types/UseElForm/components/controls/TimeSelect.vue.d.ts +10 -0
  19. package/dist/types/UseElForm/components/controls/TreeSelect.vue.d.ts +12 -0
  20. package/dist/types/UseElForm/components/useQueryColSpan.d.ts +6 -0
  21. package/dist/types/UseElForm/hook.d.ts +14 -0
  22. package/dist/types/UseElForm/index.vue.d.ts +139 -0
  23. package/dist/types/UseElForm/props.d.ts +60 -0
  24. package/dist/types/UseElForm/types.d.ts +194 -0
  25. package/dist/types/UseElSwitch/index.vue.d.ts +51 -0
  26. package/dist/types/UseElSwitch/props.d.ts +23 -0
  27. package/dist/types/UseElTable/hooks/useElTable.d.ts +3 -8
  28. package/dist/types/UseElTable/hooks/useTableColumnMinWidth.d.ts +5 -0
  29. package/dist/types/UseElTable/hooks/useTableHeightAdaptive.d.ts +4 -0
  30. package/dist/types/UseElTable/utils.d.ts +1 -3
  31. package/dist/types/index.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/src/components/UseElButton/types.ts +4 -4
  34. package/src/components/UseElDialog/props.ts +2 -2
  35. package/src/components/UseElForm/props.ts +102 -0
  36. package/src/components/UseElForm/types.ts +371 -0
  37. package/src/components/UseElSwitch/props.ts +40 -0
  38. package/src/components/UseElTable/props.ts +2 -0
  39. package/src/types/index.ts +1 -1
@@ -1,10 +1,6 @@
1
- import { ComputedRef, Attrs } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  import { Emits, Props } from './types';
3
- export declare const useElButton: ({ mergedProps, emits, attrs }: {
4
- mergedProps: ComputedRef<Props>;
5
- emits: Emits;
6
- attrs: Attrs;
7
- }) => {
3
+ export declare const useElButton: (mergedProps: ComputedRef<Props>, emits: Emits) => {
8
4
  isConfirm: ComputedRef<boolean>;
9
- handleElButton: () => void;
5
+ handleElButtonClick: (event: Event) => void;
10
6
  };
@@ -13,7 +13,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
13
13
  default: () => {};
14
14
  };
15
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
- debClick: (value?: string | number | Record<string, unknown> | undefined) => any;
16
+ click: (value?: string | number | Record<string, unknown> | undefined) => any;
17
17
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
18
  btnText: {
19
19
  type: StringConstructor;
@@ -29,7 +29,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
29
29
  default: () => {};
30
30
  };
31
31
  }>> & Readonly<{
32
- onDebClick?: ((value?: string | number | Record<string, unknown> | undefined) => any) | undefined;
32
+ onClick?: ((value?: string | number | Record<string, unknown> | undefined) => any) | undefined;
33
33
  }>, {
34
34
  type: string;
35
35
  extConfig: import('./types').ExtConfig;
@@ -2,7 +2,7 @@ import { ExtractPropTypes } from 'vue';
2
2
  import { default as componentProps } from './props';
3
3
  export type Props = ExtractPropTypes<typeof componentProps>;
4
4
  export interface Emits {
5
- (e: 'debClick', value?: string | number | Record<string, unknown>): void;
5
+ (e: 'click', value?: string | number | Record<string, unknown>): void;
6
6
  }
7
7
  export interface ExtConfig {
8
8
  debounce?: {
@@ -0,0 +1,134 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ formColumns: {
3
+ type: import('vue').PropType<import('../types').FormColumn[]>;
4
+ required: boolean;
5
+ };
6
+ formModel: {
7
+ type: import('vue').PropType<Record<string, any>>;
8
+ required: boolean;
9
+ };
10
+ useRender: {
11
+ type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
12
+ default: boolean;
13
+ };
14
+ dictMap: {
15
+ type: import('vue').PropType<import('../../../types').DictMap>;
16
+ default: () => {};
17
+ };
18
+ dictProps: {
19
+ type: import('vue').PropType<import('../../../types').DictProps>;
20
+ default: () => {};
21
+ };
22
+ formItemWidth: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ labelSuffix: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ labelWidth: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ labelPosition: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (val: string) => boolean;
38
+ };
39
+ rowGutter: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ colSpan: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ validator: (val: number) => boolean;
47
+ };
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ queryConfig: {
53
+ type: import('vue').PropType<import('../types').QueryConfig>;
54
+ default: () => {};
55
+ };
56
+ }>, {
57
+ showQueryForm: import('vue').Ref<boolean, boolean>;
58
+ handleDisplayQueryForm: () => Promise<void>;
59
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
60
+ onDictKeys: (value?: string[] | undefined) => any;
61
+ "update:formModel": (value: Record<string, any>) => any;
62
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
63
+ formColumns: {
64
+ type: import('vue').PropType<import('../types').FormColumn[]>;
65
+ required: boolean;
66
+ };
67
+ formModel: {
68
+ type: import('vue').PropType<Record<string, any>>;
69
+ required: boolean;
70
+ };
71
+ useRender: {
72
+ type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
73
+ default: boolean;
74
+ };
75
+ dictMap: {
76
+ type: import('vue').PropType<import('../../../types').DictMap>;
77
+ default: () => {};
78
+ };
79
+ dictProps: {
80
+ type: import('vue').PropType<import('../../../types').DictProps>;
81
+ default: () => {};
82
+ };
83
+ formItemWidth: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ labelSuffix: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ labelWidth: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ labelPosition: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ validator: (val: string) => boolean;
99
+ };
100
+ rowGutter: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ colSpan: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ validator: (val: number) => boolean;
108
+ };
109
+ disabled: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ queryConfig: {
114
+ type: import('vue').PropType<import('../types').QueryConfig>;
115
+ default: () => {};
116
+ };
117
+ }>> & Readonly<{
118
+ onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
119
+ "onUpdate:formModel"?: ((value: Record<string, any>) => any) | undefined;
120
+ }>, {
121
+ dictMap: import('../../../types').DictMap;
122
+ useRender: boolean | import('../../../types').RenderConfig;
123
+ dictProps: import('../../../types').DictProps;
124
+ labelWidth: string;
125
+ formItemWidth: string;
126
+ labelSuffix: string;
127
+ labelPosition: string;
128
+ rowGutter: number;
129
+ colSpan: number;
130
+ disabled: boolean;
131
+ queryConfig: import('../types').QueryConfig;
132
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
133
+ declare const _default: typeof __VLS_export;
134
+ export default _default;
@@ -0,0 +1,140 @@
1
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ formColumns: {
3
+ type: import('vue').PropType<import('../types.js').FormColumn[]>;
4
+ required: boolean;
5
+ };
6
+ formModel: {
7
+ type: import('vue').PropType<Record<string, any>>;
8
+ required: boolean;
9
+ };
10
+ useRender: {
11
+ type: import('vue').PropType<boolean | import('../../../types/index.js').RenderConfig>;
12
+ default: boolean;
13
+ };
14
+ dictMap: {
15
+ type: import('vue').PropType<import('../../../types/index.js').DictMap>;
16
+ default: () => {};
17
+ };
18
+ dictProps: {
19
+ type: import('vue').PropType<import('../../../types/index.js').DictProps>;
20
+ default: () => {};
21
+ };
22
+ formItemWidth: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ labelSuffix: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ labelWidth: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ labelPosition: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (val: string) => boolean;
38
+ };
39
+ rowGutter: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ colSpan: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ validator: (val: number) => boolean;
47
+ };
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ queryConfig: {
53
+ type: import('vue').PropType<import('../types.js').QueryConfig>;
54
+ default: () => {};
55
+ };
56
+ }>, {
57
+ efRef: import('vue').Ref<null, null>;
58
+ cascaderRef: import('vue').Ref<null, null>;
59
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
60
+ onDictKeys: (value?: string[] | undefined) => any;
61
+ "update:formModel": (value: Record<string, any>) => any;
62
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
63
+ formColumns: {
64
+ type: import('vue').PropType<import('../types.js').FormColumn[]>;
65
+ required: boolean;
66
+ };
67
+ formModel: {
68
+ type: import('vue').PropType<Record<string, any>>;
69
+ required: boolean;
70
+ };
71
+ useRender: {
72
+ type: import('vue').PropType<boolean | import('../../../types/index.js').RenderConfig>;
73
+ default: boolean;
74
+ };
75
+ dictMap: {
76
+ type: import('vue').PropType<import('../../../types/index.js').DictMap>;
77
+ default: () => {};
78
+ };
79
+ dictProps: {
80
+ type: import('vue').PropType<import('../../../types/index.js').DictProps>;
81
+ default: () => {};
82
+ };
83
+ formItemWidth: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ labelSuffix: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ labelWidth: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ labelPosition: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ validator: (val: string) => boolean;
99
+ };
100
+ rowGutter: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ colSpan: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ validator: (val: number) => boolean;
108
+ };
109
+ disabled: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ queryConfig: {
114
+ type: import('vue').PropType<import('../types.js').QueryConfig>;
115
+ default: () => {};
116
+ };
117
+ }>> & Readonly<{
118
+ onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
119
+ "onUpdate:formModel"?: ((value: Record<string, any>) => any) | undefined;
120
+ }>, {
121
+ dictMap: import('../../../types/index.js').DictMap;
122
+ useRender: boolean | import('../../../types/index.js').RenderConfig;
123
+ dictProps: import('../../../types/index.js').DictProps;
124
+ labelWidth: string;
125
+ formItemWidth: string;
126
+ labelSuffix: string;
127
+ labelPosition: string;
128
+ rowGutter: number;
129
+ colSpan: number;
130
+ disabled: boolean;
131
+ queryConfig: import('../types.js').QueryConfig;
132
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
133
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
134
+ declare const _default: typeof __VLS_export;
135
+ export default _default;
136
+ type __VLS_WithSlots<T, S> = T & {
137
+ new (): {
138
+ $slots: S;
139
+ };
140
+ };
@@ -0,0 +1,14 @@
1
+ import { FormColumn } from '../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ dictMap: DictMap;
8
+ formItemWidth: string;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
11
+ cascaderRef: import('vue').Ref<null, null>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ modelValue: string | string[] | undefined;
5
+ item: FormColumn;
6
+ formModel: Record<string, any>;
7
+ globalConfig: GlobalConfig;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "update:modelValue": (value: string | string[]) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ formItemWidth: string;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ formItemWidth: string;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FormColumn } from '../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ dictMap: DictMap;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { FormColumn } from '../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ modelValue: string | number | boolean | string[] | number[];
5
+ item: FormColumn;
6
+ globalConfig: GlobalConfig;
7
+ dictMap: DictMap;
8
+ formItemWidth: string;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ "update:modelValue": (value: string | number | boolean | string[] | number[]) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: string | number | boolean | string[] | number[]) => any) | undefined;
14
+ }>, {
15
+ modelValue: string | number | boolean | string[] | number[];
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { FormColumn } from '../../types';
2
+ type __VLS_Props = {
3
+ item: FormColumn;
4
+ formModel: Record<string, any>;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FormColumn } from '../../types';
2
+ import { GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { FormColumn } from '../../types';
2
+ import { DictMap, GlobalConfig } from '../../../../../types';
3
+ type __VLS_Props = {
4
+ item: FormColumn;
5
+ formModel: Record<string, any>;
6
+ globalConfig: GlobalConfig;
7
+ dictMap: DictMap;
8
+ formItemWidth: string;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { FormColumn, Props } from '../types';
3
+ export declare const useQueryColSpan: (props: Props, formColumnsComputed: ComputedRef<FormColumn[]>) => {
4
+ queryColSpanComputed: ComputedRef<0 | 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24>;
5
+ btnColSpanComputed: ComputedRef<number>;
6
+ };
@@ -0,0 +1,14 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { Emits, FormColumn, Props } from './types';
3
+ import { GlobalConfig } from '../../../types';
4
+ export declare const useElForm: ({ props, emits, globalConfig }: {
5
+ props: Props;
6
+ emits: Emits;
7
+ globalConfig: ComputedRef<GlobalConfig>;
8
+ }) => {
9
+ formColumnsComputed: ComputedRef<FormColumn[]>;
10
+ formRules: ComputedRef<Record<string, any>>;
11
+ resolveQueryParams: (formColumns: FormColumn[], formModel: Record<string, any>) => Record<string, any>;
12
+ processRenderContent: ComputedRef<(item: FormColumn) => any>;
13
+ getFormComponent: ComputedRef<(item: FormColumn, componentMap: Record<string, any>) => any>;
14
+ };
@@ -0,0 +1,139 @@
1
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ formColumns: {
3
+ type: import('vue').PropType<import('./types').FormColumn[]>;
4
+ required: boolean;
5
+ };
6
+ formModel: {
7
+ type: import('vue').PropType<Record<string, any>>;
8
+ required: boolean;
9
+ };
10
+ useRender: {
11
+ type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
12
+ default: boolean;
13
+ };
14
+ dictMap: {
15
+ type: import('vue').PropType<import('../../types').DictMap>;
16
+ default: () => {};
17
+ };
18
+ dictProps: {
19
+ type: import('vue').PropType<import('../../types').DictProps>;
20
+ default: () => {};
21
+ };
22
+ formItemWidth: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ labelSuffix: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ labelWidth: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ labelPosition: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (val: string) => boolean;
38
+ };
39
+ rowGutter: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ colSpan: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ validator: (val: number) => boolean;
47
+ };
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ queryConfig: {
53
+ type: import('vue').PropType<import('./types').QueryConfig>;
54
+ default: () => {};
55
+ };
56
+ }>, {
57
+ validate: import('vue').ComputedRef<((callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult) | undefined>;
58
+ resetFields: import('vue').ComputedRef<((props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void) | undefined>;
59
+ clearValidate: import('vue').ComputedRef<((props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void) | undefined>;
60
+ showQueryForm: import('vue').ComputedRef<boolean | undefined>;
61
+ handleDisplayQueryForm: import('vue').ComputedRef<Function | undefined>;
62
+ processApiData: (apiData: Record<string, any>) => Record<string, any>;
63
+ getProcessedFormModel: () => Record<string, any>;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
65
+ formColumns: {
66
+ type: import('vue').PropType<import('./types').FormColumn[]>;
67
+ required: boolean;
68
+ };
69
+ formModel: {
70
+ type: import('vue').PropType<Record<string, any>>;
71
+ required: boolean;
72
+ };
73
+ useRender: {
74
+ type: import('vue').PropType<boolean | import('../../types').RenderConfig>;
75
+ default: boolean;
76
+ };
77
+ dictMap: {
78
+ type: import('vue').PropType<import('../../types').DictMap>;
79
+ default: () => {};
80
+ };
81
+ dictProps: {
82
+ type: import('vue').PropType<import('../../types').DictProps>;
83
+ default: () => {};
84
+ };
85
+ formItemWidth: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ labelSuffix: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ labelWidth: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ labelPosition: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ validator: (val: string) => boolean;
101
+ };
102
+ rowGutter: {
103
+ type: NumberConstructor;
104
+ default: number;
105
+ };
106
+ colSpan: {
107
+ type: NumberConstructor;
108
+ default: number;
109
+ validator: (val: number) => boolean;
110
+ };
111
+ disabled: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ queryConfig: {
116
+ type: import('vue').PropType<import('./types').QueryConfig>;
117
+ default: () => {};
118
+ };
119
+ }>> & Readonly<{}>, {
120
+ dictMap: import('../../types').DictMap;
121
+ useRender: boolean | import('../../types').RenderConfig;
122
+ dictProps: import('../../types').DictProps;
123
+ labelWidth: string;
124
+ formItemWidth: string;
125
+ labelSuffix: string;
126
+ labelPosition: string;
127
+ rowGutter: number;
128
+ colSpan: number;
129
+ disabled: boolean;
130
+ queryConfig: import('./types').QueryConfig;
131
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
132
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
133
+ declare const _default: typeof __VLS_export;
134
+ export default _default;
135
+ type __VLS_WithSlots<T, S> = T & {
136
+ new (): {
137
+ $slots: S;
138
+ };
139
+ };