feat(01): webUrl contract

This commit is contained in:
puriphatt 2024-08-29 12:03:54 +07:00
parent c44dc9aaf3
commit 7caf0dfdd9
5 changed files with 25 additions and 0 deletions

View file

@ -3,6 +3,7 @@ const telephoneNo = defineModel<string>('telephoneNo');
const contact = defineModel<string>('contact');
const email = defineModel<string>('email');
const contactName = defineModel<string>('contactName');
const webUrl = defineModel<string>('webUrl');
// const operatingHours = defineModel<string>('operatingHours');
const lineId = defineModel<string>('lineId');
const typeBranch = defineModel<string>('typeBranch');
@ -127,6 +128,23 @@ defineProps<{
/>
</template>
</q-input>
<q-input
lazy-rules="ondemand"
:dense="dense"
outlined
:readonly="readonly"
hide-bottom-space
class="col-6 col-md-4"
:label="$t('branch.form.webUrl')"
for="input-web-url"
:model-value="readonly ? webUrl || '-' : webUrl"
@update:model-value="(v) => (typeof v === 'string' ? (webUrl = v) : '')"
>
<template #prepend>
<q-icon color="primary" name="mdi-web" size="xs" class="q-mr-xs" />
</template>
</q-input>
</div>
</div>
</template>