feat:【ele】【pay 支付】pay/app 代码优化 3/4(对齐 ele 和 antd)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user