@epic-designer/antd 1.1.0 → 1.1.2-beta.1
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/dist/chunks/button.cjs +1 -1
- package/dist/chunks/button.mjs +1 -1
- package/dist/chunks/form.cjs +5 -5
- package/dist/chunks/form.mjs +5 -5
- package/dist/chunks/modal.cjs +2 -2
- package/dist/chunks/modal.mjs +2 -2
- package/dist/chunks/tabPane.cjs +42 -0
- package/dist/chunks/tabPane.mjs +40 -0
- package/dist/chunks/tabs.cjs +65 -0
- package/dist/chunks/tabs.mjs +63 -0
- package/dist/chunks/uploadImage.cjs +1 -1
- package/dist/chunks/uploadImage.mjs +1 -1
- package/dist/index.cjs +679 -706
- package/dist/index.mjs +679 -706
- package/package.json +1 -2
- package/src/button/button.vue +1 -1
- package/src/button/index.ts +25 -25
- package/src/card/index.ts +9 -9
- package/src/cascader/cascader.vue +2 -2
- package/src/cascader/index.ts +41 -41
- package/src/checkbox/index.ts +16 -16
- package/src/col/index.ts +6 -3
- package/src/color-picker/index.ts +16 -16
- package/src/date-picker/index.ts +79 -79
- package/src/form/form.vue +5 -5
- package/src/form/index.ts +34 -34
- package/src/index.ts +7 -15
- package/src/input/index.ts +25 -25
- package/src/input-number/index.ts +36 -36
- package/src/modal/modal.vue +2 -2
- package/src/radio/index.ts +16 -16
- package/src/row/index.ts +18 -15
- package/src/select/index.ts +37 -38
- package/src/slider/index.ts +28 -28
- package/src/switch/index.ts +38 -38
- package/src/tab-pane/index.ts +22 -0
- package/src/tab-pane/tabPane.ts +43 -0
- package/src/tabs/index.ts +107 -0
- package/src/tabs/tabs.ts +69 -0
- package/src/textarea/index.ts +28 -28
- package/src/time-picker/index.ts +42 -42
- package/src/upload-file/index.ts +18 -18
- package/src/upload-image/index.ts +15 -15
- package/src/upload-image/uploadImage.vue +1 -1
- package/src/input-password/index.ts +0 -154
package/src/time-picker/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
attribute: [
|
|
8
8
|
{
|
|
9
9
|
field: 'field',
|
|
10
|
-
label: '
|
|
11
|
-
type: '
|
|
10
|
+
label: '数据字段',
|
|
11
|
+
type: 'EpField',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
field: 'label',
|
|
@@ -16,33 +16,35 @@ export default {
|
|
|
16
16
|
type: 'input',
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
field: '
|
|
19
|
+
field: 'props.defaultValue',
|
|
20
20
|
label: '默认值',
|
|
21
21
|
type: 'time',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
field: '
|
|
24
|
+
field: 'props.placeholder',
|
|
25
25
|
label: '占位内容',
|
|
26
26
|
type: 'input',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
field: 'props.format',
|
|
30
|
+
label: '显示格式',
|
|
31
|
+
props: {
|
|
30
32
|
placeholder: '请输入',
|
|
31
33
|
},
|
|
32
|
-
field: 'componentProps.format',
|
|
33
|
-
label: '显示格式',
|
|
34
34
|
type: 'input',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
|
|
37
|
+
field: 'props.valueFormat',
|
|
38
|
+
label: '数据格式',
|
|
39
|
+
props: {
|
|
38
40
|
placeholder: '请输入',
|
|
39
41
|
},
|
|
40
|
-
field: 'componentProps.valueFormat',
|
|
41
|
-
label: '数据格式',
|
|
42
42
|
type: 'input',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
|
|
45
|
+
field: 'props.size',
|
|
46
|
+
label: '尺寸',
|
|
47
|
+
props: {
|
|
46
48
|
allowClear: true,
|
|
47
49
|
options: [
|
|
48
50
|
{
|
|
@@ -60,36 +62,36 @@ export default {
|
|
|
60
62
|
],
|
|
61
63
|
placeholder: '请选择',
|
|
62
64
|
},
|
|
63
|
-
field: 'componentProps.size',
|
|
64
|
-
label: '尺寸',
|
|
65
65
|
type: 'select',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
|
|
68
|
+
field: 'props.hourStep',
|
|
69
|
+
label: '小时选项间隔',
|
|
70
|
+
props: {
|
|
69
71
|
placeholder: '请输入',
|
|
70
72
|
},
|
|
71
|
-
field: 'componentProps.hourStep',
|
|
72
|
-
label: '小时选项间隔',
|
|
73
73
|
type: 'number',
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
|
|
76
|
+
field: 'props.minuteStep',
|
|
77
|
+
label: '分钟选项间隔',
|
|
78
|
+
props: {
|
|
77
79
|
placeholder: '请输入',
|
|
78
80
|
},
|
|
79
|
-
field: 'componentProps.minuteStep',
|
|
80
|
-
label: '分钟选项间隔',
|
|
81
81
|
type: 'number',
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
|
|
84
|
+
field: 'props.secondStep',
|
|
85
|
+
label: '秒选项间隔',
|
|
86
|
+
props: {
|
|
85
87
|
placeholder: '请输入',
|
|
86
88
|
},
|
|
87
|
-
field: 'componentProps.secondStep',
|
|
88
|
-
label: '秒选项间隔',
|
|
89
89
|
type: 'number',
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
|
|
92
|
+
field: 'props.placement',
|
|
93
|
+
label: '弹出框位置',
|
|
94
|
+
props: {
|
|
93
95
|
allowClear: true,
|
|
94
96
|
options: [
|
|
95
97
|
{
|
|
@@ -111,52 +113,50 @@ export default {
|
|
|
111
113
|
],
|
|
112
114
|
placeholder: '请选择',
|
|
113
115
|
},
|
|
114
|
-
field: 'componentProps.placement',
|
|
115
|
-
label: '弹出框位置',
|
|
116
116
|
type: 'select',
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
changeSync: true,
|
|
120
|
-
field: '
|
|
120
|
+
field: 'props.use12Hours',
|
|
121
121
|
label: '12小时制',
|
|
122
122
|
onChange({ value, values }) {
|
|
123
|
-
values.
|
|
123
|
+
values.props.defaultValue = null;
|
|
124
124
|
if (value) {
|
|
125
|
-
values.
|
|
126
|
-
values.
|
|
125
|
+
values.props.format = 'h:mm:ss a';
|
|
126
|
+
values.props.valueFormat = 'h:mm:ss a';
|
|
127
127
|
} else {
|
|
128
|
-
values.
|
|
129
|
-
values.
|
|
128
|
+
values.props.format = 'HH:mm:ss';
|
|
129
|
+
values.props.valueFormat = 'HH:mm:ss';
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
type: 'switch',
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
|
|
135
|
+
field: 'props.bordered',
|
|
136
|
+
label: '无边框',
|
|
137
|
+
props: {
|
|
136
138
|
checkedValue: false,
|
|
137
139
|
unCheckedValue: true,
|
|
138
140
|
},
|
|
139
|
-
field: 'componentProps.bordered',
|
|
140
|
-
label: '无边框',
|
|
141
141
|
type: 'switch',
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
field: '
|
|
144
|
+
field: 'props.inputReadOnly',
|
|
145
145
|
label: '禁止键盘输入',
|
|
146
146
|
type: 'switch',
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
field: '
|
|
149
|
+
field: 'props.allowClear',
|
|
150
150
|
label: '可清空',
|
|
151
151
|
type: 'switch',
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
field: '
|
|
154
|
+
field: 'props.disabled',
|
|
155
155
|
label: '禁用',
|
|
156
156
|
type: 'switch',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
field: '
|
|
159
|
+
field: 'props.hidden',
|
|
160
160
|
label: '隐藏',
|
|
161
161
|
type: 'switch',
|
|
162
162
|
},
|
|
@@ -176,14 +176,14 @@ export default {
|
|
|
176
176
|
],
|
|
177
177
|
},
|
|
178
178
|
defaultSchema: {
|
|
179
|
-
|
|
179
|
+
field: 'time',
|
|
180
|
+
input: true,
|
|
181
|
+
label: '时间选择器',
|
|
182
|
+
props: {
|
|
180
183
|
format: 'HH:mm:ss',
|
|
181
184
|
placeholder: '请输入',
|
|
182
185
|
valueFormat: 'HH:mm:ss',
|
|
183
186
|
},
|
|
184
|
-
field: 'time',
|
|
185
|
-
input: true,
|
|
186
|
-
label: '时间选择器',
|
|
187
187
|
type: 'time',
|
|
188
188
|
},
|
|
189
189
|
groupName: '表单',
|
package/src/upload-file/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
attribute: [
|
|
8
8
|
{
|
|
9
9
|
field: 'field',
|
|
10
|
-
label: '
|
|
11
|
-
type: '
|
|
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: '
|
|
19
|
+
field: 'props.action',
|
|
20
20
|
label: '请求地址',
|
|
21
21
|
type: 'input',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
|
|
24
|
+
field: 'props.listType',
|
|
25
|
+
label: '列表样式',
|
|
26
|
+
props: {
|
|
25
27
|
allowClear: true,
|
|
26
28
|
options: [
|
|
27
29
|
{
|
|
@@ -35,53 +37,51 @@ export default {
|
|
|
35
37
|
],
|
|
36
38
|
placeholder: '请选择',
|
|
37
39
|
},
|
|
38
|
-
field: 'componentProps.listType',
|
|
39
|
-
label: '列表样式',
|
|
40
40
|
type: 'select',
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
field: '
|
|
43
|
+
field: 'props.multiple',
|
|
44
44
|
label: '多选',
|
|
45
45
|
type: 'switch',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
48
|
+
field: 'props.maxCount',
|
|
49
|
+
label: '允许上传最大数量',
|
|
50
|
+
props: {
|
|
49
51
|
min: 0,
|
|
50
52
|
placeholder: '请输入',
|
|
51
53
|
},
|
|
52
|
-
field: 'componentProps.maxCount',
|
|
53
|
-
label: '允许上传最大数量',
|
|
54
54
|
type: 'number',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
field: '
|
|
57
|
+
field: 'props.disabled',
|
|
58
58
|
label: '禁用',
|
|
59
59
|
type: 'switch',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
field: '
|
|
62
|
+
field: 'props.hidden',
|
|
63
63
|
label: '隐藏',
|
|
64
64
|
type: 'switch',
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
componentProps: {
|
|
68
|
-
ruleType: 'string',
|
|
69
|
-
},
|
|
70
67
|
description: '校验规则需要配合表单使用',
|
|
71
68
|
field: 'rules',
|
|
72
69
|
label: '表单校验',
|
|
73
70
|
layout: 'vertical',
|
|
71
|
+
props: {
|
|
72
|
+
ruleType: 'string',
|
|
73
|
+
},
|
|
74
74
|
type: 'ERuleEditor',
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
},
|
|
78
78
|
defaultSchema: {
|
|
79
|
-
componentProps: {
|
|
80
|
-
action: 'https://examples.epicjs.cn/epic-mock/common/upload',
|
|
81
|
-
},
|
|
82
79
|
field: 'uploadFile',
|
|
83
80
|
input: true,
|
|
84
81
|
label: '上传文件',
|
|
82
|
+
props: {
|
|
83
|
+
action: 'https://examples.epicjs.cn/epic-mock/common/upload',
|
|
84
|
+
},
|
|
85
85
|
type: 'upload-file',
|
|
86
86
|
},
|
|
87
87
|
groupName: '表单',
|
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
attribute: [
|
|
8
8
|
{
|
|
9
9
|
field: 'field',
|
|
10
|
-
label: '
|
|
11
|
-
type: '
|
|
10
|
+
label: '数据字段',
|
|
11
|
+
type: 'EpField',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
field: 'label',
|
|
@@ -16,53 +16,53 @@ export default {
|
|
|
16
16
|
type: 'input',
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
field: '
|
|
19
|
+
field: 'props.action',
|
|
20
20
|
label: '请求地址',
|
|
21
21
|
type: 'input',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
field: '
|
|
24
|
+
field: 'props.multiple',
|
|
25
25
|
label: '多选',
|
|
26
26
|
type: 'switch',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
field: 'props.maxCount',
|
|
30
|
+
label: '允许上传最大数量',
|
|
31
|
+
props: {
|
|
30
32
|
min: 0,
|
|
31
33
|
placeholder: '请输入',
|
|
32
34
|
},
|
|
33
|
-
field: 'componentProps.maxCount',
|
|
34
|
-
label: '允许上传最大数量',
|
|
35
35
|
type: 'number',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
field: '
|
|
38
|
+
field: 'props.disabled',
|
|
39
39
|
label: '禁用',
|
|
40
40
|
type: 'switch',
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
field: '
|
|
43
|
+
field: 'props.hidden',
|
|
44
44
|
label: '隐藏',
|
|
45
45
|
type: 'switch',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
componentProps: {
|
|
49
|
-
ruleType: 'string',
|
|
50
|
-
},
|
|
51
48
|
description: '校验规则需要配合表单使用',
|
|
52
49
|
field: 'rules',
|
|
53
50
|
label: '表单校验',
|
|
54
51
|
layout: 'vertical',
|
|
52
|
+
props: {
|
|
53
|
+
ruleType: 'string',
|
|
54
|
+
},
|
|
55
55
|
type: 'ERuleEditor',
|
|
56
56
|
},
|
|
57
57
|
],
|
|
58
58
|
},
|
|
59
59
|
defaultSchema: {
|
|
60
|
-
componentProps: {
|
|
61
|
-
action: 'https://examples.epicjs.cn/epic-mock/common/upload',
|
|
62
|
-
},
|
|
63
60
|
field: 'uploadImage',
|
|
64
61
|
input: true,
|
|
65
62
|
label: '上传图片',
|
|
63
|
+
props: {
|
|
64
|
+
action: 'https://examples.epicjs.cn/epic-mock/common/upload',
|
|
65
|
+
},
|
|
66
66
|
type: 'upload-image',
|
|
67
67
|
},
|
|
68
68
|
groupName: '表单',
|
|
@@ -149,7 +149,7 @@ function previewError(): void {
|
|
|
149
149
|
<Upload v-bind="getUploadProps">
|
|
150
150
|
<div v-if="(fileList?.length ?? 0) < props.maxCount">
|
|
151
151
|
<span
|
|
152
|
-
class="icon--epic icon--epic--cloud-upload-outlined mr-2px text-$
|
|
152
|
+
class="icon--epic icon--epic--cloud-upload-outlined mr-2px text-$ep-text-main text-lg"
|
|
153
153
|
></span>
|
|
154
154
|
<div class="ant-upload-text">点击上传</div>
|
|
155
155
|
</div>
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import type { ComponentConfigModel } from '@epic-designer/types';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
bindModel: 'value',
|
|
5
|
-
component: async () => (await import('ant-design-vue')).InputPassword,
|
|
6
|
-
config: {
|
|
7
|
-
action: [
|
|
8
|
-
{
|
|
9
|
-
description: '使 input 获取焦点',
|
|
10
|
-
type: 'focus',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
description: '使 input 失去焦点',
|
|
14
|
-
type: 'blur',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
description: '选中 input 中的文字',
|
|
18
|
-
type: 'select',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
attribute: [
|
|
22
|
-
{
|
|
23
|
-
field: 'field',
|
|
24
|
-
label: '字段名',
|
|
25
|
-
type: 'input',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
field: 'label',
|
|
29
|
-
label: '标题',
|
|
30
|
-
type: 'input',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
field: 'componentProps.placeholder',
|
|
34
|
-
label: '占位内容',
|
|
35
|
-
type: 'input',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
componentProps: {
|
|
39
|
-
allowClear: true,
|
|
40
|
-
options: [
|
|
41
|
-
{
|
|
42
|
-
label: '大号',
|
|
43
|
-
value: 'large',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: '中等',
|
|
47
|
-
value: 'middle',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: '小型',
|
|
51
|
-
value: 'small',
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
placeholder: '请选择',
|
|
55
|
-
},
|
|
56
|
-
field: 'componentProps.size',
|
|
57
|
-
label: '尺寸',
|
|
58
|
-
type: 'select',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
componentProps: {
|
|
62
|
-
checkedValue: false,
|
|
63
|
-
unCheckedValue: true,
|
|
64
|
-
},
|
|
65
|
-
field: 'componentProps.bordered',
|
|
66
|
-
label: '无边框',
|
|
67
|
-
type: 'switch',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
componentProps: {
|
|
71
|
-
placeholder: '请输入',
|
|
72
|
-
},
|
|
73
|
-
field: 'componentProps.maxLength',
|
|
74
|
-
label: '最大输入长度',
|
|
75
|
-
type: 'number',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
field: 'componentProps.showCount',
|
|
79
|
-
label: '统计字数',
|
|
80
|
-
type: 'switch',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
field: 'componentProps.visible',
|
|
84
|
-
label: '密码可见',
|
|
85
|
-
type: 'switch',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
componentProps: {
|
|
89
|
-
checkedValue: false,
|
|
90
|
-
unCheckedValue: true,
|
|
91
|
-
},
|
|
92
|
-
field: 'componentProps.visibilityToggle',
|
|
93
|
-
label: '隐藏切换按钮',
|
|
94
|
-
type: 'switch',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
field: 'componentProps.allowClear',
|
|
98
|
-
label: '可清空',
|
|
99
|
-
type: 'switch',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
field: 'componentProps.disabled',
|
|
103
|
-
label: '禁用',
|
|
104
|
-
type: 'switch',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
field: 'componentProps.hidden',
|
|
108
|
-
label: '隐藏',
|
|
109
|
-
type: 'switch',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
description: '校验规则需要配合表单使用',
|
|
113
|
-
field: 'rules',
|
|
114
|
-
label: '表单校验',
|
|
115
|
-
layout: 'vertical',
|
|
116
|
-
type: 'ERuleEditor',
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
event: [
|
|
120
|
-
{
|
|
121
|
-
description: '输入值',
|
|
122
|
-
type: 'input',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
description: '值修改',
|
|
126
|
-
type: 'change',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
description: '按下回车的回调',
|
|
130
|
-
type: 'pressEnter',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
description: '获取焦点',
|
|
134
|
-
type: 'focus',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
description: '失去焦点',
|
|
138
|
-
type: 'blur',
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
},
|
|
142
|
-
defaultSchema: {
|
|
143
|
-
componentProps: {
|
|
144
|
-
placeholder: '请输入',
|
|
145
|
-
},
|
|
146
|
-
field: 'password',
|
|
147
|
-
input: true,
|
|
148
|
-
label: '密码输入框',
|
|
149
|
-
type: 'password',
|
|
150
|
-
},
|
|
151
|
-
groupName: '表单',
|
|
152
|
-
icon: 'icon--epic--lock-outline',
|
|
153
|
-
sort: 720,
|
|
154
|
-
} as ComponentConfigModel;
|