From 20307f0ddddf6fb2fb5388eddcfca10b56135c81 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 9 Apr 2024 17:54:10 +0700 Subject: [PATCH] fix: form variable name --- src/components/FormDialog.vue | 399 +++++++++++++++++----------------- 1 file changed, 205 insertions(+), 194 deletions(-) diff --git a/src/components/FormDialog.vue b/src/components/FormDialog.vue index 6e69f4f3..a058a683 100644 --- a/src/components/FormDialog.vue +++ b/src/components/FormDialog.vue @@ -4,21 +4,19 @@ import AppBox from 'components/app/AppBox.vue'; defineProps<{ title: string; - addressLocaleTitle: string; - addressEngTitle: string; + addressTitle: string; + addressENTitle: string; + submit?: (...args: unknown[]) => void; + close?: (...args: unknown[]) => void; }>(); -interface Address { - address: string; - province: string; - district: string; - subDistrict: string; - zip: string; -} - const modal = defineModel('modal', { default: false }); -const addressL = defineModel
('addressL'); -const addressEng = defineModel
('addressEng'); +const address = defineModel('address', { default: '' }); +const addressEN = defineModel('addressEN', { default: '' }); +const provinceId = defineModel('provinceId'); +const districtId = defineModel('districtId'); +const subDistrictId = defineModel('subDistrictId'); +const zipCode = defineModel('zipCode', { default: '' }); const addrOptions = ref({ provinceOps: [ @@ -37,194 +35,207 @@ const addrOptions = ref({