@tmagic/form 1.8.0-beta.7 → 1.8.0-manmanyu.10
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/es/Form.vue_vue_type_script_setup_true_lang.js +45 -6
- package/dist/es/FormBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/FormDialog.vue_vue_type_script_setup_true_lang.js +13 -6
- package/dist/es/FormDrawer.vue_vue_type_script_setup_true_lang.js +38 -13
- package/dist/es/containers/Col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Container.vue_vue_type_script_setup_true_lang.js +22 -17
- package/dist/es/containers/Fieldset.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/FlexLayout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/FormLabel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/GroupList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/GroupListItem.vue_vue_type_script_setup_true_lang.js +23 -19
- package/dist/es/containers/Panel.vue_vue_type_script_setup_true_lang.js +17 -11
- package/dist/es/containers/Row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/ActionsColumn.vue_vue_type_script_setup_true_lang.js +14 -7
- package/dist/es/containers/table/SortColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/Table.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/useTableColumns.js +5 -2
- package/dist/es/containers/table-group-list/TableGroupList.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/es/fields/Cascader.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Checkbox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/ColorPicker.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Date.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DateTime.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Daterange.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Display.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DynamicField.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Hidden.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Link.vue_vue_type_script_setup_true_lang.js +30 -8
- package/dist/es/fields/Number.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/NumberRange.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/RadioGroup.vue_vue_type_script_setup_true_lang.js +17 -9
- package/dist/es/fields/Select.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Switch.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Text.vue_vue_type_script_setup_true_lang.js +113 -78
- package/dist/es/fields/Textarea.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Time.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/Timerange.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/plugin.js +2 -0
- package/dist/es/style.css +120 -8
- package/dist/es/utils/form.js +2 -2
- package/dist/style.css +120 -8
- package/dist/themes/magic-admin.css +494 -0
- package/dist/tmagic-form.umd.cjs +1850 -1640
- package/package.json +5 -5
- package/src/Form.vue +53 -4
- package/src/FormDialog.vue +14 -3
- package/src/FormDrawer.vue +40 -12
- package/src/containers/Container.vue +14 -5
- package/src/containers/GroupListItem.vue +14 -12
- package/src/containers/Panel.vue +10 -3
- package/src/containers/table/ActionsColumn.vue +10 -4
- package/src/containers/table/useTableColumns.ts +8 -2
- package/src/containers/table-group-list/TableGroupList.vue +7 -1
- package/src/fields/Link.vue +17 -3
- package/src/fields/RadioGroup.vue +11 -5
- package/src/fields/Text.vue +43 -19
- package/src/plugin.ts +2 -0
- package/src/theme/container.scss +3 -0
- package/src/theme/fieldset.scss +50 -0
- package/src/theme/form.scss +6 -0
- package/src/theme/group-list.scss +8 -7
- package/src/theme/index.scss +1 -0
- package/src/theme/link.scss +17 -0
- package/src/theme/panel.scss +1 -1
- package/src/theme/radio-group.scss +23 -0
- package/src/theme/tabs.scss +2 -2
- package/src/theme/text.scss +38 -0
- package/src/theme/themes/magic-admin/index.scss +91 -0
- package/types/index.d.ts +46 -1
package/dist/style.css
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
.m-form-container .tmagic-design-form-item.show-before-diff {
|
|
17
17
|
background: #f7dadd;
|
|
18
18
|
}
|
|
19
|
+
.m-form-container .m-form-title-extra {
|
|
20
|
+
margin-left: 8px;
|
|
21
|
+
}
|
|
19
22
|
|
|
20
23
|
.m-form-dialog .el-dialog__body {
|
|
21
24
|
padding: 0 !important;
|
|
@@ -76,6 +79,10 @@
|
|
|
76
79
|
margin-bottom: var(--td-comp-margin-xxl);
|
|
77
80
|
}
|
|
78
81
|
|
|
82
|
+
.m-form-container .m-form-container-expand {
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
79
86
|
.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
|
|
80
87
|
display: none;
|
|
81
88
|
}
|
|
@@ -85,6 +92,24 @@
|
|
|
85
92
|
align-items: center;
|
|
86
93
|
width: 100%;
|
|
87
94
|
}
|
|
95
|
+
.m-fields-text--static {
|
|
96
|
+
gap: 6px;
|
|
97
|
+
min-height: 32px;
|
|
98
|
+
}
|
|
99
|
+
.m-fields-text--static .m-fields-text__prepend {
|
|
100
|
+
color: var(--el-text-color-secondary, #909399);
|
|
101
|
+
}
|
|
102
|
+
.m-fields-text--static .m-fields-text__value {
|
|
103
|
+
color: var(--el-text-color-regular, #606266);
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
.m-fields-text--static .m-fields-text__icon {
|
|
109
|
+
width: 16px;
|
|
110
|
+
height: 16px;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
88
113
|
|
|
89
114
|
.m-form-validate__warning {
|
|
90
115
|
color: var(--el-color-warning);
|
|
@@ -110,6 +135,16 @@
|
|
|
110
135
|
outline: none;
|
|
111
136
|
}
|
|
112
137
|
|
|
138
|
+
.m-container-text.m-fields-title-container .tmagic-design-form-item .el-form-item__label {
|
|
139
|
+
color: #0f1113;
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
font-size: 16px;
|
|
142
|
+
}
|
|
143
|
+
.m-container-text.m-fields-title-container .tmagic-design-form-item {
|
|
144
|
+
line-height: 24px;
|
|
145
|
+
margin-bottom: 16px;
|
|
146
|
+
}
|
|
147
|
+
|
|
113
148
|
.tmagic-form-text-popper[data-popper-placement^=top] > .tmagic-form-text-popper-arrow {
|
|
114
149
|
bottom: -4px;
|
|
115
150
|
}
|
|
@@ -148,6 +183,65 @@ div.m-fields-link {
|
|
|
148
183
|
width: fit-content;
|
|
149
184
|
}
|
|
150
185
|
|
|
186
|
+
a.magic-admin-link {
|
|
187
|
+
width: 100%;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
border-radius: 4px;
|
|
190
|
+
border: 1px solid #e6e6e6;
|
|
191
|
+
background-color: #fafafa;
|
|
192
|
+
padding: 0 8px;
|
|
193
|
+
height: 28px;
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
gap: 4px;
|
|
196
|
+
align-items: center;
|
|
197
|
+
text-decoration: none;
|
|
198
|
+
}
|
|
199
|
+
a.magic-admin-link i {
|
|
200
|
+
margin-right: 4px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.m-container-fieldset.no-border-fieldset.fieldset-in-row > fieldset.m-fieldset legend {
|
|
204
|
+
left: 0;
|
|
205
|
+
}
|
|
206
|
+
.m-container-fieldset.no-border-fieldset > fieldset.m-fieldset {
|
|
207
|
+
border: 0;
|
|
208
|
+
}
|
|
209
|
+
.m-container-fieldset.no-border-fieldset > fieldset.m-fieldset legend {
|
|
210
|
+
position: relative;
|
|
211
|
+
left: -5px;
|
|
212
|
+
font-size: 16px;
|
|
213
|
+
font-weight: 500;
|
|
214
|
+
line-height: 24px;
|
|
215
|
+
padding: 0;
|
|
216
|
+
}
|
|
217
|
+
.m-container-fieldset.fieldset-in-card-fit {
|
|
218
|
+
border-bottom: 1px solid #e6e6e6;
|
|
219
|
+
}
|
|
220
|
+
.m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset {
|
|
221
|
+
padding: 16px 0 16px 0 !important;
|
|
222
|
+
border: 0;
|
|
223
|
+
margin-top: 0;
|
|
224
|
+
margin-bottom: 0;
|
|
225
|
+
}
|
|
226
|
+
.m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset legend {
|
|
227
|
+
position: relative;
|
|
228
|
+
top: 10px;
|
|
229
|
+
}
|
|
230
|
+
.m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-last {
|
|
231
|
+
padding-bottom: 0 !important;
|
|
232
|
+
border-bottom: 0;
|
|
233
|
+
}
|
|
234
|
+
.m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-first {
|
|
235
|
+
padding-top: 0 !important;
|
|
236
|
+
}
|
|
237
|
+
.m-container-fieldset.fieldset-in-card-fit:last-child {
|
|
238
|
+
padding-bottom: 0 !important;
|
|
239
|
+
border-bottom: 0;
|
|
240
|
+
}
|
|
241
|
+
.m-container-fieldset.fieldset-in-card-fit:first {
|
|
242
|
+
padding-top: 0 !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
151
245
|
fieldset.m-fieldset {
|
|
152
246
|
position: relative;
|
|
153
247
|
border: 1px solid rgb(229, 229, 229);
|
|
@@ -174,6 +268,9 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
174
268
|
margin-left: 5px;
|
|
175
269
|
}
|
|
176
270
|
|
|
271
|
+
.m-fields-group-list .m-fields-group-list-item.tmagic-design-card--flat:last-child {
|
|
272
|
+
border: 0;
|
|
273
|
+
}
|
|
177
274
|
.m-fields-group-list .el-button--text {
|
|
178
275
|
padding: 0;
|
|
179
276
|
margin-bottom: 7px;
|
|
@@ -192,11 +289,10 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
192
289
|
.m-fields-group-list .m-fields-group-list-item:last-of-type {
|
|
193
290
|
border-bottom: 0;
|
|
194
291
|
}
|
|
195
|
-
.m-fields-group-list .
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
padding: 5px 0;
|
|
292
|
+
.m-fields-group-list .m-fields-group-list-item .m-fields-group-list-item-header {
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
gap: 8px;
|
|
200
296
|
}
|
|
201
297
|
.m-fields-group-list .m-fields-group-list-footer {
|
|
202
298
|
display: flex;
|
|
@@ -208,7 +304,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
208
304
|
background: #f2f6fc;
|
|
209
305
|
}
|
|
210
306
|
.m-form-panel .el-card__header a {
|
|
211
|
-
color: #409eff;
|
|
307
|
+
color: var(--el-color-primary, #409eff);
|
|
212
308
|
}
|
|
213
309
|
.m-form-panel .el-card__body {
|
|
214
310
|
padding: 10px;
|
|
@@ -287,8 +383,8 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
287
383
|
margin-right: auto;
|
|
288
384
|
min-width: 50px;
|
|
289
385
|
outline: none;
|
|
290
|
-
border-color: #409eff;
|
|
291
|
-
color: #409eff;
|
|
386
|
+
border-color: var(--el-color-primary, #409eff);
|
|
387
|
+
color: var(--el-color-primary, #409eff);
|
|
292
388
|
width: 10px;
|
|
293
389
|
}
|
|
294
390
|
.magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab::before {
|
|
@@ -325,4 +421,20 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
325
421
|
display: flex;
|
|
326
422
|
align-items: center;
|
|
327
423
|
justify-content: space-between;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.m-fields-radio-group__option {
|
|
427
|
+
display: flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.m-fields-radio-group__text {
|
|
432
|
+
display: inline-block;
|
|
433
|
+
vertical-align: middle;
|
|
434
|
+
white-space: pre-line;
|
|
435
|
+
line-height: 20px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.m-fields-radio-group__icon_with_text {
|
|
439
|
+
margin-right: 8px;
|
|
328
440
|
}/*$vite$:1*/
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.tmagic-design-form-inline .m-form-container {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.m-form-container.has-tip {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
}
|
|
10
|
+
.m-form-container.has-tip .tmagic-design-form-item {
|
|
11
|
+
flex: 1;
|
|
12
|
+
}
|
|
13
|
+
.m-form-container .tmagic-design-form-item.show-after-diff {
|
|
14
|
+
background: rgb(225, 243, 216);
|
|
15
|
+
}
|
|
16
|
+
.m-form-container .tmagic-design-form-item.show-before-diff {
|
|
17
|
+
background: #f7dadd;
|
|
18
|
+
}
|
|
19
|
+
.m-form-container .m-form-title-extra {
|
|
20
|
+
margin-left: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.m-form-dialog .el-dialog__body {
|
|
24
|
+
padding: 0 !important;
|
|
25
|
+
}
|
|
26
|
+
.m-form-dialog .m-dialog-body {
|
|
27
|
+
padding: 0 20px;
|
|
28
|
+
}
|
|
29
|
+
.m-form-dialog .el-table .m-form-item .el-form-item {
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.m-form-drawer .el-drawer__header {
|
|
34
|
+
margin: 0;
|
|
35
|
+
}
|
|
36
|
+
.m-form-drawer .m-drawer-body {
|
|
37
|
+
height: 100%;
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
overflow-x: hidden;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fade-enter-active,
|
|
43
|
+
.fade-leave-active {
|
|
44
|
+
transition: opacity 0.5s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fade-enter, .fade-leave-to {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.m-form .m-form-tip {
|
|
52
|
+
color: rgba(0, 0, 0, 0.45);
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
55
|
+
}
|
|
56
|
+
.m-form .m-form-schematic {
|
|
57
|
+
max-width: 50%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
}
|
|
60
|
+
.m-form .tmagic-design-table .cell > div.m-form-container {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
.m-form .tmagic-design-table .cell > div.m-form-container.has-tip {
|
|
64
|
+
display: flex;
|
|
65
|
+
}
|
|
66
|
+
.m-form .tmagic-design-tabs {
|
|
67
|
+
margin-bottom: 10px;
|
|
68
|
+
}
|
|
69
|
+
.m-form .tmagic-design-form-item.tmagic-form-hidden > .el-form-item__label {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
.m-form .t-form__item.tmagic-form-hidden > .t-form__label {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
.m-form .t-form__item.tmagic-form-hidden > .t-form__controls {
|
|
76
|
+
margin-left: 0 !important;
|
|
77
|
+
}
|
|
78
|
+
.m-form.t-form:not(.t-form-inline) .t-form__item:last-of-type {
|
|
79
|
+
margin-bottom: var(--td-comp-margin-xxl);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.m-form-container .m-form-container-expand {
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.m-fields-text {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.m-fields-text--static {
|
|
96
|
+
gap: 6px;
|
|
97
|
+
min-height: 32px;
|
|
98
|
+
}
|
|
99
|
+
.m-fields-text--static .m-fields-text__prepend {
|
|
100
|
+
color: var(--el-text-color-secondary, #909399);
|
|
101
|
+
}
|
|
102
|
+
.m-fields-text--static .m-fields-text__value {
|
|
103
|
+
color: var(--el-text-color-regular, #606266);
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
.m-fields-text--static .m-fields-text__icon {
|
|
109
|
+
width: 16px;
|
|
110
|
+
height: 16px;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.m-form-validate__warning {
|
|
115
|
+
color: var(--el-color-warning);
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
width: 100%;
|
|
118
|
+
line-height: 1.4;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.tmagic-form-text-popper {
|
|
122
|
+
min-width: 150px;
|
|
123
|
+
line-height: 1.4;
|
|
124
|
+
background-color: #fff;
|
|
125
|
+
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
|
|
126
|
+
color: #606266;
|
|
127
|
+
border: 1px solid #e4e7ed;
|
|
128
|
+
border-radius: 4px;
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
overflow-wrap: break-word;
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
padding: 10px;
|
|
133
|
+
}
|
|
134
|
+
.tmagic-form-text-popper:focus {
|
|
135
|
+
outline: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.m-container-text.m-fields-title-container .tmagic-design-form-item .el-form-item__label {
|
|
139
|
+
color: #0f1113;
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
font-size: 16px;
|
|
142
|
+
}
|
|
143
|
+
.m-container-text.m-fields-title-container .tmagic-design-form-item {
|
|
144
|
+
line-height: 24px;
|
|
145
|
+
margin-bottom: 16px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.tmagic-form-text-popper[data-popper-placement^=top] > .tmagic-form-text-popper-arrow {
|
|
149
|
+
bottom: -4px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.tmagic-form-text-popper[data-popper-placement^=bottom] > .tmagic-form-text-popper-arrow {
|
|
153
|
+
top: -4px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.tmagic-form-text-popper[data-popper-placement^=left] > .tmagic-form-text-popper-arrow {
|
|
157
|
+
right: -4px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.tmagic-form-text-popper[data-popper-placement^=right] > .tmagic-form-text-popper-arrow {
|
|
161
|
+
left: -4px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.tmagic-form-text-popper-arrow,
|
|
165
|
+
.tmagic-form-text-popper-arrow::before {
|
|
166
|
+
position: absolute;
|
|
167
|
+
width: 8px;
|
|
168
|
+
height: 8px;
|
|
169
|
+
background: inherit;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.tmagic-form-text-popper-arrow {
|
|
173
|
+
visibility: hidden;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.tmagic-form-text-popper-arrow::before {
|
|
177
|
+
visibility: visible;
|
|
178
|
+
content: "";
|
|
179
|
+
transform: rotate(45deg);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
div.m-fields-link {
|
|
183
|
+
width: fit-content;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
a.magic-admin-link {
|
|
187
|
+
width: 100%;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
border-radius: 4px;
|
|
190
|
+
border: 1px solid #e6e6e6;
|
|
191
|
+
background-color: #fafafa;
|
|
192
|
+
padding: 0 8px;
|
|
193
|
+
height: 28px;
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
gap: 4px;
|
|
196
|
+
align-items: center;
|
|
197
|
+
text-decoration: none;
|
|
198
|
+
}
|
|
199
|
+
a.magic-admin-link i {
|
|
200
|
+
margin-right: 4px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.m-container-fieldset.no-border-fieldset.fieldset-in-row > fieldset.m-fieldset legend {
|
|
204
|
+
left: 0;
|
|
205
|
+
}
|
|
206
|
+
.m-container-fieldset.no-border-fieldset > fieldset.m-fieldset {
|
|
207
|
+
border: 0;
|
|
208
|
+
}
|
|
209
|
+
.m-container-fieldset.no-border-fieldset > fieldset.m-fieldset legend {
|
|
210
|
+
position: relative;
|
|
211
|
+
left: -5px;
|
|
212
|
+
font-size: 16px;
|
|
213
|
+
font-weight: 500;
|
|
214
|
+
line-height: 24px;
|
|
215
|
+
padding: 0;
|
|
216
|
+
}
|
|
217
|
+
.m-container-fieldset.fieldset-in-card-fit {
|
|
218
|
+
border-bottom: 1px solid #e6e6e6;
|
|
219
|
+
}
|
|
220
|
+
.m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset {
|
|
221
|
+
padding: 16px 0 16px 0 !important;
|
|
222
|
+
border: 0;
|
|
223
|
+
margin-top: 0;
|
|
224
|
+
margin-bottom: 0;
|
|
225
|
+
}
|
|
226
|
+
.m-container-fieldset.fieldset-in-card-fit > fieldset.m-fieldset legend {
|
|
227
|
+
position: relative;
|
|
228
|
+
top: 10px;
|
|
229
|
+
}
|
|
230
|
+
.m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-last {
|
|
231
|
+
padding-bottom: 0 !important;
|
|
232
|
+
border-bottom: 0;
|
|
233
|
+
}
|
|
234
|
+
.m-container-fieldset.fieldset-in-card-fit.fieldset-in-card-fit-first {
|
|
235
|
+
padding-top: 0 !important;
|
|
236
|
+
}
|
|
237
|
+
.m-container-fieldset.fieldset-in-card-fit:last-child {
|
|
238
|
+
padding-bottom: 0 !important;
|
|
239
|
+
border-bottom: 0;
|
|
240
|
+
}
|
|
241
|
+
.m-container-fieldset.fieldset-in-card-fit:first {
|
|
242
|
+
padding-top: 0 !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
fieldset.m-fieldset {
|
|
246
|
+
position: relative;
|
|
247
|
+
border: 1px solid rgb(229, 229, 229);
|
|
248
|
+
margin-top: 10px;
|
|
249
|
+
margin-bottom: 10px;
|
|
250
|
+
min-inline-size: auto;
|
|
251
|
+
}
|
|
252
|
+
fieldset.m-fieldset .el-checkbox {
|
|
253
|
+
height: 22px;
|
|
254
|
+
}
|
|
255
|
+
fieldset.m-fieldset legend {
|
|
256
|
+
font-size: 14px;
|
|
257
|
+
position: absolute;
|
|
258
|
+
border: 0;
|
|
259
|
+
top: -10px;
|
|
260
|
+
left: 20px;
|
|
261
|
+
background: rgb(255, 255, 255);
|
|
262
|
+
width: auto;
|
|
263
|
+
padding: 0px 3px;
|
|
264
|
+
font-weight: bold;
|
|
265
|
+
line-height: 20px;
|
|
266
|
+
}
|
|
267
|
+
fieldset.m-fieldset .m-form-tip {
|
|
268
|
+
margin-left: 5px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.m-fields-group-list .m-fields-group-list-item.tmagic-design-card--flat:last-child {
|
|
272
|
+
border: 0;
|
|
273
|
+
}
|
|
274
|
+
.m-fields-group-list .el-button--text {
|
|
275
|
+
padding: 0;
|
|
276
|
+
margin-bottom: 7px;
|
|
277
|
+
}
|
|
278
|
+
.m-fields-group-list .el-tree-node__expand-icon {
|
|
279
|
+
padding: 0;
|
|
280
|
+
margin-bottom: 7px;
|
|
281
|
+
}
|
|
282
|
+
.m-fields-group-list .el-tree-node__expand-icon.expand {
|
|
283
|
+
transform: rotate(90deg);
|
|
284
|
+
}
|
|
285
|
+
.m-fields-group-list .m-fields-group-list-item {
|
|
286
|
+
border-bottom: 1px solid #ebeef5;
|
|
287
|
+
margin-bottom: 7px;
|
|
288
|
+
}
|
|
289
|
+
.m-fields-group-list .m-fields-group-list-item:last-of-type {
|
|
290
|
+
border-bottom: 0;
|
|
291
|
+
}
|
|
292
|
+
.m-fields-group-list .m-fields-group-list-item .m-fields-group-list-item-header {
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
gap: 8px;
|
|
296
|
+
}
|
|
297
|
+
.m-fields-group-list .m-fields-group-list-footer {
|
|
298
|
+
display: flex;
|
|
299
|
+
justify-content: space-between;
|
|
300
|
+
margin-top: 10px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.m-form-panel .el-card__header:hover {
|
|
304
|
+
background: #f2f6fc;
|
|
305
|
+
}
|
|
306
|
+
.m-form-panel .el-card__header a {
|
|
307
|
+
color: var(--el-color-primary, #409eff);
|
|
308
|
+
}
|
|
309
|
+
.m-form-panel .el-card__body {
|
|
310
|
+
padding: 10px;
|
|
311
|
+
}
|
|
312
|
+
.m-form-panel .m-form-tip {
|
|
313
|
+
margin-left: 5px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.m-container-panel:not(:last-of-type) {
|
|
317
|
+
margin-bottom: 20px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.m-fields-table-wrap {
|
|
321
|
+
width: 100%;
|
|
322
|
+
}
|
|
323
|
+
.m-fields-table-wrap.fixed {
|
|
324
|
+
position: fixed;
|
|
325
|
+
height: 100%;
|
|
326
|
+
overflow: auto;
|
|
327
|
+
top: 0;
|
|
328
|
+
right: 0;
|
|
329
|
+
left: 0;
|
|
330
|
+
bottom: 0;
|
|
331
|
+
z-index: 100;
|
|
332
|
+
background: rgba(0, 0, 0, 0.5);
|
|
333
|
+
align-items: center;
|
|
334
|
+
display: flex;
|
|
335
|
+
}
|
|
336
|
+
.m-fields-table-wrap.fixed > .el-form-item__content {
|
|
337
|
+
z-index: 101;
|
|
338
|
+
position: relative;
|
|
339
|
+
margin: 10vh auto;
|
|
340
|
+
max-width: fit-content;
|
|
341
|
+
}
|
|
342
|
+
.m-fields-table-wrap.fixed table {
|
|
343
|
+
width: 95vw !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.m-fields-table {
|
|
347
|
+
width: 100%;
|
|
348
|
+
}
|
|
349
|
+
.m-fields-table th {
|
|
350
|
+
background-color: #f2f2f2 !important;
|
|
351
|
+
color: #333 !important;
|
|
352
|
+
}
|
|
353
|
+
.m-fields-table .el-table th {
|
|
354
|
+
padding: 0 !important;
|
|
355
|
+
}
|
|
356
|
+
.m-fields-table .el-table__column--dropable {
|
|
357
|
+
cursor: move;
|
|
358
|
+
}
|
|
359
|
+
.m-fields-table .el-form-item__content .el-input-group {
|
|
360
|
+
vertical-align: middle;
|
|
361
|
+
}
|
|
362
|
+
.m-fields-table.m-fields-table-item-extra tr.expanded td {
|
|
363
|
+
border-bottom: 0;
|
|
364
|
+
}
|
|
365
|
+
.m-fields-table .el-table__expanded-cell .m-form-tip {
|
|
366
|
+
margin-left: 80px;
|
|
367
|
+
}
|
|
368
|
+
.m-fields-table .el-form-item {
|
|
369
|
+
margin-bottom: 0;
|
|
370
|
+
}
|
|
371
|
+
.m-fields-table .tmagic-form-table-drag-target {
|
|
372
|
+
cursor: move;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.m-select {
|
|
376
|
+
width: 100%;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.magic-form-dynamic-tab .el-tabs__header.is-top {
|
|
380
|
+
padding-right: 8px;
|
|
381
|
+
}
|
|
382
|
+
.magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab {
|
|
383
|
+
margin-right: auto;
|
|
384
|
+
min-width: 50px;
|
|
385
|
+
outline: none;
|
|
386
|
+
border-color: var(--el-color-primary, #409eff);
|
|
387
|
+
color: var(--el-color-primary, #409eff);
|
|
388
|
+
width: 10px;
|
|
389
|
+
}
|
|
390
|
+
.magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab::before {
|
|
391
|
+
content: "添加";
|
|
392
|
+
}
|
|
393
|
+
.magic-form-dynamic-tab .el-tabs__header.is-top .el-tabs__new-tab .el-icon-plus {
|
|
394
|
+
display: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.magic-form-tab {
|
|
398
|
+
margin-bottom: 10px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.diff-count-badge {
|
|
402
|
+
top: -10px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.m-fields-number-range {
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
}
|
|
409
|
+
.m-fields-number-range .split-tag {
|
|
410
|
+
margin: 0 5px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.m-form-box {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex-direction: column;
|
|
416
|
+
}
|
|
417
|
+
.m-form-box .el-box__header {
|
|
418
|
+
margin: 0;
|
|
419
|
+
}
|
|
420
|
+
.m-form-box .dialog-footer {
|
|
421
|
+
display: flex;
|
|
422
|
+
align-items: center;
|
|
423
|
+
justify-content: space-between;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.m-fields-radio-group__option {
|
|
427
|
+
display: flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.m-fields-radio-group__text {
|
|
432
|
+
display: inline-block;
|
|
433
|
+
vertical-align: middle;
|
|
434
|
+
white-space: pre-line;
|
|
435
|
+
line-height: 20px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.m-fields-radio-group__icon_with_text {
|
|
439
|
+
margin-right: 8px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.m-form.m-form--magic-admin .m-container-tab:not(.magic-right-panel-tabs-top):not(.magic-form-dynamic-tab) > .tmagic-design-tabs:not(.el-tabs--border-card) > .el-tabs__content {
|
|
443
|
+
background-color: #fff;
|
|
444
|
+
padding: 16px 16px 0 16px;
|
|
445
|
+
border-radius: 4px;
|
|
446
|
+
}
|
|
447
|
+
.m-form.m-form--magic-admin .m-form-tip {
|
|
448
|
+
color: rgba(0, 0, 0, 0.55);
|
|
449
|
+
}
|
|
450
|
+
.m-form.m-form--magic-admin .tmagic-design-form-item.show-after-diff {
|
|
451
|
+
background: #d4edbc;
|
|
452
|
+
}
|
|
453
|
+
.m-form.m-form--magic-admin .tmagic-design-form-item.show-before-diff {
|
|
454
|
+
background: #fad2cf;
|
|
455
|
+
}
|
|
456
|
+
.m-form.m-form--magic-admin .m-fields-radio-group__text {
|
|
457
|
+
white-space: pre-line;
|
|
458
|
+
line-height: 20px;
|
|
459
|
+
}
|
|
460
|
+
.m-form.m-form--magic-admin .el-form-item__content .tmagic-design-radio-group .tmagic-design-radio-button {
|
|
461
|
+
margin-right: 8px;
|
|
462
|
+
height: 32px;
|
|
463
|
+
}
|
|
464
|
+
.m-form.m-form--magic-admin .el-form-item__content .tmagic-design-radio-group .tmagic-design-radio-button .el-radio-button__inner {
|
|
465
|
+
outline: none !important;
|
|
466
|
+
border: 0 !important;
|
|
467
|
+
height: 32px;
|
|
468
|
+
height: 32px;
|
|
469
|
+
border-radius: 16px;
|
|
470
|
+
padding: 0 16px;
|
|
471
|
+
display: inline-flex;
|
|
472
|
+
align-items: center;
|
|
473
|
+
justify-content: center;
|
|
474
|
+
}
|
|
475
|
+
.m-form.m-form--magic-admin .m-fields-data-source-field-select .tmagic-design-button {
|
|
476
|
+
margin-left: 8px;
|
|
477
|
+
}
|
|
478
|
+
.m-form.m-form--magic-admin .m-fields-data-source-field-select .tmagic-design-button span {
|
|
479
|
+
font-size: 16px;
|
|
480
|
+
}
|
|
481
|
+
.m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .el-card__body .m-fields-table-wrap .m-fields-table .el-table__header-wrapper thead {
|
|
482
|
+
height: 48px;
|
|
483
|
+
}
|
|
484
|
+
.m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .m-fields-group-list-item-header {
|
|
485
|
+
position: relative;
|
|
486
|
+
}
|
|
487
|
+
.m-form.m-form--magic-admin .m-fields-group-list-item.tmagic-design-card--flat .m-fields-group-list-item-header .delete-button {
|
|
488
|
+
position: absolute;
|
|
489
|
+
right: 0;
|
|
490
|
+
color: #0f1113;
|
|
491
|
+
}
|
|
492
|
+
.m-form.m-form--magic-admin .m-form-container .m-form-container-expand {
|
|
493
|
+
text-align: left;
|
|
494
|
+
}
|