@tmagic/form 1.8.0-beta.9 → 1.8.0-manmanyu.11
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 +44 -5
- package/dist/es/FormDialog.vue_vue_type_script_setup_true_lang.js +12 -5
- package/dist/es/FormDrawer.vue_vue_type_script_setup_true_lang.js +37 -12
- package/dist/es/containers/Container.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/es/containers/GroupList.vue_vue_type_script_setup_true_lang.js +6 -5
- package/dist/es/containers/GroupListItem.vue_vue_type_script_setup_true_lang.js +41 -31
- package/dist/es/containers/Panel.vue_vue_type_script_setup_true_lang.js +16 -10
- package/dist/es/containers/table/ActionsColumn.vue_vue_type_script_setup_true_lang.js +13 -6
- package/dist/es/containers/table/Table.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/es/containers/table/useTableColumns.js +6 -2
- package/dist/es/containers/table-group-list/TableGroupList.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/fields/Cascader.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Checkbox.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/ColorPicker.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Date.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DateTime.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Daterange.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Display.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DynamicField.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Link.vue_vue_type_script_setup_true_lang.js +29 -7
- package/dist/es/fields/Number.vue_vue_type_script_setup_true_lang.js +8 -3
- package/dist/es/fields/NumberRange.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/RadioGroup.vue_vue_type_script_setup_true_lang.js +16 -8
- package/dist/es/fields/Select.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Switch.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Text.vue_vue_type_script_setup_true_lang.js +112 -77
- package/dist/es/fields/Textarea.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Time.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/Timerange.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/plugin.js +2 -0
- package/dist/es/style.css +121 -8
- package/dist/style.css +121 -8
- package/dist/themes/magic-admin.css +495 -0
- package/dist/tmagic-form.umd.cjs +448 -225
- package/package.json +4 -4
- package/src/Form.vue +53 -4
- package/src/FormDialog.vue +14 -3
- package/src/FormDrawer.vue +40 -12
- package/src/containers/Container.vue +16 -5
- package/src/containers/GroupList.vue +1 -1
- package/src/containers/GroupListItem.vue +28 -22
- package/src/containers/Panel.vue +10 -3
- package/src/containers/table/ActionsColumn.vue +10 -4
- package/src/containers/table/Table.vue +1 -0
- package/src/containers/table/useTableColumns.ts +10 -4
- package/src/containers/table-group-list/TableGroupList.vue +7 -1
- package/src/fields/Link.vue +17 -3
- package/src/fields/Number.vue +5 -2
- 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 +9 -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/src/fields/Number.vue
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="model"
|
|
4
4
|
v-model="value"
|
|
5
5
|
clearable
|
|
6
|
-
controls-position="right"
|
|
6
|
+
:controls-position="isMagicAdmin ? '' : 'right'"
|
|
7
7
|
:size="size"
|
|
8
8
|
:max="config.max"
|
|
9
9
|
:min="config.min"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
19
|
import { inject, ref, watch } from 'vue';
|
|
20
20
|
|
|
21
|
-
import { TMagicInputNumber } from '@tmagic/design';
|
|
21
|
+
import { isMagicAdminTheme, TMagicInputNumber } from '@tmagic/design';
|
|
22
22
|
|
|
23
23
|
import type { FieldProps, FormState, NumberConfig } from '../schema';
|
|
24
24
|
import { useAddField } from '../utils/useAddField';
|
|
@@ -34,6 +34,9 @@ const emit = defineEmits<{
|
|
|
34
34
|
input: [values: number];
|
|
35
35
|
}>();
|
|
36
36
|
|
|
37
|
+
// magic-admin 主题下输入框走"无右侧上下箭头"的极简样式(控件位置置空回到 ElInputNumber 默认两侧布局)
|
|
38
|
+
const isMagicAdmin = isMagicAdminTheme();
|
|
39
|
+
|
|
37
40
|
const value = ref<number>();
|
|
38
41
|
|
|
39
42
|
watch(
|
|
@@ -8,9 +8,14 @@
|
|
|
8
8
|
@click="clickHandler(option.value)"
|
|
9
9
|
>
|
|
10
10
|
<TMagicTooltip :disabled="!Boolean(option.tooltip)" placement="top-start" :content="option.tooltip">
|
|
11
|
-
<div>
|
|
12
|
-
<TMagicIcon
|
|
13
|
-
|
|
11
|
+
<div class="m-fields-radio-group__option">
|
|
12
|
+
<TMagicIcon
|
|
13
|
+
v-if="option.icon"
|
|
14
|
+
:size="iconSize"
|
|
15
|
+
:class="{ 'm-fields-radio-group__icon_with_text': !!option.text }"
|
|
16
|
+
><component :is="option.icon"></component
|
|
17
|
+
></TMagicIcon>
|
|
18
|
+
<span v-if="option.text" class="m-fields-radio-group__text">{{ option.text }}</span>
|
|
14
19
|
</div>
|
|
15
20
|
</TMagicTooltip>
|
|
16
21
|
</component>
|
|
@@ -42,13 +47,14 @@ const clickHandler = (item: string | number | boolean) => {
|
|
|
42
47
|
|
|
43
48
|
useAddField(props.prop);
|
|
44
49
|
|
|
50
|
+
// 这里换了设计稿里的图标,所以需要调整一下图标大小
|
|
45
51
|
const iconSize = computed(() => {
|
|
46
52
|
if (props.size === 'small') {
|
|
47
|
-
return '
|
|
53
|
+
return '14';
|
|
48
54
|
}
|
|
49
55
|
if (props.size === 'large') {
|
|
50
56
|
return '16';
|
|
51
57
|
}
|
|
52
|
-
return '
|
|
58
|
+
return '16';
|
|
53
59
|
});
|
|
54
60
|
</script>
|
package/src/fields/Text.vue
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="m-fields-text">
|
|
2
|
+
<div :class="['m-fields-text', { 'm-fields-text--static': config.static }]">
|
|
3
|
+
<div v-if="config.disabled"></div>
|
|
4
|
+
<!-- 新增静态展示文本样式 -->
|
|
5
|
+
<template v-if="config.static">
|
|
6
|
+
<span v-if="config.prepend" class="m-fields-text__prepend">{{ config.prepend }}</span>
|
|
7
|
+
<span class="m-fields-text__value">{{ value }}</span>
|
|
8
|
+
<template v-if="appendConfig">
|
|
9
|
+
<TMagicButton
|
|
10
|
+
v-if="appendConfig.type === 'button'"
|
|
11
|
+
style="color: #0056ea"
|
|
12
|
+
:size="size"
|
|
13
|
+
@click.prevent="buttonClickHandler"
|
|
14
|
+
>
|
|
15
|
+
{{ appendConfig.text }}
|
|
16
|
+
</TMagicButton>
|
|
17
|
+
<img
|
|
18
|
+
v-else-if="appendConfig.type === 'icon'"
|
|
19
|
+
class="m-fields-text__icon"
|
|
20
|
+
:src="appendConfig.text"
|
|
21
|
+
@click="buttonClickHandler"
|
|
22
|
+
/>
|
|
23
|
+
<span v-else>{{ appendConfig.text }}</span>
|
|
24
|
+
</template>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
3
27
|
<TMagicInput
|
|
28
|
+
v-else
|
|
4
29
|
v-model="value"
|
|
5
30
|
ref="input"
|
|
6
31
|
:clearable="config.clearable ?? true"
|
|
@@ -17,17 +42,18 @@
|
|
|
17
42
|
<template #append v-if="appendConfig">
|
|
18
43
|
<TMagicButton
|
|
19
44
|
v-if="appendConfig.type === 'button'"
|
|
20
|
-
style="color: #
|
|
45
|
+
style="color: #0056ea"
|
|
21
46
|
:size="size"
|
|
22
47
|
@click.prevent="buttonClickHandler"
|
|
23
48
|
>
|
|
24
49
|
{{ appendConfig.text }}
|
|
25
50
|
</TMagicButton>
|
|
51
|
+
<img v-else-if="appendConfig.type === 'icon'" :src="appendConfig.text" @click="buttonClickHandler" />
|
|
26
52
|
<span v-else>{{ appendConfig.text }}</span>
|
|
27
53
|
</template>
|
|
28
54
|
</TMagicInput>
|
|
29
55
|
|
|
30
|
-
<Teleport to="body">
|
|
56
|
+
<Teleport to="body" v-if="!config.static">
|
|
31
57
|
<div v-if="popoverVisible" class="tmagic-form-text-popper m-form-item__content" ref="popoverEl">
|
|
32
58
|
<div class="m-form-validate__warning">输入内容前后有空格,是否移除空格?</div>
|
|
33
59
|
<div style="display: flex; justify-content: flex-end">
|
|
@@ -80,28 +106,26 @@ watch(
|
|
|
80
106
|
);
|
|
81
107
|
|
|
82
108
|
const appendConfig = computed(() => {
|
|
83
|
-
|
|
109
|
+
const { append } = props.config;
|
|
110
|
+
|
|
111
|
+
// 字符串形态:纯文本 append。
|
|
112
|
+
if (typeof append === 'string') {
|
|
84
113
|
return {
|
|
85
114
|
type: 'text',
|
|
86
|
-
text:
|
|
115
|
+
text: append,
|
|
87
116
|
handler: undefined,
|
|
88
117
|
};
|
|
89
118
|
}
|
|
90
|
-
if (typeof props.config.append === 'object') {
|
|
91
|
-
if (typeof props.config.append?.handler === 'function') {
|
|
92
|
-
return {
|
|
93
|
-
type: 'button',
|
|
94
|
-
text: props.config.append.text,
|
|
95
|
-
handler: props.config.append.handler,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
if (props.config.append) {
|
|
99
|
-
if (props.config.append.value === 0) {
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
119
|
|
|
103
|
-
|
|
104
|
-
|
|
120
|
+
// 对象形态:按 schema 定义,`type` 可为 `'button' | 'icon'`,`handler` 可选。
|
|
121
|
+
//
|
|
122
|
+
// 旧逻辑里只要带 handler 就强制覆盖为 `type: 'button'`,导致 schema 中显式传入的
|
|
123
|
+
// `type: 'icon'` 在到达模板前被抹掉(参见 `@editor/utils/props.ts` 中 ID 字段
|
|
124
|
+
// 的复制按钮配置)。这里直接返回原对象,模板按 `type` 分支渲染 button / icon / text。
|
|
125
|
+
if (typeof append === 'object' && append) {
|
|
126
|
+
// `value === 0` 沿用旧约定:作为「隐藏 append」的开关。
|
|
127
|
+
if (append.value === 0) return false;
|
|
128
|
+
return append;
|
|
105
129
|
}
|
|
106
130
|
|
|
107
131
|
return false;
|
package/src/plugin.ts
CHANGED
|
@@ -49,6 +49,7 @@ import Timerange from './fields/Timerange.vue';
|
|
|
49
49
|
import { setConfig } from './utils/config';
|
|
50
50
|
import Form from './Form.vue';
|
|
51
51
|
import FormDialog from './FormDialog.vue';
|
|
52
|
+
import FormDrawer from './FormDrawer.vue';
|
|
52
53
|
|
|
53
54
|
import './theme/index.scss';
|
|
54
55
|
|
|
@@ -67,6 +68,7 @@ export default {
|
|
|
67
68
|
|
|
68
69
|
app.component('m-form', Form);
|
|
69
70
|
app.component('m-form-dialog', FormDialog);
|
|
71
|
+
app.component('m-form-drawer', FormDrawer);
|
|
70
72
|
app.component('m-form-container', Container);
|
|
71
73
|
app.component('m-form-fieldset', Fieldset);
|
|
72
74
|
app.component('m-form-group-list', TableGroupList);
|
package/src/theme/container.scss
CHANGED
package/src/theme/fieldset.scss
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
.m-container-fieldset {
|
|
2
|
+
&.no-border-fieldset {
|
|
3
|
+
&.fieldset-in-row {
|
|
4
|
+
> fieldset.m-fieldset {
|
|
5
|
+
legend {
|
|
6
|
+
left: 0;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
> fieldset.m-fieldset {
|
|
11
|
+
border: 0;
|
|
12
|
+
legend {
|
|
13
|
+
position: relative;
|
|
14
|
+
left: -5px;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&.fieldset-in-card-fit {
|
|
23
|
+
border-bottom: 1px solid #e6e6e6;
|
|
24
|
+
> fieldset.m-fieldset {
|
|
25
|
+
padding: 16px 0 16px 0 !important;
|
|
26
|
+
border: 0;
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
margin-bottom: 0;
|
|
29
|
+
legend {
|
|
30
|
+
position: relative;
|
|
31
|
+
top: 10px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
&.fieldset-in-card-fit-last {
|
|
35
|
+
padding-bottom: 0 !important;
|
|
36
|
+
border-bottom: 0;
|
|
37
|
+
}
|
|
38
|
+
&.fieldset-in-card-fit-first {
|
|
39
|
+
padding-top: 0 !important;
|
|
40
|
+
}
|
|
41
|
+
&:last-child {
|
|
42
|
+
padding-bottom: 0 !important;
|
|
43
|
+
border-bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
&:first {
|
|
46
|
+
padding-top: 0 !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
1
51
|
fieldset.m-fieldset {
|
|
2
52
|
position: relative;
|
|
3
53
|
border: 1px solid rgb(229, 229, 229);
|
package/src/theme/form.scss
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
.m-fields-group-list {
|
|
2
|
+
.m-fields-group-list-item.tmagic-design-card--flat:last-child {
|
|
3
|
+
border: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.el-button--text {
|
|
3
7
|
padding: 0;
|
|
4
8
|
margin-bottom: 7px;
|
|
@@ -19,14 +23,11 @@
|
|
|
19
23
|
&:last-of-type {
|
|
20
24
|
border-bottom: 0;
|
|
21
25
|
}
|
|
22
|
-
}
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.t-card__header {
|
|
29
|
-
padding: 5px 0;
|
|
27
|
+
.m-fields-group-list-item-header {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 8px;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -34,5 +35,6 @@
|
|
|
34
35
|
display: flex;
|
|
35
36
|
justify-content: space-between;
|
|
36
37
|
margin-top: 10px;
|
|
38
|
+
margin-bottom: 16px;
|
|
37
39
|
}
|
|
38
40
|
}
|
package/src/theme/index.scss
CHANGED
package/src/theme/link.scss
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
div.m-fields-link {
|
|
2
2
|
width: fit-content;
|
|
3
3
|
}
|
|
4
|
+
a.magic-admin-link {
|
|
5
|
+
width: calc(100%);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
border: 1px solid #e6e6e6;
|
|
9
|
+
background-color: #fafafa;
|
|
10
|
+
padding: 0 8px;
|
|
11
|
+
height: 28px;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
|
|
17
|
+
i {
|
|
18
|
+
margin-right: 4px;
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/theme/panel.scss
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// 单个 radio option 的内容容器:横向排列 icon + 文本,垂直居中对齐。
|
|
2
|
+
// 这样多行文本(`text: '内联布局\n inline'`)能跟左侧 icon 在视觉中线对齐,
|
|
3
|
+
// 不会出现 icon 顶到第一行的错位。
|
|
4
|
+
.m-fields-radio-group__option {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.m-fields-radio-group__text {
|
|
10
|
+
// `inline-block` 关键:inline span 的 line-height 会被父级 inline formatting
|
|
11
|
+
// context(如 `.el-radio-button__inner` 的 strut)覆盖,外观高度量出来会比
|
|
12
|
+
// `line-height` 大;显式声明 `inline-block` 让 span 有独立的格式化上下文,
|
|
13
|
+
// 自身 line-height 才真正生效。
|
|
14
|
+
display: inline-block;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
// `pre-line` 让 `\n` 渲染为换行,同时保留自动折行。
|
|
17
|
+
white-space: pre-line;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m-fields-radio-group__icon_with_text {
|
|
22
|
+
margin-right: 8px;
|
|
23
|
+
}
|
package/src/theme/tabs.scss
CHANGED
package/src/theme/text.scss
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
width: 100%;
|
|
5
|
+
|
|
6
|
+
// 纯文本(非输入框)形态:保留 prepend / append 槽位的横向布局。
|
|
7
|
+
// 配合 `TextConfig.static = true` 使用,常见于 ID 之类「只读 + 操作 icon」场景。
|
|
8
|
+
&--static {
|
|
9
|
+
gap: 6px;
|
|
10
|
+
min-height: 32px;
|
|
11
|
+
|
|
12
|
+
.m-fields-text__prepend {
|
|
13
|
+
color: var(--el-text-color-secondary, #909399);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m-fields-text__value {
|
|
17
|
+
color: var(--el-text-color-regular, #606266);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
text-overflow: ellipsis;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.m-fields-text__icon {
|
|
24
|
+
width: 16px;
|
|
25
|
+
height: 16px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
5
29
|
}
|
|
6
30
|
|
|
7
31
|
.m-form-validate__warning {
|
|
@@ -29,6 +53,20 @@
|
|
|
29
53
|
}
|
|
30
54
|
}
|
|
31
55
|
|
|
56
|
+
.m-container-text {
|
|
57
|
+
&.m-fields-title-container {
|
|
58
|
+
.tmagic-design-form-item {
|
|
59
|
+
.el-form-item__label {
|
|
60
|
+
color: #0f1113;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
}
|
|
64
|
+
line-height: 24px;
|
|
65
|
+
margin-bottom: 16px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
32
70
|
.tmagic-form-text-popper[data-popper-placement^="top"]
|
|
33
71
|
> .tmagic-form-text-popper-arrow {
|
|
34
72
|
bottom: -4px;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// magic-admin 主题:所有规则均以 `.m-form.m-form--magic-admin` 为前缀,
|
|
2
|
+
// 仅在 `<MForm theme="magic-admin" />` 时生效,避免污染默认样式。
|
|
3
|
+
@use "../../index.scss";
|
|
4
|
+
|
|
5
|
+
.m-form.m-form--magic-admin {
|
|
6
|
+
.m-container-tab:not(.magic-right-panel-tabs-top):not(
|
|
7
|
+
.magic-form-dynamic-tab
|
|
8
|
+
) {
|
|
9
|
+
> .tmagic-design-tabs:not(.el-tabs--border-card) {
|
|
10
|
+
> .el-tabs__content {
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
padding: 16px 16px 0 16px;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.m-container-tab.magic-form-dynamic-tab {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m-form-tip {
|
|
22
|
+
color: rgba(0, 0, 0, 0.55);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.tmagic-design-form-item {
|
|
26
|
+
&.show-after-diff {
|
|
27
|
+
background: #d4edbc;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.show-before-diff {
|
|
31
|
+
background: #fad2cf;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.m-fields-radio-group__text {
|
|
35
|
+
// `pre-line` 让 `\n` 渲染为换行,同时保留自动折行;线高与默认按钮组高度对齐。
|
|
36
|
+
white-space: pre-line;
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
}
|
|
39
|
+
.el-form-item__content {
|
|
40
|
+
.tmagic-design-radio-group {
|
|
41
|
+
.tmagic-design-radio-button {
|
|
42
|
+
margin-right: 8px;
|
|
43
|
+
height: 32px;
|
|
44
|
+
.el-radio-button__inner {
|
|
45
|
+
outline: none !important;
|
|
46
|
+
border: 0 !important;
|
|
47
|
+
height: 32px;
|
|
48
|
+
height: 32px;
|
|
49
|
+
border-radius: 16px;
|
|
50
|
+
padding: 0 16px;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.m-fields-data-source-field-select .tmagic-design-button {
|
|
59
|
+
margin-left: 8px;
|
|
60
|
+
span {
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.m-fields-group-list-item.tmagic-design-card--flat {
|
|
66
|
+
.el-card__body {
|
|
67
|
+
.m-fields-table-wrap {
|
|
68
|
+
.m-fields-table {
|
|
69
|
+
.el-table__header-wrapper {
|
|
70
|
+
thead {
|
|
71
|
+
height: 48px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.m-fields-group-list-item-header {
|
|
78
|
+
position: relative;
|
|
79
|
+
.delete-button {
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: 0;
|
|
82
|
+
color: #0f1113;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.m-form-container {
|
|
87
|
+
.m-form-container-expand {
|
|
88
|
+
text-align: left;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|