@form-create/element-ui 3.1.11 → 3.1.12
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 +23 -8
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +23 -8
- 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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/element-ui",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "element-ui动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports
|
|
3
|
+
"version": "3.1.12",
|
|
4
|
+
"description": "element-ui动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 5 UI frameworks, and supports the generation of any Vue components. Built-in 20 kinds of commonly used form components and custom components, no matter how complex forms can be easily handled.",
|
|
5
5
|
"main": "./dist/form-create.min.js",
|
|
6
6
|
"module": "./dist/form-create.esm.js",
|
|
7
7
|
"unpkg": "./dist/form-create.min.js",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "http://www.form-create.com/v3/",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@form-create/component-elm-checkbox": "^3.1.
|
|
48
|
-
"@form-create/component-elm-frame": "^3.1.
|
|
49
|
-
"@form-create/component-elm-group": "^3.1.
|
|
50
|
-
"@form-create/component-elm-radio": "^3.1.
|
|
51
|
-
"@form-create/component-elm-select": "^3.1.
|
|
52
|
-
"@form-create/component-elm-tree": "^3.1.
|
|
53
|
-
"@form-create/component-elm-upload": "^3.1.
|
|
47
|
+
"@form-create/component-elm-checkbox": "^3.1.12",
|
|
48
|
+
"@form-create/component-elm-frame": "^3.1.12",
|
|
49
|
+
"@form-create/component-elm-group": "^3.1.12",
|
|
50
|
+
"@form-create/component-elm-radio": "^3.1.12",
|
|
51
|
+
"@form-create/component-elm-select": "^3.1.12",
|
|
52
|
+
"@form-create/component-elm-tree": "^3.1.12",
|
|
53
|
+
"@form-create/component-elm-upload": "^3.1.12",
|
|
54
54
|
"@form-create/component-subform": "^3.1.5",
|
|
55
|
-
"@form-create/core": "^3.1.
|
|
56
|
-
"@form-create/utils": "^3.1.
|
|
55
|
+
"@form-create/core": "^3.1.12",
|
|
56
|
+
"@form-create/utils": "^3.1.12"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@element-plus/icons-vue": "^0.2.6",
|
|
63
|
-
"@form-create/component-wangeditor": "^3.1.
|
|
63
|
+
"@form-create/component-wangeditor": "^3.1.12",
|
|
64
64
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
65
65
|
"@vue/cli-service": "^4.5.3",
|
|
66
66
|
"element-plus": "^2.0.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"esm"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "77c2c819ff60de2c536d27b85c1d4d43e2b5de85"
|
|
87
87
|
}
|
package/src/core/provider.js
CHANGED
|
@@ -15,7 +15,8 @@ const required = {
|
|
|
15
15
|
...val,
|
|
16
16
|
};
|
|
17
17
|
if (!validate.message) {
|
|
18
|
-
|
|
18
|
+
let title = rule.title || '';
|
|
19
|
+
validate.message = ((typeof title === 'object' ? title.title : title) || '') + '不能为空';
|
|
19
20
|
}
|
|
20
21
|
inject.getProp().validate = [validate];
|
|
21
22
|
}
|
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
|
|