@form-create/element-ui 3.1.10 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/form-create.esm.js +174 -113
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +174 -113
- package/dist/form-create.min.js +2 -2
- package/package.json +13 -13
- package/src/core/provider.js +2 -1
- package/types/config.d.ts +9 -13
package/types/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {FormData,
|
|
1
|
+
import {FormData, VNodeRule} from "@form-create/core";
|
|
2
2
|
import {ButtonProps, ValidateFieldCallback} from "element-plus";
|
|
3
3
|
import {Api} from "./index";
|
|
4
4
|
|
|
@@ -37,14 +37,14 @@ export interface OptionAttrs {
|
|
|
37
37
|
row?: Boolean | RowProps & {
|
|
38
38
|
show?: Boolean;
|
|
39
39
|
};
|
|
40
|
-
info?: Boolean |
|
|
40
|
+
info?: Boolean | VNodeRule & {
|
|
41
41
|
show?: Boolean;
|
|
42
42
|
native?: Boolean;
|
|
43
43
|
icon?: string;
|
|
44
44
|
align?: 'left' | 'right';
|
|
45
45
|
info?: string;
|
|
46
46
|
};
|
|
47
|
-
wrap?: Boolean |
|
|
47
|
+
wrap?: Boolean | VNodeRule & {
|
|
48
48
|
labelWidth?: string
|
|
49
49
|
required?: boolean
|
|
50
50
|
error?: string
|
|
@@ -83,25 +83,21 @@ export interface OptionAttrs {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
declare const optionAttrs: OptionAttrs & {
|
|
86
|
-
title?: Boolean |
|
|
86
|
+
title?: Boolean | VNodeRule & {
|
|
87
87
|
show?: Boolean;
|
|
88
88
|
native?: Boolean;
|
|
89
|
-
title
|
|
89
|
+
title: string;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
interface children {
|
|
94
|
-
children?: VNodeData[]
|
|
95
|
-
}
|
|
96
|
-
|
|
97
93
|
export interface CreatorAttrs {
|
|
98
94
|
col(props: typeof optionAttrs.col): this;
|
|
99
95
|
|
|
100
96
|
wrap(props: typeof optionAttrs.wrap): this;
|
|
101
97
|
|
|
102
|
-
title(props: string | typeof optionAttrs.title
|
|
98
|
+
title(props: string | typeof optionAttrs.title): this;
|
|
103
99
|
|
|
104
|
-
info(props: string | typeof optionAttrs.info
|
|
100
|
+
info(props: string | typeof optionAttrs.info): this;
|
|
105
101
|
|
|
106
102
|
className(prop: string): this;
|
|
107
103
|
|
|
@@ -110,8 +106,8 @@ export interface CreatorAttrs {
|
|
|
110
106
|
export interface RuleAttrs {
|
|
111
107
|
col?: typeof optionAttrs.col;
|
|
112
108
|
wrap?: typeof optionAttrs.wrap;
|
|
113
|
-
title?: string | typeof optionAttrs.title
|
|
114
|
-
info?: string | typeof optionAttrs.info
|
|
109
|
+
title?: string | typeof optionAttrs.title;
|
|
110
|
+
info?: string | typeof optionAttrs.info;
|
|
115
111
|
className?: string;
|
|
116
112
|
}
|
|
117
113
|
|