feat:【ele】【pay 支付】pay/app 代码优化 3/4(对齐 ele 和 antd)

This commit is contained in:
YunaiV
2025-10-05 20:13:32 +08:00
parent b2e2fe7ccb
commit 22b0496428
9 changed files with 673 additions and 957 deletions

View File

@@ -17,8 +17,8 @@ const emit = defineEmits(['success']);
const formData = ref<PayAppApi.App>();
const title = computed(() => {
return formData.value?.id
? $t('ui.actionTitle.edit', '应用')
: $t('ui.actionTitle.create', '应用');
? $t('ui.actionTitle.edit', ['应用'])
: $t('ui.actionTitle.create', ['应用']);
});
const [Form, formApi] = useVbenForm({
@@ -77,7 +77,7 @@ const [Modal, modalApi] = useVbenModal({
});
</script>
<template>
<Modal :close-on-click-modal="false" :title="title" class="w-2/5">
<Modal :title="title" class="w-2/5">
<Form />
</Modal>
</template>

View File

@@ -18,8 +18,8 @@ const emit = defineEmits(['success']);
const formData = ref<any>();
const title = computed(() => {
return formData.value?.id === 0
? $t('ui.actionTitle.create', '应用')
: $t('ui.actionTitle.edit', '应用');
? $t('ui.actionTitle.create', ['渠道'])
: $t('ui.actionTitle.edit', ['渠道']);
});
const [Form, formApi] = useVbenForm({
@@ -54,7 +54,7 @@ const [Modal, modalApi] = useVbenModal({
modalApi.unlock();
}
},
onOpenChange: async (isOpen) => {
async onOpenChange(isOpen: boolean) {
if (!isOpen) {
formData.value = undefined;
return;