@form-create/element-ui 3.2.11 → 3.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@form-create/element-ui",
3
- "version": "3.2.11",
3
+ "version": "3.2.13",
4
4
  "description": "Element Plus版本低代码表单|FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。",
5
5
  "main": "./dist/form-create.min.js",
6
6
  "module": "./dist/form-create.esm.js",
@@ -52,9 +52,9 @@
52
52
  "@form-create/component-elm-radio": "^3.2.8",
53
53
  "@form-create/component-elm-select": "^3.2.0",
54
54
  "@form-create/component-elm-tree": "^3.2.9",
55
- "@form-create/component-elm-upload": "^3.2.9",
55
+ "@form-create/component-elm-upload": "^3.2.13",
56
56
  "@form-create/component-subform": "^3.1.34",
57
- "@form-create/core": "^3.2.11",
57
+ "@form-create/core": "^3.2.13",
58
58
  "@form-create/utils": "^3.2.0"
59
59
  },
60
60
  "publishConfig": {
@@ -88,5 +88,5 @@
88
88
  "esm"
89
89
  ]
90
90
  },
91
- "gitHead": "038a1d730a0174200d7ec337895fe22d30507f82"
91
+ "gitHead": "5cfdd0b3794a2e5a63be9cffcc0bfa222434f5c0"
92
92
  }
@@ -107,7 +107,7 @@ export default {
107
107
  const {key, ref, $handle} = this;
108
108
  extend(this.rule, {key, ref});
109
109
  extend(this.rule.props, {
110
- model: {...$handle.formData},
110
+ model: $handle.formData,
111
111
  });
112
112
  },
113
113
  render(children) {
@@ -3,6 +3,7 @@ import {creatorFactory} from '@form-create/core/src/index';
3
3
  const DEFAULT_FORMATS = {
4
4
  date: 'YYYY-MM-DD',
5
5
  month: 'YYYY-MM',
6
+ week: 'YYYY-wo',
6
7
  datetime: 'YYYY-MM-DD HH:mm:ss',
7
8
  timerange: 'HH:mm:ss',
8
9
  daterange: 'YYYY-MM-DD',
@@ -10,12 +10,12 @@
10
10
  display: none !important;
11
11
  }
12
12
 
13
- .fc-wrap-left .el-form-item__label {
14
- justify-content: flex-start;
13
+ .fc-wrap-right .el-form-item__label {
14
+ justify-content: flex-end;
15
15
  }
16
16
 
17
17
  .fc-wrap-left .el-form-item__label {
18
- justify-content: flex-end;
18
+ justify-content: flex-start;
19
19
  }
20
20
 
21
21
  .fc-wrap-top.el-form-item {
package/types/config.d.ts CHANGED
@@ -31,21 +31,21 @@ type RowProps = {
31
31
  }
32
32
 
33
33
  export interface OptionAttrs {
34
- col?: Boolean | ColProps & {
34
+ col?: Boolean | Partial<ColProps & {
35
35
  labelWidth?: number | string;
36
36
  show?: Boolean;
37
- };
38
- row?: Boolean | RowProps & {
37
+ }>;
38
+ row?: Boolean | Partial<RowProps & {
39
39
  show?: Boolean;
40
- };
41
- info?: Boolean | VNodeRule & {
40
+ }>;
41
+ info?: Boolean | Partial<VNodeRule & {
42
42
  show?: Boolean;
43
43
  native?: Boolean;
44
44
  icon?: string;
45
45
  align?: 'left' | 'right';
46
46
  info?: string;
47
- };
48
- wrap?: Boolean | VNodeRule & {
47
+ }>;
48
+ wrap?: Boolean | Partial<VNodeRule & {
49
49
  labelWidth?: string
50
50
  required?: boolean
51
51
  error?: string
@@ -53,8 +53,8 @@ export interface OptionAttrs {
53
53
  inlineMessage?: boolean
54
54
  size?: ComponentSize
55
55
  show?: Boolean;
56
- };
57
- form?: {
56
+ }>;
57
+ form?: Partial<{
58
58
  inline?: boolean
59
59
  disabled?: boolean
60
60
  labelPosition?: string
@@ -67,29 +67,29 @@ export interface OptionAttrs {
67
67
  size?: ComponentSize
68
68
  className?: any;
69
69
  col?: Boolean;
70
- };
70
+ }>;
71
71
 
72
- submitBtn?: Boolean | ButtonProps & {
72
+ submitBtn?: Boolean | Partial<ButtonProps & {
73
73
  click?: Function;
74
74
  innerText?: string;
75
75
  show?: Boolean;
76
- };
76
+ }>;
77
77
 
78
- resetBtn?: Boolean | ButtonProps & {
78
+ resetBtn?: Boolean | Partial<ButtonProps & {
79
79
  click?: Function;
80
80
  innerText?: string;
81
81
  show?: Boolean;
82
- };
82
+ }>;
83
83
 
84
84
  }
85
85
 
86
- declare const optionAttrs: OptionAttrs & {
87
- title?: Boolean | VNodeRule & {
86
+ declare const optionAttrs: Partial<OptionAttrs & {
87
+ title?: Boolean | Partial<VNodeRule & {
88
88
  show?: Boolean;
89
89
  native?: Boolean;
90
90
  title: string;
91
- };
92
- };
91
+ }>;
92
+ }>;
93
93
 
94
94
  export interface CreatorAttrs {
95
95
  col(props: typeof optionAttrs.col): this;