@form-create/element-ui 3.1.13 → 3.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@form-create/element-ui",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
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",
@@ -46,13 +46,13 @@
46
46
  "dependencies": {
47
47
  "@form-create/component-elm-checkbox": "^3.1.12",
48
48
  "@form-create/component-elm-frame": "^3.1.12",
49
- "@form-create/component-elm-group": "^3.1.13",
49
+ "@form-create/component-elm-group": "^3.1.14",
50
50
  "@form-create/component-elm-radio": "^3.1.12",
51
51
  "@form-create/component-elm-select": "^3.1.12",
52
52
  "@form-create/component-elm-tree": "^3.1.12",
53
53
  "@form-create/component-elm-upload": "^3.1.12",
54
54
  "@form-create/component-subform": "^3.1.5",
55
- "@form-create/core": "^3.1.13",
55
+ "@form-create/core": "^3.1.14",
56
56
  "@form-create/utils": "^3.1.12"
57
57
  },
58
58
  "publishConfig": {
@@ -83,5 +83,5 @@
83
83
  "esm"
84
84
  ]
85
85
  },
86
- "gitHead": "765f1265d38908a4e313070341d866e6590b5956"
86
+ "gitHead": "ca0186a64e9396f57ad89d43a10d4d5073a89481"
87
87
  }
@@ -25,6 +25,12 @@ function tidyBool(opt, name) {
25
25
  }
26
26
  }
27
27
 
28
+ function tidyRule(rule) {
29
+ const _rule = {...rule};
30
+ delete _rule.children;
31
+ return _rule;
32
+ }
33
+
28
34
  export default {
29
35
  validate() {
30
36
  const form = this.form();
@@ -146,7 +152,7 @@ export default {
146
152
  if (!isFalse(infoProp.show) && (infoProp.info || infoProp.native) && !isFalse(infoProp.icon)) {
147
153
  const prop = {
148
154
  type: infoProp.type || 'popover',
149
- props: {...infoProp},
155
+ props: tidyRule(infoProp),
150
156
  key: `${uni}pop`
151
157
  };
152
158
 
@@ -174,7 +180,7 @@ export default {
174
180
  }));
175
181
  }
176
182
  const _prop = mergeProps([titleProp, {
177
- props: titleProp,
183
+ props: tidyRule(titleProp),
178
184
  key: `${uni}tit`,
179
185
  type: titleProp.type || 'span',
180
186
  }]);
package/types/config.d.ts CHANGED
@@ -3,30 +3,30 @@ import {ButtonProps, ValidateFieldCallback} from "element-plus";
3
3
  import {Api} from "./index";
4
4
 
5
5
  type SizeObject = {
6
- span: number
7
- offset: number
6
+ span?: number
7
+ offset?: number
8
8
  }
9
9
 
10
10
  type ComponentSize = 'large' | 'default' | 'small'
11
11
 
12
12
  type ColProps = {
13
- tag: string | 'div';
14
- span: number | 24;
15
- offset: number | 0;
16
- pull: number | 0;
17
- push: number | 0;
18
- xs: number | SizeObject;
19
- sm: number | SizeObject;
20
- md: number | SizeObject;
21
- lg: number | SizeObject;
22
- xl: number | SizeObject;
13
+ tag?: string | 'div';
14
+ span?: number | 24;
15
+ offset?: number | 0;
16
+ pull?: number | 0;
17
+ push?: number | 0;
18
+ xs?: number | SizeObject;
19
+ sm?: number | SizeObject;
20
+ md?: number | SizeObject;
21
+ lg?: number | SizeObject;
22
+ xl?: number | SizeObject;
23
23
  }
24
24
 
25
25
  type RowProps = {
26
- tag: string | 'div',
27
- gutter: number | 0,
28
- justify: string | 'start',
29
- align: string | 'top',
26
+ tag?: string | 'div',
27
+ gutter?: number | 0,
28
+ justify?: string | 'start',
29
+ align?: string | 'top',
30
30
  }
31
31
 
32
32
  export interface OptionAttrs {