Skip to content

Commit 1e95dec

Browse files
style: tooltip style
1 parent 688abb9 commit 1e95dec

File tree

17 files changed

+13
-65
lines changed

17 files changed

+13
-65
lines changed

ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,5 @@ onMounted(() => {
242242
top: -35px;
243243
}
244244
}
245-
:deep(.el-form-item__label) {
246-
display: block;
247-
}
248245
249-
:deep(.el-select-dropdown) {
250-
max-width: 400px;
251-
}
252246
</style>

ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
:reserve-keyword="false"
134134
v-model="formValue.default_value"
135135
:teleported="false"
136-
popper-class="default-select"
136+
popper-class="max-w-350"
137137
>
138138
<el-option
139139
v-for="(option, index) in formValue.option_list"
@@ -191,9 +191,7 @@ const default_ref_variables_value_rule = {
191191
validator: (rule: any, value: any, callback: any) => {
192192
console.log(value.length)
193193
if (!(Array.isArray(value) && value.length > 1)) {
194-
callback(
195-
t('workflow.variable.Referencing') + t('common.required'),
196-
)
194+
callback(t('workflow.variable.Referencing') + t('common.required'))
197195
}
198196
199197
return true
@@ -250,11 +248,5 @@ onMounted(() => {
250248
top: -35px;
251249
}
252250
}
253-
:deep(.el-form-item__label) {
254-
display: block;
255-
}
256251
257-
:deep(.el-select-dropdown) {
258-
max-width: 400px;
259-
}
260252
</style>

ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,5 @@ onMounted(() => {
242242
top: -35px;
243243
}
244244
}
245-
:deep(.el-form-item__label) {
246-
display: block;
247-
}
248245
249-
:deep(.el-select-dropdown) {
250-
max-width: 400px;
251-
}
252246
</style>

ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,4 @@ onMounted(() => {
242242
top: -35px;
243243
}
244244
}
245-
:deep(.el-form-item__label) {
246-
display: block;
247-
}
248-
249-
:deep(.el-select-dropdown) {
250-
max-width: 400px;
251-
}
252245
</style>

ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@
124124
/>
125125
</div>
126126

127-
<el-select v-model="formValue.default_value" :teleported="false" popper-class="default-select">
127+
<el-select
128+
v-model="formValue.default_value"
129+
:teleported="false"
130+
popper-class="max-w-350"
131+
>
128132
<el-option
129133
v-for="(option, index) in formValue.option_list"
130134
:key="index"
@@ -181,9 +185,7 @@ const default_ref_variables_value_rule = {
181185
validator: (rule: any, value: any, callback: any) => {
182186
console.log(value.length)
183187
if (!(Array.isArray(value) && value.length > 1)) {
184-
callback(
185-
t('workflow.variable.Referencing') + t('common.required'),
186-
)
188+
callback(t('workflow.variable.Referencing') + t('common.required'))
187189
}
188190
189191
return true
@@ -241,11 +243,5 @@ onMounted(() => {
241243
top: -35px;
242244
}
243245
}
244-
:deep(.el-form-item__label) {
245-
display: block;
246-
}
247246
248-
:deep(.el-select-dropdown) {
249-
max-width: 400px;
250-
}
251247
</style>

ui/src/components/resource_mapping/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
:maxTableHeight="200"
9595
:row-key="(row: any) => row.id"
9696
v-loading="loading"
97+
:tooltip-options="{
98+
popperClass: 'max-w-350',
99+
}"
97100
>
98101
<el-table-column prop="name" :label="$t('common.name')" min-width="130" show-overflow-tooltip>
99102
<template #default="{ row }">

ui/src/locales/lang/en-US/dynamics-form.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ export default {
115115
},
116116
AssignmentMethod: {
117117
label: 'Assignment Method',
118-
custom: {
119-
label: 'Custom',
120-
},
121118
ref_variables: {
122119
label: 'Reference Variables',
123120
popover: 'Variable values must comply with',

ui/src/locales/lang/en-US/theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default {
1111
green: 'Green',
1212
purple: 'Purple',
1313
red: 'Red',
14-
custom: 'Custom',
1514
loginBackground: 'Login Background Image',
1615
loginLogo: 'Login Logo',
1716
websiteLogo: 'Website Logo',

ui/src/locales/lang/zh-CN/dynamics-form.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ export default {
115115
},
116116
AssignmentMethod: {
117117
label: '赋值方式',
118-
119-
custom: {
120-
label: '自定义',
121-
},
122118
ref_variables: {
123119
popover: '变量的值必须符合',
124120
json_format: 'JSON 格式',

ui/src/locales/lang/zh-CN/theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default {
1111
green: '松石绿',
1212
purple: '神秘紫',
1313
red: '胭脂红',
14-
custom: '自定义',
1514
loginBackground: '登录背景图',
1615
loginLogo: '登录 Logo',
1716
websiteLogo: '网站 Logo',

0 commit comments

Comments
 (0)