yxuse 3.0.103 → 3.0.104

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 (55) hide show
  1. package/README.md +89 -89
  2. package/lib/index.cjs5.js +1 -1
  3. package/lib/index.cjs5.js.gz +0 -0
  4. package/lib/index.cjs6.js +1 -1
  5. package/lib/index.es11.js.gz +0 -0
  6. package/lib/index.es2.js.gz +0 -0
  7. package/lib/index.es5.js +72 -24
  8. package/lib/index.es5.js.gz +0 -0
  9. package/lib/index.es6.js +3 -3
  10. package/lib/index.es6.js.gz +0 -0
  11. package/lib/vendor-axios.cjs.js.gz +0 -0
  12. package/lib/vendor-axios.es.js.gz +0 -0
  13. package/lib/vendor-dayjs.es.js.gz +0 -0
  14. package/lib/vendor-localforage.cjs.js.gz +0 -0
  15. package/lib/vendor-localforage.es.js.gz +0 -0
  16. package/lib/vendor-lodash.cjs.js.gz +0 -0
  17. package/lib/vendor-lodash.es.js.gz +0 -0
  18. package/lib/vendor-mqtt.cjs.js.gz +0 -0
  19. package/lib/vendor-mqtt.es.js.gz +0 -0
  20. package/lib/vendor-sortablejs.cjs.js.gz +0 -0
  21. package/lib/vendor-sortablejs.es.js.gz +0 -0
  22. package/lib/version.json +12 -12
  23. package/lib/yxuse.css +1 -1
  24. package/lib/yxuse.css.gz +0 -0
  25. package/package.json +178 -178
  26. package/types/api/modules/auth/index.d.ts +13 -13
  27. package/types/components/Common/DynamicComponent/index.vue.d.ts +21 -21
  28. package/types/components/CommonPage/index.d.ts +3 -3
  29. package/types/components/CommonPage/page.d.ts +64 -64
  30. package/types/components/CommonPage/pagination.d.ts +9 -9
  31. package/types/components/CommonPage/props.d.ts +36 -36
  32. package/types/components/CommonPage/search.d.ts +4 -4
  33. package/types/components/CommonPage/table.d.ts +3 -3
  34. package/types/components/CommonPage/type.d.ts +1 -1
  35. package/types/components/SearchForm/index.d.ts +3 -3
  36. package/types/components/SearchForm/index.vue.d.ts +2 -2
  37. package/types/components/YxForm/form.type.d.ts +183 -183
  38. package/types/components/YxForm/form.vaildator.d.ts +57 -57
  39. package/types/components/YxForm/form.vue.d.ts +66 -66
  40. package/types/components/YxFormV2/index.d.ts +3 -3
  41. package/types/components/YxFormV2/index.vue.d.ts +46 -46
  42. package/types/components/YxFormV2/type.d.ts +54 -54
  43. package/types/components/YxFrom/form.type.d.ts +179 -179
  44. package/types/components/YxFrom/form.vaildator.d.ts +57 -57
  45. package/types/components/YxFrom/form.vue.d.ts +66 -66
  46. package/types/components/YxFrom/index.d.ts +3 -3
  47. package/types/components/YxIcon/index.vue.d.ts +22 -22
  48. package/types/components/YxSearchForm/index.d.ts +3 -3
  49. package/types/components/YxSearchForm/index.vue.d.ts +36 -36
  50. package/types/components/YxSearchForm/type.d.ts +52 -52
  51. package/types/components/YxTable3/index.d.ts +1 -1
  52. package/types/components/YxTable3/src/index.d.ts +31 -31
  53. package/types/icons/index.d.ts +1 -1
  54. package/types/icons/src/index.d.ts +4 -4
  55. package/types/theme/checkVersion.d.ts +1 -0
@@ -1,4 +1,4 @@
1
- export declare const searchRender: (searchProps: any, read: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
- [key: string]: any;
3
- }>;
4
- export declare const getSearchFormData: () => any;
1
+ export declare const searchRender: (searchProps: any, read: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ [key: string]: any;
3
+ }>;
4
+ export declare const getSearchFormData: () => any;
@@ -1,3 +1,3 @@
1
- export declare const tableRender: (tableProps: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
- [key: string]: any;
3
- }>;
1
+ export declare const tableRender: (tableProps: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ [key: string]: any;
3
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,3 +1,3 @@
1
- export declare const yxSearchForm: import('../../utils/common/util').SFCWithInstall<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>> & Record<string, any>;
2
- export * from "./index.vue";
3
- export * from "./index";
1
+ export declare const yxSearchForm: import('../../utils/common/util').SFCWithInstall<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>> & Record<string, any>;
2
+ export * from "./index.vue";
3
+ export * from "./index";
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -1,183 +1,183 @@
1
- import type { StyleValue } from "vue";
2
- import type { ElInput, ElSelect, ElCheckboxGroup, ElCheckbox, ElRadioGroup, ElDatePicker, ElSwitch, ElFormItem, FormItemRule, ElForm } from "element-plus";
3
- import type { Rule } from "./form.vaildator";
4
- /** 字段函数类型处理 */
5
- export type HandleFn<T, R> = (form: T, status: "ADD" | "EDIT") => R;
6
- export type AddMode = {
7
- /** 表单的新建 */
8
- status: "ADD";
9
- };
10
- export type EditMode<T> = {
11
- /** 表单的编辑 */
12
- status: "EDIT";
13
- /** form数据(编辑状态) */
14
- formData: T;
15
- };
16
- export type FromProps<T> = {
17
- /** 配置数据 */
18
- formConfig: IFormConfig<T>;
19
- } & (AddMode | EditMode<T>);
20
- /**
21
- * 选项的options
22
- */
23
- export type OptionsType<T> = {
24
- value: T;
25
- label: string | number;
26
- };
27
- /**
28
- * form组件参数
29
- */
30
- export type IFormConfig<T> = {
31
- /** 外部样式 */
32
- wrapStyle?: StyleValue;
33
- /** 公共的每一个组件样式 */
34
- itemStyle?: StyleValue;
35
- /** 公共的每一个formItem样式 */
36
- formItemStyle?: StyleValue;
37
- /** form配置 */
38
- formProps?: InstanceType<typeof ElForm>["$props"];
39
- /** 组件列表 */
40
- compList: Array<CompConfig<T>>;
41
- /** 挂载在每一个formItem上的属性 */
42
- formItemProps?: InstanceType<typeof ElFormItem>["$props"];
43
- /** 表单排列方式 */
44
- layout?: "horizontal" | "vertical";
45
- };
46
- export type CompConfig<T> = {
47
- /** 组件字段值 */
48
- name?: keyof T;
49
- /** 组件label */
50
- label?: string | HandleFn<T, string>;
51
- /** 组件类型 */
52
- ctype?: CType;
53
- /** help提示 */
54
- hint?: string;
55
- /** 当前组件独立样式 */
56
- style?: StyleValue;
57
- /**label的样式 */
58
- labelStyle?: StyleValue;
59
- /** 是否隐藏 */
60
- hidden?: boolean | HandleFn<T, boolean>;
61
- /** 是否禁用 */
62
- disabled?: boolean | HandleFn<T, boolean>;
63
- /** 插槽名 */
64
- slotName?: string;
65
- /** 内置校验规则(已包含常规校验) */
66
- rule?: Rule;
67
- /** 自定义规则校验 */
68
- customRules?: FormItemRule[];
69
- /** 挂载在每一个formItem上的props */
70
- formItemProps?: InstanceType<typeof ElFormItem>["$props"];
71
- /** 当前组件的enter回车事件 */
72
- enter?: (form: T) => void;
73
- /** event事件透传 */
74
- event?: {
75
- [key in PropertyKey]: (e: any) => void;
76
- };
77
- } & (InputType | SelectType | CheckBoxType | RadioGroupType | CheckBoxGroupType | DatePickerType | SwitchType | NullType);
78
- /** 组件类型 */
79
- export type CType = "input" | "select" | "radio" | "radio-group" | "checkbox" | "checkbox-group" | "switch" | "date-picker" | "time-picker" | null;
80
- /**
81
- * 输入框组件类型
82
- */
83
- export type InputType = {
84
- /** 组件类型 */
85
- ctype?: "input";
86
- /** ElInput的配置 */
87
- config?: InstanceType<typeof ElInput>["$props"];
88
- /** 插槽(针对input) */
89
- slots?: InputSlots[];
90
- /** 初始值 */
91
- defaultValue?: string;
92
- };
93
- /**
94
- * 输入框插槽
95
- */
96
- export type InputSlots = {
97
- /** 插槽名 */
98
- name: string;
99
- /** 插槽类型 */
100
- type: string;
101
- /** 插槽内容 */
102
- inner: any;
103
- };
104
- /**
105
- * 下拉选择组件类型
106
- */
107
- export type SelectType = {
108
- /** 组件类型 */
109
- ctype?: "select";
110
- /** 下拉选项列表 */
111
- selectOptions: Array<OptionsType<PropertyKey | boolean>>;
112
- /** ElSelect的配置 */
113
- config?: InstanceType<typeof ElSelect>["$props"];
114
- /** 初始值 */
115
- defaultValue?: any;
116
- };
117
- /**
118
- * 单选组件类型
119
- */
120
- export type CheckBoxType = {
121
- /** 组件类型 */
122
- ctype?: "checkbox";
123
- /** ElCheckbox的配置 */
124
- config?: InstanceType<typeof ElCheckbox>["$props"];
125
- /** 初始值 */
126
- defaultValue?: boolean;
127
- };
128
- /**
129
- * 单选组件类型
130
- */
131
- export type CheckBoxGroupType = {
132
- /** 组件类型 */
133
- ctype?: "checkbox-group";
134
- /** 多选框的列表 */
135
- checkboxList: Array<OptionsType<PropertyKey>>;
136
- /** ElCheckboxGroup的配置 */
137
- config?: InstanceType<typeof ElCheckboxGroup>["$props"];
138
- /** 初始值 */
139
- defaultValue?: any[];
140
- };
141
- /**
142
- * 单选组件类型
143
- */
144
- export type RadioGroupType = {
145
- /** 组件类型 */
146
- ctype?: "radio-group";
147
- /** radio的列表 */
148
- radioList: Array<OptionsType<PropertyKey>>;
149
- /** ElRadioGroup的配置 */
150
- config?: InstanceType<typeof ElRadioGroup>["$props"];
151
- /** 初始值 */
152
- defaultValue?: any[];
153
- };
154
- /**
155
- * switch组件类型
156
- */
157
- export type SwitchType = {
158
- /** 组件类型 */
159
- ctype?: "switch";
160
- /** ElSwitch的配置 */
161
- config?: InstanceType<typeof ElSwitch>["$props"];
162
- /** 初始值 */
163
- defaultValue?: any;
164
- };
165
- /**
166
- * 日期组件类型/时间日期组件
167
- */
168
- export type DatePickerType = {
169
- /** 组件类型 */
170
- ctype?: "date-picker";
171
- /** ElDatePicker的配置 */
172
- config?: InstanceType<typeof ElDatePicker>["$props"];
173
- /** 初始值 */
174
- defaultValue?: any;
175
- };
176
- /**
177
- * 空ctype类型
178
- */
179
- export type NullType = {
180
- ctype?: null;
181
- config: null;
182
- defaultValue: any;
183
- };
1
+ import type { StyleValue } from "vue";
2
+ import type { ElInput, ElSelect, ElCheckboxGroup, ElCheckbox, ElRadioGroup, ElDatePicker, ElSwitch, ElFormItem, FormItemRule, ElForm } from "element-plus";
3
+ import type { Rule } from "./form.vaildator";
4
+ /** 字段函数类型处理 */
5
+ export type HandleFn<T, R> = (form: T, status: "ADD" | "EDIT") => R;
6
+ export type AddMode = {
7
+ /** 表单的新建 */
8
+ status: "ADD";
9
+ };
10
+ export type EditMode<T> = {
11
+ /** 表单的编辑 */
12
+ status: "EDIT";
13
+ /** form数据(编辑状态) */
14
+ formData: T;
15
+ };
16
+ export type FromProps<T> = {
17
+ /** 配置数据 */
18
+ formConfig: IFormConfig<T>;
19
+ } & (AddMode | EditMode<T>);
20
+ /**
21
+ * 选项的options
22
+ */
23
+ export type OptionsType<T> = {
24
+ value: T;
25
+ label: string | number;
26
+ };
27
+ /**
28
+ * form组件参数
29
+ */
30
+ export type IFormConfig<T> = {
31
+ /** 外部样式 */
32
+ wrapStyle?: StyleValue;
33
+ /** 公共的每一个组件样式 */
34
+ itemStyle?: StyleValue;
35
+ /** 公共的每一个formItem样式 */
36
+ formItemStyle?: StyleValue;
37
+ /** form配置 */
38
+ formProps?: InstanceType<typeof ElForm>["$props"];
39
+ /** 组件列表 */
40
+ compList: Array<CompConfig<T>>;
41
+ /** 挂载在每一个formItem上的属性 */
42
+ formItemProps?: InstanceType<typeof ElFormItem>["$props"];
43
+ /** 表单排列方式 */
44
+ layout?: "horizontal" | "vertical";
45
+ };
46
+ export type CompConfig<T> = {
47
+ /** 组件字段值 */
48
+ name?: keyof T;
49
+ /** 组件label */
50
+ label?: string | HandleFn<T, string>;
51
+ /** 组件类型 */
52
+ ctype?: CType;
53
+ /** help提示 */
54
+ hint?: string;
55
+ /** 当前组件独立样式 */
56
+ style?: StyleValue;
57
+ /**label的样式 */
58
+ labelStyle?: StyleValue;
59
+ /** 是否隐藏 */
60
+ hidden?: boolean | HandleFn<T, boolean>;
61
+ /** 是否禁用 */
62
+ disabled?: boolean | HandleFn<T, boolean>;
63
+ /** 插槽名 */
64
+ slotName?: string;
65
+ /** 内置校验规则(已包含常规校验) */
66
+ rule?: Rule;
67
+ /** 自定义规则校验 */
68
+ customRules?: FormItemRule[];
69
+ /** 挂载在每一个formItem上的props */
70
+ formItemProps?: InstanceType<typeof ElFormItem>["$props"];
71
+ /** 当前组件的enter回车事件 */
72
+ enter?: (form: T) => void;
73
+ /** event事件透传 */
74
+ event?: {
75
+ [key in PropertyKey]: (e: any) => void;
76
+ };
77
+ } & (InputType | SelectType | CheckBoxType | RadioGroupType | CheckBoxGroupType | DatePickerType | SwitchType | NullType);
78
+ /** 组件类型 */
79
+ export type CType = "input" | "select" | "radio" | "radio-group" | "checkbox" | "checkbox-group" | "switch" | "date-picker" | "time-picker" | null;
80
+ /**
81
+ * 输入框组件类型
82
+ */
83
+ export type InputType = {
84
+ /** 组件类型 */
85
+ ctype?: "input";
86
+ /** ElInput的配置 */
87
+ config?: InstanceType<typeof ElInput>["$props"];
88
+ /** 插槽(针对input) */
89
+ slots?: InputSlots[];
90
+ /** 初始值 */
91
+ defaultValue?: string;
92
+ };
93
+ /**
94
+ * 输入框插槽
95
+ */
96
+ export type InputSlots = {
97
+ /** 插槽名 */
98
+ name: string;
99
+ /** 插槽类型 */
100
+ type: string;
101
+ /** 插槽内容 */
102
+ inner: any;
103
+ };
104
+ /**
105
+ * 下拉选择组件类型
106
+ */
107
+ export type SelectType = {
108
+ /** 组件类型 */
109
+ ctype?: "select";
110
+ /** 下拉选项列表 */
111
+ selectOptions: Array<OptionsType<PropertyKey | boolean>>;
112
+ /** ElSelect的配置 */
113
+ config?: InstanceType<typeof ElSelect>["$props"];
114
+ /** 初始值 */
115
+ defaultValue?: any;
116
+ };
117
+ /**
118
+ * 单选组件类型
119
+ */
120
+ export type CheckBoxType = {
121
+ /** 组件类型 */
122
+ ctype?: "checkbox";
123
+ /** ElCheckbox的配置 */
124
+ config?: InstanceType<typeof ElCheckbox>["$props"];
125
+ /** 初始值 */
126
+ defaultValue?: boolean;
127
+ };
128
+ /**
129
+ * 单选组件类型
130
+ */
131
+ export type CheckBoxGroupType = {
132
+ /** 组件类型 */
133
+ ctype?: "checkbox-group";
134
+ /** 多选框的列表 */
135
+ checkboxList: Array<OptionsType<PropertyKey>>;
136
+ /** ElCheckboxGroup的配置 */
137
+ config?: InstanceType<typeof ElCheckboxGroup>["$props"];
138
+ /** 初始值 */
139
+ defaultValue?: any[];
140
+ };
141
+ /**
142
+ * 单选组件类型
143
+ */
144
+ export type RadioGroupType = {
145
+ /** 组件类型 */
146
+ ctype?: "radio-group";
147
+ /** radio的列表 */
148
+ radioList: Array<OptionsType<PropertyKey>>;
149
+ /** ElRadioGroup的配置 */
150
+ config?: InstanceType<typeof ElRadioGroup>["$props"];
151
+ /** 初始值 */
152
+ defaultValue?: any[];
153
+ };
154
+ /**
155
+ * switch组件类型
156
+ */
157
+ export type SwitchType = {
158
+ /** 组件类型 */
159
+ ctype?: "switch";
160
+ /** ElSwitch的配置 */
161
+ config?: InstanceType<typeof ElSwitch>["$props"];
162
+ /** 初始值 */
163
+ defaultValue?: any;
164
+ };
165
+ /**
166
+ * 日期组件类型/时间日期组件
167
+ */
168
+ export type DatePickerType = {
169
+ /** 组件类型 */
170
+ ctype?: "date-picker";
171
+ /** ElDatePicker的配置 */
172
+ config?: InstanceType<typeof ElDatePicker>["$props"];
173
+ /** 初始值 */
174
+ defaultValue?: any;
175
+ };
176
+ /**
177
+ * 空ctype类型
178
+ */
179
+ export type NullType = {
180
+ ctype?: null;
181
+ config: null;
182
+ defaultValue: any;
183
+ };
@@ -1,57 +1,57 @@
1
- import type { FormItemRule } from "element-plus";
2
- /** 规则类型 */
3
- export type Rule = Partial<{
4
- required: boolean;
5
- isNumber: boolean;
6
- isInt: boolean;
7
- maxNumber: number;
8
- minNumber: number;
9
- reg: RegExp;
10
- }>;
11
- /**
12
- * 生成校验的函数
13
- */
14
- export default function formatRule(label: string, ruleName: keyof Rule, value: any): FormItemRule;
15
- /**
16
- * 必填校验
17
- */
18
- export declare function rule_required(label: string): FormItemRule;
19
- /**
20
- * 数字校验
21
- */
22
- export declare function rule_isNumber(label: string): FormItemRule;
23
- /**
24
- * 整数校验
25
- */
26
- export declare function rule_isInt(label: string): FormItemRule;
27
- /**
28
- * 最大数字校验
29
- */
30
- export declare function rule_maxNumber(label: string, maxNumber: number): FormItemRule;
31
- /**
32
- * 最小数字校验
33
- */
34
- export declare function rule_minNumber(label: string, minNumber: number): FormItemRule;
35
- /**
36
- * 正则匹配
37
- */
38
- export declare function rule_reg(label: string, reg: RegExp): {
39
- validator: (rule: any, value: any, callback: Function) => void;
40
- trigger: string;
41
- };
42
- /**
43
- * 包含某段字符校验
44
- */
45
- export declare function rule_includes(): FormItemRule;
46
- /**
47
- * 以某字符开头校验
48
- */
49
- export declare function rule_startsWith(): FormItemRule;
50
- /**
51
- * 以某字符结尾校验
52
- */
53
- export declare function rule_endsWith(): FormItemRule;
54
- /**
55
- * 禁用特殊字符校验
56
- */
57
- export declare function rule_disableSpecialChar(): FormItemRule;
1
+ import type { FormItemRule } from "element-plus";
2
+ /** 规则类型 */
3
+ export type Rule = Partial<{
4
+ required: boolean;
5
+ isNumber: boolean;
6
+ isInt: boolean;
7
+ maxNumber: number;
8
+ minNumber: number;
9
+ reg: RegExp;
10
+ }>;
11
+ /**
12
+ * 生成校验的函数
13
+ */
14
+ export default function formatRule(label: string, ruleName: keyof Rule, value: any): FormItemRule;
15
+ /**
16
+ * 必填校验
17
+ */
18
+ export declare function rule_required(label: string): FormItemRule;
19
+ /**
20
+ * 数字校验
21
+ */
22
+ export declare function rule_isNumber(label: string): FormItemRule;
23
+ /**
24
+ * 整数校验
25
+ */
26
+ export declare function rule_isInt(label: string): FormItemRule;
27
+ /**
28
+ * 最大数字校验
29
+ */
30
+ export declare function rule_maxNumber(label: string, maxNumber: number): FormItemRule;
31
+ /**
32
+ * 最小数字校验
33
+ */
34
+ export declare function rule_minNumber(label: string, minNumber: number): FormItemRule;
35
+ /**
36
+ * 正则匹配
37
+ */
38
+ export declare function rule_reg(label: string, reg: RegExp): {
39
+ validator: (rule: any, value: any, callback: Function) => void;
40
+ trigger: string;
41
+ };
42
+ /**
43
+ * 包含某段字符校验
44
+ */
45
+ export declare function rule_includes(): FormItemRule;
46
+ /**
47
+ * 以某字符开头校验
48
+ */
49
+ export declare function rule_startsWith(): FormItemRule;
50
+ /**
51
+ * 以某字符结尾校验
52
+ */
53
+ export declare function rule_endsWith(): FormItemRule;
54
+ /**
55
+ * 禁用特殊字符校验
56
+ */
57
+ export declare function rule_disableSpecialChar(): FormItemRule;
@@ -1,66 +1,66 @@
1
- import { type Ref } from "vue";
2
- import type { IFormConfig } from "./form.type";
3
- declare const _default: <T extends object>(__VLS_props: ({
4
- status: "ADD";
5
- formConfig: IFormConfig<T>;
6
- } | {
7
- status: "EDIT";
8
- formConfig: IFormConfig<T>;
9
- formData: T;
10
- }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
11
- attrs: any;
12
- slots: Partial<Record<string, (_: {
13
- form: T;
14
- }) => any>>;
15
- emit: any;
16
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
17
- form: Ref<T>;
18
- formValue: import("vue").ComputedRef<Partial<T>>;
19
- resetForm: () => void;
20
- validateForm: () => Promise<unknown>;
21
- }>) => void) | undefined, __VLS_setup?: Promise<{
22
- props: ({
23
- status: "ADD";
24
- formConfig: IFormConfig<T>;
25
- } | {
26
- status: "EDIT";
27
- formConfig: IFormConfig<T>;
28
- formData: T;
29
- }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
30
- expose(exposed: import("vue").ShallowUnwrapRef<{
31
- form: Ref<T>;
32
- formValue: import("vue").ComputedRef<Partial<T>>;
33
- resetForm: () => void;
34
- validateForm: () => Promise<unknown>;
35
- }>): void;
36
- attrs: any;
37
- slots: Partial<Record<string, (_: {
38
- form: T;
39
- }) => any>>;
40
- emit: any;
41
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }> & {
44
- __ctx?: {
45
- props: ({
46
- status: "ADD";
47
- formConfig: IFormConfig<T>;
48
- } | {
49
- status: "EDIT";
50
- formConfig: IFormConfig<T>;
51
- formData: T;
52
- }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
53
- expose(exposed: import("vue").ShallowUnwrapRef<{
54
- form: Ref<T>;
55
- formValue: import("vue").ComputedRef<Partial<T>>;
56
- resetForm: () => void;
57
- validateForm: () => Promise<unknown>;
58
- }>): void;
59
- attrs: any;
60
- slots: Partial<Record<string, (_: {
61
- form: T;
62
- }) => any>>;
63
- emit: any;
64
- } | undefined;
65
- };
66
- export default _default;
1
+ import { type Ref } from "vue";
2
+ import type { IFormConfig } from "./form.type";
3
+ declare const _default: <T extends object>(__VLS_props: ({
4
+ status: "ADD";
5
+ formConfig: IFormConfig<T>;
6
+ } | {
7
+ status: "EDIT";
8
+ formConfig: IFormConfig<T>;
9
+ formData: T;
10
+ }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
11
+ attrs: any;
12
+ slots: Partial<Record<string, (_: {
13
+ form: T;
14
+ }) => any>>;
15
+ emit: any;
16
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
17
+ form: Ref<T>;
18
+ formValue: import("vue").ComputedRef<Partial<T>>;
19
+ resetForm: () => void;
20
+ validateForm: () => Promise<unknown>;
21
+ }>) => void) | undefined, __VLS_setup?: Promise<{
22
+ props: ({
23
+ status: "ADD";
24
+ formConfig: IFormConfig<T>;
25
+ } | {
26
+ status: "EDIT";
27
+ formConfig: IFormConfig<T>;
28
+ formData: T;
29
+ }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
30
+ expose(exposed: import("vue").ShallowUnwrapRef<{
31
+ form: Ref<T>;
32
+ formValue: import("vue").ComputedRef<Partial<T>>;
33
+ resetForm: () => void;
34
+ validateForm: () => Promise<unknown>;
35
+ }>): void;
36
+ attrs: any;
37
+ slots: Partial<Record<string, (_: {
38
+ form: T;
39
+ }) => any>>;
40
+ emit: any;
41
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }> & {
44
+ __ctx?: {
45
+ props: ({
46
+ status: "ADD";
47
+ formConfig: IFormConfig<T>;
48
+ } | {
49
+ status: "EDIT";
50
+ formConfig: IFormConfig<T>;
51
+ formData: T;
52
+ }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
53
+ expose(exposed: import("vue").ShallowUnwrapRef<{
54
+ form: Ref<T>;
55
+ formValue: import("vue").ComputedRef<Partial<T>>;
56
+ resetForm: () => void;
57
+ validateForm: () => Promise<unknown>;
58
+ }>): void;
59
+ attrs: any;
60
+ slots: Partial<Record<string, (_: {
61
+ form: T;
62
+ }) => any>>;
63
+ emit: any;
64
+ } | undefined;
65
+ };
66
+ export default _default;
@@ -1,3 +1,3 @@
1
- export { default as YxFormV2 } from "./index.vue";
2
- export * from "./type";
3
- export * from "./index.vue";
1
+ export { default as YxFormV2 } from "./index.vue";
2
+ export * from "./type";
3
+ export * from "./index.vue";