chore: remove unuse
This commit is contained in:
parent
6fb044121c
commit
65ae02d935
1 changed files with 1 additions and 15 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted, watch, reactive, ref } from 'vue';
|
||||
import { onMounted, watch, reactive } from 'vue';
|
||||
import useAddressStore, {
|
||||
District,
|
||||
Province,
|
||||
|
|
@ -28,14 +28,6 @@ const subDistrictId = defineModel<string | null | undefined>('subDistrictId');
|
|||
const zipCode = defineModel<string | null | undefined>('zipCode');
|
||||
const sameWithEmployer = defineModel<boolean>('sameWithEmployer');
|
||||
|
||||
const refProvinceTh = ref<null | { resetValidation: () => null }>(null);
|
||||
const refDistTh = ref<null | { resetValidation: () => null }>(null);
|
||||
const refSubDistTh = ref<null | { resetValidation: () => null }>(null);
|
||||
|
||||
const refProvinceEn = ref<null | { resetValidation: () => null }>(null);
|
||||
const refDistEn = ref<null | { resetValidation: () => null }>(null);
|
||||
const refSubDistEn = ref<null | { resetValidation: () => null }>(null);
|
||||
|
||||
const addrOptions = reactive<{
|
||||
provinceOps: Province[];
|
||||
districtOps: District[];
|
||||
|
|
@ -141,7 +133,6 @@ watch(districtId, fetchSubDistrict);
|
|||
"
|
||||
/>
|
||||
<q-select
|
||||
ref="refProvinceTh"
|
||||
:id="`${id !== undefined ? `select-province-${id}` : 'select-province'}`"
|
||||
:dense="dense"
|
||||
:readonly="readonly || sameWithEmployer"
|
||||
|
|
@ -169,7 +160,6 @@ watch(districtId, fetchSubDistrict);
|
|||
/>
|
||||
|
||||
<q-select
|
||||
ref="refDistTh"
|
||||
:id="`${id !== undefined ? `select-district-${id}` : 'select-district'}`"
|
||||
:dense="dense"
|
||||
:readonly="readonly || sameWithEmployer"
|
||||
|
|
@ -196,7 +186,6 @@ watch(districtId, fetchSubDistrict);
|
|||
@update:model-value="subDistrictId = zipCode = null"
|
||||
/>
|
||||
<q-select
|
||||
ref="refSubDistTh"
|
||||
:id="`${id !== undefined ? `select-sub-district-${id}` : 'select-sub-district'}`"
|
||||
:dense="dense"
|
||||
:readonly="readonly || sameWithEmployer"
|
||||
|
|
@ -256,7 +245,6 @@ watch(districtId, fetchSubDistrict);
|
|||
"
|
||||
/>
|
||||
<q-select
|
||||
ref="refProvinceEn"
|
||||
:id="`${id !== undefined ? `select-province-en-${id}` : 'select-province-en'}`"
|
||||
hide-bottom-space
|
||||
:dense="dense"
|
||||
|
|
@ -283,7 +271,6 @@ watch(districtId, fetchSubDistrict);
|
|||
@update:model-value="districtId = subDistrictId = zipCode = null"
|
||||
/>
|
||||
<q-select
|
||||
ref="refDistEn"
|
||||
:id="`${id !== undefined ? `select-district-en-${id}` : 'select-district-en'}`"
|
||||
hide-bottom-space
|
||||
:dense="dense"
|
||||
|
|
@ -310,7 +297,6 @@ watch(districtId, fetchSubDistrict);
|
|||
@update:model-value="subDistrictId = zipCode = null"
|
||||
/>
|
||||
<q-select
|
||||
ref="refSubDistEn"
|
||||
:id="`${id !== undefined ? `select-sub-district-en-${id}` : 'select-sub-district-en'}`"
|
||||
hide-bottom-space
|
||||
:dense="dense"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue