diff --git a/ui/src/components/icons/index.ts b/ui/src/components/icons/index.ts index ece51a9f3..683cc560f 100644 --- a/ui/src/components/icons/index.ts +++ b/ui/src/components/icons/index.ts @@ -954,5 +954,26 @@ export const iconMap: any = { ) ]) } + }, + 'app-magnify': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg' + }, + [ + h('path', { + d: 'M366.165333 593.749333a21.333333 21.333333 0 0 1 30.208 0l30.165334 30.165334a21.333333 21.333333 0 0 1 0 30.208l-170.752 170.666666H377.173333a21.333333 21.333333 0 0 1 21.333334 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333334 21.333334H156.458667a42.538667 42.538667 0 0 1-42.666667-42.666667v-220.16a21.333333 21.333333 0 0 1 21.333333-21.333333h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333333v113.493333l167.04-167.04z m500.992-480a42.538667 42.538667 0 0 1 42.666667 42.666667v220.16a21.333333 21.333333 0 0 1-21.333333 21.333333h-42.666667a21.333333 21.333333 0 0 1-21.333333-21.333333v-113.493333l-167.04 167.04a21.333333 21.333333 0 0 1-30.165334 0l-30.165333-30.165334a21.333333 21.333333 0 0 1 0-30.165333l170.709333-170.666667h-121.344a21.333333 21.333333 0 0 1-21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333333-21.333333h220.672z', + fill: 'currentColor' + }) + ] + ) + ]) + } } } diff --git a/ui/src/workflow/nodes/base-node/index.vue b/ui/src/workflow/nodes/base-node/index.vue index e1da99742..bf543ecb0 100644 --- a/ui/src/workflow/nodes/base-node/index.vue +++ b/ui/src/workflow/nodes/base-node/index.vue @@ -2,7 +2,7 @@ { if (props.nodeModel.properties.node_data) { return props.nodeModel.properties.node_data diff --git a/ui/src/workflow/nodes/question-node/index.vue b/ui/src/workflow/nodes/question-node/index.vue index 50d6a6637..18f0083e4 100644 --- a/ui/src/workflow/nodes/question-node/index.vue +++ b/ui/src/workflow/nodes/question-node/index.vue @@ -4,12 +4,12 @@ {{ item.name }} - @@ -67,7 +67,7 @@ {{ item.name }} (不可用) - @@ -83,7 +83,7 @@ - + { if (props.nodeModel.properties.node_data) { return props.nodeModel.properties.node_data @@ -173,7 +173,7 @@ const chat_data = computed({ }) const props = defineProps<{ nodeModel: any }>() -const aiChatNodeFormRef = ref() +const questionNodeFormRef = ref() const createModelRef = ref>() const selectProviderRef = ref>() @@ -181,7 +181,7 @@ const modelOptions = ref(null) const providerOptions = ref>([]) const validate = () => { - aiChatNodeFormRef.value?.validate() + questionNodeFormRef.value?.validate() } function getModel() { diff --git a/ui/src/workflow/nodes/reply-node/index.vue b/ui/src/workflow/nodes/reply-node/index.vue index 0a48949f3..b655928ea 100644 --- a/ui/src/workflow/nodes/reply-node/index.vue +++ b/ui/src/workflow/nodes/reply-node/index.vue @@ -1,18 +1,60 @@