fix: tab style decoration
This commit is contained in:
parent
0c2b624d0d
commit
f3a0e2ba6c
2 changed files with 38 additions and 36 deletions
|
|
@ -56,10 +56,11 @@ const employerBranchCode = defineModel<string>('employerBranchCode');
|
||||||
:readonly="true"
|
:readonly="true"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-4"
|
class="col-3"
|
||||||
:label="$t('legalEntityCode')"
|
:label="$t('legalEntityCode')"
|
||||||
v-model="legalEntityCode"
|
v-model="legalEntityCode"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
v-if="typeCustomer === 'customerLegalEntity'"
|
v-if="typeCustomer === 'customerLegalEntity'"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
|
|
@ -67,20 +68,31 @@ const employerBranchCode = defineModel<string>('employerBranchCode');
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-5"
|
class="col-3"
|
||||||
:label="$t('taxNo')"
|
:label="$t('customerEnglishName')"
|
||||||
v-model="taxNo"
|
v-model="customerEnglishName"
|
||||||
|
/>
|
||||||
|
<q-input
|
||||||
|
:dense="dense"
|
||||||
|
:outlined="!readonly"
|
||||||
|
:readonly="readonly"
|
||||||
|
:borderless="readonly"
|
||||||
|
hide-bottom-space
|
||||||
|
class="col-3"
|
||||||
|
:label="$t('customerName')"
|
||||||
|
v-model="customerName"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<q-input
|
<q-input
|
||||||
|
v-if="typeCustomer === 'customerLegalEntity'"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
:outlined="!readonly"
|
:outlined="!readonly"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col"
|
class="col-6"
|
||||||
:label="$t('customerName')"
|
:label="$t('taxNo')"
|
||||||
v-model="customerName"
|
v-model="taxNo"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
v-if="typeCustomer === 'customerLegalEntity'"
|
v-if="typeCustomer === 'customerLegalEntity'"
|
||||||
|
|
@ -90,8 +102,19 @@ const employerBranchCode = defineModel<string>('employerBranchCode');
|
||||||
:borderless="readonly"
|
:borderless="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-6"
|
class="col-6"
|
||||||
:label="$t('customerEnglishName')"
|
:label="$t('registerName')"
|
||||||
v-model="customerEnglishName"
|
v-model="registerName"
|
||||||
|
/>
|
||||||
|
<q-input
|
||||||
|
v-if="typeCustomer === 'customerLegalEntity'"
|
||||||
|
:dense="dense"
|
||||||
|
:outlined="!readonly"
|
||||||
|
:readonly="readonly"
|
||||||
|
:borderless="readonly"
|
||||||
|
hide-bottom-space
|
||||||
|
class="col-3"
|
||||||
|
:label="$t('authorizedCapital')"
|
||||||
|
v-model="authorizedCapital"
|
||||||
/>
|
/>
|
||||||
<VueDatePicker
|
<VueDatePicker
|
||||||
v-if="typeCustomer === 'customerLegalEntity'"
|
v-if="typeCustomer === 'customerLegalEntity'"
|
||||||
|
|
@ -137,28 +160,6 @@ const employerBranchCode = defineModel<string>('employerBranchCode');
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</VueDatePicker>
|
</VueDatePicker>
|
||||||
<q-input
|
|
||||||
v-if="typeCustomer === 'customerLegalEntity'"
|
|
||||||
:dense="dense"
|
|
||||||
:outlined="!readonly"
|
|
||||||
:readonly="readonly"
|
|
||||||
:borderless="readonly"
|
|
||||||
hide-bottom-space
|
|
||||||
class="col-3"
|
|
||||||
:label="$t('authorizedCapital')"
|
|
||||||
v-model="authorizedCapital"
|
|
||||||
/>
|
|
||||||
<q-input
|
|
||||||
v-if="typeCustomer === 'customerLegalEntity'"
|
|
||||||
:dense="dense"
|
|
||||||
:outlined="!readonly"
|
|
||||||
:readonly="readonly"
|
|
||||||
:borderless="readonly"
|
|
||||||
hide-bottom-space
|
|
||||||
class="col-6"
|
|
||||||
:label="$t('registerName')"
|
|
||||||
v-model="registerName"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<q-separator
|
<q-separator
|
||||||
|
|
|
||||||
|
|
@ -66,18 +66,19 @@ function close(index: number) {
|
||||||
<template>
|
<template>
|
||||||
<div class="row no-wrap">
|
<div class="row no-wrap">
|
||||||
<q-btn
|
<q-btn
|
||||||
class="q-px-lg tab-style app-text-muted"
|
class="q-px-lg bordered-b bordered-r app-text-muted"
|
||||||
flat
|
flat
|
||||||
|
:color="$q.dark.isActive ? 'primary' : ''"
|
||||||
style="background-color: var(--_body-bg)"
|
style="background-color: var(--_body-bg)"
|
||||||
@click="addData()"
|
@click="addData()"
|
||||||
icon="mdi-plus"
|
icon="mdi-plus"
|
||||||
:disable="readonly"
|
:disable="readonly"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
<q-tabs
|
<q-tabs
|
||||||
active-bg-color="white"
|
:active-bg-color="$q.dark.isActive ? 'dark' : 'white'"
|
||||||
active-color="primary"
|
:active-color="$q.dark.isActive ? 'white' : 'primary'"
|
||||||
indicator-color="transparent"
|
indicator-color="transparent"
|
||||||
active-class="active-tab"
|
active-class="bordered-r"
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
align="left"
|
align="left"
|
||||||
inline-label
|
inline-label
|
||||||
|
|
@ -91,7 +92,7 @@ function close(index: number) {
|
||||||
:label="`${$t('customerBranchFormTab')} ${index + 1}`"
|
:label="`${$t('customerBranchFormTab')} ${index + 1}`"
|
||||||
@click="tab = index"
|
@click="tab = index"
|
||||||
no-caps
|
no-caps
|
||||||
:class="tab === index ? '' : 'tab-style'"
|
:class="tab === index ? '' : 'bordered-b bordered-r'"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
round
|
round
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue