Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
30ad0436
Commit
30ad0436
authored
Nov 07, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 弹窗按钮多语言提醒及应用关联知识库折叠icon
parent
74b3b6f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
custom-modal.vue
src/components/custom-modal/custom-modal.vue
+7
-4
agent-associated-knowledge.vue
...nal-app-setting/components/agent-associated-knowledge.vue
+1
-1
No files found.
src/components/custom-modal/custom-modal.vue
View file @
30ad0436
...
@@ -32,13 +32,16 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -32,13 +32,16 @@ const props = withDefaults(defineProps<Props>(), {
borderRadius
:
6
,
borderRadius
:
6
,
btnLoading
:
false
,
btnLoading
:
false
,
btnDisabled
:
false
,
btnDisabled
:
false
,
cancelBtnText
:
'
common_module.cancel_btn_text
'
,
cancelBtnText
:
''
,
confirmBtnText
:
'
common_module.confirm_btn_text
'
,
confirmBtnText
:
''
,
labelWidth
:
80
,
labelWidth
:
80
,
labelPlacement
:
'left'
,
labelPlacement
:
'left'
,
contentStyle
:
()
=>
({}),
contentStyle
:
()
=>
({}),
})
})
const
cancelBtnText
=
computed
(()
=>
props
.
cancelBtnText
||
t
(
'common_module.cancel_btn_text'
))
const
confirmBtnText
=
computed
(()
=>
props
.
confirmBtnText
||
t
(
'common_module.confirm_btn_text'
))
const
emit
=
defineEmits
<
Emits
>
()
const
emit
=
defineEmits
<
Emits
>
()
const
slots
=
useSlots
()
const
slots
=
useSlots
()
...
@@ -101,7 +104,7 @@ function handleConfirm() {
...
@@ -101,7 +104,7 @@ function handleConfirm() {
<div
v-else
class=
"flex w-full items-center justify-end"
>
<div
v-else
class=
"flex w-full items-center justify-end"
>
<NButton
color=
"#F5F5F5"
round
class=
"h-[34px]! px-6! min-w-[96px]! text-font-color!"
@
click=
"handleCloseModal"
>
<NButton
color=
"#F5F5F5"
round
class=
"h-[34px]! px-6! min-w-[96px]! text-font-color!"
@
click=
"handleCloseModal"
>
{{
t
(
cancelBtnText
)
}}
{{
cancelBtnText
}}
</NButton>
</NButton>
<NButton
<NButton
:loading=
"btnLoading"
:loading=
"btnLoading"
...
@@ -113,7 +116,7 @@ function handleConfirm() {
...
@@ -113,7 +116,7 @@ function handleConfirm() {
class=
"h-[34px]! px-6! ml-4! min-w-[96px]!"
class=
"h-[34px]! px-6! ml-4! min-w-[96px]!"
@
click=
"handleConfirm"
@
click=
"handleConfirm"
>
>
{{
t
(
confirmBtnText
)
}}
{{
confirmBtnText
}}
</NButton>
</NButton>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/personal-space/personal-app-setting/components/agent-associated-knowledge.vue
View file @
30ad0436
...
@@ -87,7 +87,7 @@ function handleCloseAssociatedKnowledgeModal() {
...
@@ -87,7 +87,7 @@ function handleCloseAssociatedKnowledgeModal() {
@
update:expanded-names=
"handleUpdateKnowledgeConfigExpandedNames"
@
update:expanded-names=
"handleUpdateKnowledgeConfigExpandedNames"
>
>
<template
#
arrow
>
<template
#
arrow
>
<RightOne
theme=
"
multi-color"
size=
"17"
fill=
"#33
3"
/>
<RightOne
theme=
"
filled"
size=
"17"
fill=
"#333"
:stroke-width=
"
3"
/>
</
template
>
</
template
>
<NCollapseItem
<NCollapseItem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment