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

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

parent 74b3b6f9
......@@ -32,13 +32,16 @@ const props = withDefaults(defineProps<Props>(), {
borderRadius: 6,
btnLoading: false,
btnDisabled: false,
cancelBtnText: 'common_module.cancel_btn_text',
confirmBtnText: 'common_module.confirm_btn_text',
cancelBtnText: '',
confirmBtnText: '',
labelWidth: 80,
labelPlacement: 'left',
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 slots = useSlots()
......@@ -101,7 +104,7 @@ function handleConfirm() {
<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">
{{ t(cancelBtnText) }}
{{ cancelBtnText }}
</NButton>
<NButton
:loading="btnLoading"
......@@ -113,7 +116,7 @@ function handleConfirm() {
class="h-[34px]! px-6! ml-4! min-w-[96px]!"
@click="handleConfirm"
>
{{ t(confirmBtnText) }}
{{ confirmBtnText }}
</NButton>
</div>
</template>
......
......@@ -87,7 +87,7 @@ function handleCloseAssociatedKnowledgeModal() {
@update:expanded-names="handleUpdateKnowledgeConfigExpandedNames"
>
<template #arrow>
<RightOne theme="multi-color" size="17" fill="#333" />
<RightOne theme="filled" size="17" fill="#333" :stroke-width="3" />
</template>
<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