Commit 30ad0436 authored by nick zheng's avatar nick zheng

chore: 弹窗按钮多语言提醒及应用关联知识库折叠icon

parent 74b3b6f9
...@@ -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>
......
...@@ -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="#333" /> <RightOne theme="filled" size="17" fill="#333" :stroke-width="3" />
</template> </template>
<NCollapseItem <NCollapseItem
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment