Skip to content

Commit 76324bf

Browse files
样式优化。
1 parent f581e4a commit 76324bf

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ You are a master of problem optimization, adept at accurately inferring user int
505505
expression: {
506506
label: 'Expression',
507507
placeholder: 'Please enter expression',
508-
tooltip: 'Please use JSON Path expressions to split variables, e.g.: $.store.book . For details, see https://pypi.org/project/jsonpath-ng/1.8.0/',
508+
tooltip: 'Please use JSON Path expressions to split variables, e.g.: $.store.book <a href="https://pypi.org/project/jsonpath-ng/1.8.0/" target="_blank" class="expression_tip">Click for details ➜ pypi.org</a>',
509509
},
510510
},
511511
parameterExtractionNode: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export default {
496496
expression: {
497497
label: '表达式',
498498
placeholder: '请输入表达式',
499-
tooltip: '请使用 JSON Path 表达式拆分变量,例如:$.store.book 。详情见 https://pypi.org/project/jsonpath-ng/1.8.0/',
499+
tooltip: '请使用 JSON Path 表达式拆分变量,例如:$.store.book <a href="https://pypi.org/project/jsonpath-ng/1.8.0/" target="_blank" class="expression_tip">点击查看详情 ➜ pypi.org</a>',
500500
},
501501
},
502502
parameterExtractionNode: {

ui/src/locales/lang/zh-Hant/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export default {
490490
expression: {
491491
label: '表達式',
492492
placeholder: '請輸入表達式',
493-
tooltip: '請使用 JSON Path 表達式拆分變量,例如:$.store.book 。詳情見 https://pypi.org/project/jsonpath-ng/1.8.0/',
493+
tooltip: '請使用 JSON Path 表達式拆分變量,例如:$.store.book <a href="https://pypi.org/project/jsonpath-ng/1.8.0/" target="_blank" class="expression_tip">點擊查看詳情 ➜ pypi.org</a>',
494494
},
495495
},
496496
parameterExtractionNode: {

ui/src/workflow/nodes/variable-splitting/component/VariableFieldDialog.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
>
5858
<el-tooltip
5959
effect="dark"
60-
:content="
61-
$t('workflow.nodes.variableSplittingNode.expression.tooltip')
62-
"
6360
placement="right"
6461
>
62+
<template #content>
63+
<span v-html="$t('workflow.nodes.variableSplittingNode.expression.tooltip')"></span>
64+
</template>
6565
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
6666
</el-tooltip>
6767
</div>
@@ -161,4 +161,12 @@ const submit = async (formEl: FormInstance | undefined) => {
161161
162162
defineExpose({ open, close })
163163
</script>
164-
<style lang="scss" scoped></style>
164+
<style lang="scss">
165+
.expression_tip {
166+
color: var(--el-color-primary-light-5);
167+
168+
&:hover {
169+
color: var(--el-color-primary-light-3);
170+
}
171+
}
172+
</style>

0 commit comments

Comments
 (0)