@epic-designer/antd 1.1.0-beta.0 → 1.1.2-beta.0

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 (45) hide show
  1. package/dist/chunks/button.cjs +1 -1
  2. package/dist/chunks/button.mjs +1 -1
  3. package/dist/chunks/form.cjs +5 -5
  4. package/dist/chunks/form.mjs +5 -5
  5. package/dist/chunks/modal.cjs +2 -2
  6. package/dist/chunks/modal.mjs +2 -2
  7. package/dist/chunks/tabPane.cjs +42 -0
  8. package/dist/chunks/tabPane.mjs +40 -0
  9. package/dist/chunks/tabs.cjs +65 -0
  10. package/dist/chunks/tabs.mjs +63 -0
  11. package/dist/chunks/uploadImage.cjs +1 -1
  12. package/dist/chunks/uploadImage.mjs +1 -1
  13. package/dist/index.cjs +679 -706
  14. package/dist/index.mjs +679 -706
  15. package/package.json +1 -2
  16. package/src/button/button.vue +1 -1
  17. package/src/button/index.ts +25 -25
  18. package/src/card/index.ts +9 -9
  19. package/src/cascader/cascader.vue +2 -2
  20. package/src/cascader/index.ts +41 -41
  21. package/src/checkbox/index.ts +16 -16
  22. package/src/col/index.ts +6 -3
  23. package/src/color-picker/index.ts +16 -16
  24. package/src/date-picker/index.ts +79 -79
  25. package/src/form/form.vue +5 -5
  26. package/src/form/index.ts +34 -34
  27. package/src/index.ts +7 -15
  28. package/src/input/index.ts +25 -25
  29. package/src/input-number/index.ts +36 -36
  30. package/src/modal/modal.vue +2 -2
  31. package/src/radio/index.ts +16 -16
  32. package/src/row/index.ts +18 -15
  33. package/src/select/index.ts +37 -38
  34. package/src/slider/index.ts +28 -28
  35. package/src/switch/index.ts +38 -38
  36. package/src/tab-pane/index.ts +22 -0
  37. package/src/tab-pane/tabPane.ts +43 -0
  38. package/src/tabs/index.ts +107 -0
  39. package/src/tabs/tabs.ts +69 -0
  40. package/src/textarea/index.ts +28 -28
  41. package/src/time-picker/index.ts +42 -42
  42. package/src/upload-file/index.ts +18 -18
  43. package/src/upload-image/index.ts +15 -15
  44. package/src/upload-image/uploadImage.vue +1 -1
  45. package/src/input-password/index.ts +0 -154
@@ -21,8 +21,8 @@ export default {
21
21
  attribute: [
22
22
  {
23
23
  field: 'field',
24
- label: '字段名',
25
- type: 'input',
24
+ label: '数据字段',
25
+ type: 'EpField',
26
26
  },
27
27
  {
28
28
  field: 'label',
@@ -30,21 +30,23 @@ export default {
30
30
  type: 'input',
31
31
  },
32
32
  {
33
- componentProps: {
33
+ field: 'props.defaultValue',
34
+ label: '默认值',
35
+ props: {
34
36
  placeholder: '请输入',
35
37
  size: 'middle',
36
38
  },
37
- field: 'componentProps.defaultValue',
38
- label: '默认值',
39
39
  type: 'number',
40
40
  },
41
41
  {
42
- field: 'componentProps.placeholder',
42
+ field: 'props.placeholder',
43
43
  label: '占位内容',
44
44
  type: 'input',
45
45
  },
46
46
  {
47
- componentProps: {
47
+ field: 'props.size',
48
+ label: '尺寸',
49
+ props: {
48
50
  allowClear: true,
49
51
  options: [
50
52
  {
@@ -62,84 +64,82 @@ export default {
62
64
  ],
63
65
  placeholder: '请选择',
64
66
  },
65
- field: 'componentProps.size',
66
- label: '尺寸',
67
67
  type: 'select',
68
68
  },
69
69
  {
70
- field: 'componentProps.keyboard',
70
+ field: 'props.keyboard',
71
71
  label: '键盘快捷行为',
72
72
  type: 'switch',
73
73
  },
74
74
  {
75
- componentProps: {
75
+ field: 'props.max',
76
+ label: '最大值',
77
+ props: {
76
78
  placeholder: '请输入',
77
79
  },
78
- field: 'componentProps.max',
79
- label: '最大值',
80
80
  type: 'number',
81
81
  },
82
82
  {
83
- componentProps: {
83
+ field: 'props.min',
84
+ label: '最小值',
85
+ props: {
84
86
  placeholder: '请输入',
85
87
  },
86
- field: 'componentProps.min',
87
- label: '最小值',
88
88
  type: 'number',
89
89
  },
90
90
  {
91
- componentProps: {
91
+ field: 'props.precision',
92
+ label: '精度',
93
+ props: {
92
94
  placeholder: '请输入',
93
95
  },
94
- field: 'componentProps.precision',
95
- label: '精度',
96
96
  type: 'number',
97
97
  },
98
98
  {
99
- componentProps: {
99
+ field: 'props.step',
100
+ label: '步长',
101
+ props: {
100
102
  placeholder: '请输入',
101
103
  },
102
- field: 'componentProps.step',
103
- label: '步长',
104
104
  type: 'number',
105
105
  },
106
106
  {
107
- field: 'componentProps.stringMode',
107
+ field: 'props.stringMode',
108
108
  label: '字符模式',
109
109
  type: 'switch',
110
110
  },
111
111
  {
112
- componentProps: {
112
+ field: 'props.bordered',
113
+ label: '无边框',
114
+ props: {
113
115
  checkedValue: false,
114
116
  unCheckedValue: true,
115
117
  },
116
- field: 'componentProps.bordered',
117
- label: '无边框',
118
118
  type: 'switch',
119
119
  },
120
120
  {
121
- field: 'componentProps.allowClear',
121
+ field: 'props.allowClear',
122
122
  label: '可清空',
123
123
  type: 'switch',
124
124
  },
125
125
  {
126
- field: 'componentProps.disabled',
126
+ field: 'props.disabled',
127
127
  label: '禁用',
128
128
  type: 'switch',
129
129
  },
130
130
  {
131
- field: 'componentProps.hidden',
131
+ field: 'props.hidden',
132
132
  label: '隐藏',
133
133
  type: 'switch',
134
134
  },
135
135
  {
136
- componentProps: {
137
- ruleType: 'number',
138
- },
139
136
  description: '校验规则需要配合表单使用',
140
137
  field: 'rules',
141
138
  label: '表单校验',
142
139
  layout: 'vertical',
140
+ props: {
141
+ ruleType: 'number',
142
+ },
143
143
  type: 'ERuleEditor',
144
144
  },
145
145
  ],
@@ -167,13 +167,13 @@ export default {
167
167
  ],
168
168
  },
169
169
  defaultSchema: {
170
- componentProps: {
171
- placeholder: '请输入',
172
- style: { width: '100%' },
173
- },
174
170
  field: 'number',
175
171
  input: true,
176
172
  label: '数字输入框',
173
+ props: {
174
+ placeholder: '请输入',
175
+ style: { width: '100%' },
176
+ },
177
177
  type: 'number',
178
178
  },
179
179
  groupName: '表单',
@@ -42,7 +42,7 @@ const bodyStyle = {
42
42
  padding: 0,
43
43
  };
44
44
 
45
- const getComponentProps = computed<Record<string, any>>(() => ({
45
+ const getprops = computed<Record<string, any>>(() => ({
46
46
  ...props.componentSchema,
47
47
  ...attrs,
48
48
  bodyStyle,
@@ -74,7 +74,7 @@ function handleClose() {
74
74
  </script>
75
75
 
76
76
  <template>
77
- <Modal v-bind="getComponentProps">
77
+ <Modal v-bind="getprops">
78
78
  <div class="epic-modal-main epic-scoped">
79
79
  <slot>
80
80
  <slot name="edit-node">
@@ -7,8 +7,8 @@ export default {
7
7
  attribute: [
8
8
  {
9
9
  field: 'field',
10
- label: '字段名',
11
- type: 'input',
10
+ label: '数据字段',
11
+ type: 'EpField',
12
12
  },
13
13
  {
14
14
  field: 'label',
@@ -16,12 +16,14 @@ export default {
16
16
  type: 'input',
17
17
  },
18
18
  {
19
- field: 'componentProps.defaultValue',
19
+ field: 'props.defaultValue',
20
20
  label: '默认值',
21
21
  type: 'radio',
22
22
  },
23
23
  {
24
- componentProps: {
24
+ field: 'props.size',
25
+ label: '尺寸',
26
+ props: {
25
27
  allowClear: true,
26
28
  options: [
27
29
  {
@@ -39,31 +41,29 @@ export default {
39
41
  ],
40
42
  placeholder: '请选择',
41
43
  },
42
- field: 'componentProps.size',
43
- label: '尺寸',
44
44
  type: 'select',
45
45
  },
46
46
  {
47
- componentProps: {
47
+ field: 'props.optionType',
48
+ label: '按钮样式',
49
+ props: {
48
50
  checkedValue: 'button',
49
51
  unCheckedValue: 'default',
50
52
  },
51
- field: 'componentProps.optionType',
52
- label: '按钮样式',
53
53
  type: 'switch',
54
54
  },
55
55
  {
56
- field: 'componentProps.disabled',
56
+ field: 'props.disabled',
57
57
  label: '禁用',
58
58
  type: 'switch',
59
59
  },
60
60
  {
61
- field: 'componentProps.hidden',
61
+ field: 'props.hidden',
62
62
  label: '隐藏',
63
63
  type: 'switch',
64
64
  },
65
65
  {
66
- field: 'componentProps.options',
66
+ field: 'props.options',
67
67
  label: '选项管理',
68
68
  layout: 'vertical',
69
69
  type: 'EOptionsEditor',
@@ -84,7 +84,10 @@ export default {
84
84
  ],
85
85
  },
86
86
  defaultSchema: {
87
- componentProps: {
87
+ field: 'radio',
88
+ input: true,
89
+ label: '单选框',
90
+ props: {
88
91
  options: [
89
92
  {
90
93
  label: '选项1',
@@ -96,9 +99,6 @@ export default {
96
99
  },
97
100
  ],
98
101
  },
99
- field: 'radio',
100
- input: true,
101
- label: '单选框',
102
102
  type: 'radio',
103
103
  },
104
104
  groupName: '表单',
package/src/row/index.ts CHANGED
@@ -5,7 +5,9 @@ export default {
5
5
  config: {
6
6
  attribute: [
7
7
  {
8
- componentProps: {
8
+ field: 'props.align',
9
+ label: '垂直对齐方式',
10
+ props: {
9
11
  options: [
10
12
  {
11
13
  label: 'top',
@@ -23,12 +25,12 @@ export default {
23
25
  placeholder: '请选择',
24
26
  style: { width: '100%' },
25
27
  },
26
- field: 'componentProps.align',
27
- label: '垂直对齐方式',
28
28
  type: 'select',
29
29
  },
30
30
  {
31
- componentProps: {
31
+ field: 'props.justify',
32
+ label: '水平排列方式',
33
+ props: {
32
34
  options: [
33
35
  {
34
36
  label: 'start',
@@ -54,16 +56,14 @@ export default {
54
56
  placeholder: '请选择',
55
57
  style: { width: '100%' },
56
58
  },
57
- field: 'componentProps.justify',
58
- label: '水平排列方式',
59
59
  type: 'select',
60
60
  },
61
61
  {
62
- componentProps: {
62
+ field: 'props.gutter',
63
+ label: '栅格间距',
64
+ props: {
63
65
  placeholder: '请输入',
64
66
  },
65
- field: 'componentProps.gutter',
66
- label: '栅格间距',
67
67
  type: 'input',
68
68
  },
69
69
  {
@@ -72,16 +72,16 @@ export default {
72
72
  type: 'EColEditor',
73
73
  },
74
74
  {
75
- componentProps: {
75
+ field: 'props.wrap',
76
+ label: '不自动换行',
77
+ props: {
76
78
  checkedValue: false,
77
79
  unCheckedValue: true,
78
80
  },
79
- field: 'componentProps.wrap',
80
- label: '不自动换行',
81
81
  type: 'switch',
82
82
  },
83
83
  {
84
- field: 'componentProps.hidden',
84
+ field: 'props.hidden',
85
85
  label: '隐藏',
86
86
  type: 'switch',
87
87
  },
@@ -89,19 +89,22 @@ export default {
89
89
  },
90
90
  defaultSchema: {
91
91
  label: '栅格布局',
92
+ props: {
93
+ gutter: 12,
94
+ },
92
95
  type: 'row',
93
96
  children: [
94
97
  {
95
98
  type: 'col',
96
99
  children: [],
97
- componentProps: {
100
+ props: {
98
101
  span: 12,
99
102
  },
100
103
  },
101
104
  {
102
105
  type: 'col',
103
106
  children: [],
104
- componentProps: {
107
+ props: {
105
108
  span: 12,
106
109
  },
107
110
  },
@@ -21,8 +21,8 @@ export default {
21
21
  attribute: [
22
22
  {
23
23
  field: 'field',
24
- label: '字段名',
25
- type: 'input',
24
+ label: '数据字段',
25
+ type: 'EpField',
26
26
  },
27
27
  {
28
28
  field: 'label',
@@ -30,20 +30,22 @@ export default {
30
30
  type: 'input',
31
31
  },
32
32
  {
33
- componentProps: {
33
+ field: 'props.placeholder',
34
+ label: '占位内容',
35
+ props: {
34
36
  placeholder: '请输入',
35
37
  },
36
- field: 'componentProps.placeholder',
37
- label: '占位内容',
38
38
  type: 'input',
39
39
  },
40
40
  {
41
- field: 'componentProps.defaultValue',
41
+ field: 'props.defaultValue',
42
42
  label: '默认值',
43
43
  type: 'select',
44
44
  },
45
45
  {
46
- componentProps: {
46
+ field: 'props.size',
47
+ label: '尺寸',
48
+ props: {
47
49
  allowClear: true,
48
50
  options: [
49
51
  {
@@ -61,21 +63,21 @@ export default {
61
63
  ],
62
64
  placeholder: '请选择',
63
65
  },
64
- field: 'componentProps.size',
65
- label: '尺寸',
66
66
  type: 'select',
67
67
  },
68
68
 
69
69
  {
70
- componentProps: {
70
+ field: 'props.listHeight',
71
+ label: '弹窗高度',
72
+ props: {
71
73
  placeholder: '请输入',
72
74
  },
73
- field: 'componentProps.listHeight',
74
- label: '弹窗高度',
75
75
  type: 'number',
76
76
  },
77
77
  {
78
- componentProps: {
78
+ field: 'props.mode',
79
+ label: '模式',
80
+ props: {
79
81
  allowClear: true,
80
82
  options: [
81
83
  {
@@ -93,36 +95,35 @@ export default {
93
95
  ],
94
96
  placeholder: '请选择',
95
97
  },
96
- field: 'componentProps.mode',
97
- label: '模式',
98
98
  type: 'select',
99
99
  },
100
100
  {
101
- field: 'componentProps.showSearch',
101
+ field: 'props.showSearch',
102
102
  label: '可搜索',
103
103
  type: 'switch',
104
104
  },
105
105
  {
106
- field: 'componentProps.autoClearSearchValue',
106
+ field: 'props.autoClearSearchValue',
107
107
  label: '选中选项后清空搜索框',
108
- show: ({ values }) =>
109
- values.componentProps.mode && values.componentProps.showSearch,
108
+ show: ({ values }) => values.props.mode && values.props.showSearch,
110
109
  type: 'switch',
111
110
  },
112
111
  {
113
- field: 'componentProps.maxTagTextLength',
112
+ field: 'props.maxTagTextLength',
114
113
  label: '最大tag文本长度',
115
- show: ({ values }) => values.componentProps.mode,
114
+ show: ({ values }) => values.props.mode,
116
115
  type: 'number',
117
116
  },
118
117
  {
119
- field: 'componentProps.maxTagCount',
118
+ field: 'props.maxTagCount',
120
119
  label: '最大tag显示数',
121
- show: ({ values }) => values.componentProps.mode,
120
+ show: ({ values }) => values.props.mode,
122
121
  type: 'number',
123
122
  },
124
123
  {
125
- componentProps: {
124
+ field: 'props.placement',
125
+ label: '弹出框位置',
126
+ props: {
126
127
  allowClear: true,
127
128
  options: [
128
129
  {
@@ -144,41 +145,39 @@ export default {
144
145
  ],
145
146
  placeholder: '请选择',
146
147
  },
147
- field: 'componentProps.placement',
148
- label: '弹出框位置',
149
148
  type: 'select',
150
149
  },
151
150
  {
152
- componentProps: {
151
+ field: 'props.bordered',
152
+ label: '无边框',
153
+ props: {
153
154
  checkedValue: false,
154
155
  unCheckedValue: true,
155
156
  },
156
- field: 'componentProps.bordered',
157
- label: '无边框',
158
157
  type: 'switch',
159
158
  },
160
159
  {
161
- field: 'componentProps.allowClear',
160
+ field: 'props.allowClear',
162
161
  label: '可清空',
163
162
  type: 'switch',
164
163
  },
165
164
  {
166
- field: 'componentProps.labelInValue',
165
+ field: 'props.labelInValue',
167
166
  label: 'labelInValue',
168
167
  type: 'switch',
169
168
  },
170
169
  {
171
- field: 'componentProps.disabled',
170
+ field: 'props.disabled',
172
171
  label: '禁用',
173
172
  type: 'switch',
174
173
  },
175
174
  {
176
- field: 'componentProps.hidden',
175
+ field: 'props.hidden',
177
176
  label: '隐藏',
178
177
  type: 'switch',
179
178
  },
180
179
  {
181
- field: 'componentProps.options',
180
+ field: 'props.options',
182
181
  label: '选项管理',
183
182
  layout: 'vertical',
184
183
  type: 'EOptionsEditor',
@@ -207,7 +206,10 @@ export default {
207
206
  ],
208
207
  },
209
208
  defaultSchema: {
210
- componentProps: {
209
+ field: 'select',
210
+ input: true,
211
+ label: '选择框',
212
+ props: {
211
213
  options: [
212
214
  {
213
215
  label: '选项1',
@@ -220,9 +222,6 @@ export default {
220
222
  ],
221
223
  placeholder: '请选择',
222
224
  },
223
- field: 'select',
224
- input: true,
225
- label: '选择框',
226
225
  type: 'select',
227
226
  },
228
227
  groupName: '表单',
@@ -7,8 +7,8 @@ export default {
7
7
  attribute: [
8
8
  {
9
9
  field: 'field',
10
- label: '字段名',
11
- type: 'input',
10
+ label: '数据字段',
11
+ type: 'EpField',
12
12
  },
13
13
  {
14
14
  field: 'label',
@@ -16,17 +16,19 @@ export default {
16
16
  type: 'input',
17
17
  },
18
18
  {
19
- componentProps: {
19
+ field: 'props.defaultValue',
20
+ label: '默认值',
21
+ props: {
20
22
  style: {
21
23
  width: '100%',
22
24
  },
23
25
  },
24
- field: 'componentProps.defaultValue',
25
- label: '默认值',
26
26
  type: 'slider',
27
27
  },
28
28
  {
29
- componentProps: {
29
+ field: 'props.size',
30
+ label: '尺寸',
31
+ props: {
30
32
  allowClear: true,
31
33
  options: [
32
34
  {
@@ -44,81 +46,79 @@ export default {
44
46
  ],
45
47
  placeholder: '请选择',
46
48
  },
47
- field: 'componentProps.size',
48
- label: '尺寸',
49
49
  type: 'select',
50
50
  },
51
51
  {
52
52
  changeSync: true,
53
- field: 'componentProps.range',
53
+ field: 'props.range',
54
54
  label: '范围选择',
55
55
  onChange: ({ value, values }) => {
56
- values.componentProps.defaultValue = value ? [0, 100] : 0;
56
+ values.props.defaultValue = value ? [0, 100] : 0;
57
57
  },
58
58
  type: 'switch',
59
59
  },
60
60
  {
61
- field: 'componentProps.reverse',
61
+ field: 'props.reverse',
62
62
  label: '倒转轨道',
63
63
  type: 'switch',
64
64
  },
65
65
  {
66
- componentProps: {
66
+ field: 'props.step',
67
+ label: '步长',
68
+ props: {
67
69
  placeholder: '请输入',
68
70
  },
69
- field: 'componentProps.step',
70
- label: '步长',
71
71
  type: 'number',
72
72
  },
73
73
  {
74
- componentProps: {
74
+ field: 'props.min',
75
+ label: '最小值',
76
+ props: {
75
77
  placeholder: '请输入',
76
78
  },
77
- field: 'componentProps.min',
78
- label: '最小值',
79
79
  type: 'number',
80
80
  },
81
81
  {
82
- componentProps: {
82
+ field: 'props.max',
83
+ label: '最大值',
84
+ props: {
83
85
  placeholder: '请输入',
84
86
  },
85
- field: 'componentProps.max',
86
- label: '最大值',
87
87
  type: 'number',
88
88
  },
89
89
  {
90
- field: 'componentProps.vertical',
90
+ field: 'props.vertical',
91
91
  label: '垂直模式',
92
92
  type: 'switch',
93
93
  },
94
94
  {
95
- field: 'componentProps.dots',
95
+ field: 'props.dots',
96
96
  label: '显示刻度',
97
97
  type: 'switch',
98
98
  },
99
99
  // {
100
100
  // label: "持续显示提示",
101
101
  // type: "switch",
102
- // field: "componentProps.tooltipOpen",
102
+ // field: "props.tooltipOpen",
103
103
  // },
104
104
  {
105
- field: 'componentProps.disabled',
105
+ field: 'props.disabled',
106
106
  label: '禁用',
107
107
  type: 'switch',
108
108
  },
109
109
  {
110
- field: 'componentProps.hidden',
110
+ field: 'props.hidden',
111
111
  label: '隐藏',
112
112
  type: 'switch',
113
113
  },
114
114
  {
115
- componentProps: {
116
- ruleType: 'number',
117
- },
118
115
  description: '校验规则需要配合表单使用',
119
116
  field: 'rules',
120
117
  label: '表单校验',
121
118
  layout: 'vertical',
119
+ props: {
120
+ ruleType: 'number',
121
+ },
122
122
  type: 'ERuleEditor',
123
123
  },
124
124
  ],