fix: 02 form user type i18n
This commit is contained in:
parent
9e1c4f6736
commit
16ff59b705
1 changed files with 13 additions and 2 deletions
|
|
@ -105,12 +105,23 @@ onMounted(async () => {
|
|||
hide-bottom-space
|
||||
class="col-6"
|
||||
option-value="value"
|
||||
option-label="label"
|
||||
:label="$t('formDialogInputUserType')"
|
||||
v-model="userType"
|
||||
:options="userStore.userOption.userTypeOpts"
|
||||
:rules="[(val: string) => !!val || $t('formDialogInputUserTypeValidate')]"
|
||||
/>
|
||||
>
|
||||
<template v-slot:option="scope">
|
||||
<q-item v-if="scope.opt" v-bind="scope.itemProps">
|
||||
{{ $t(scope.opt.label) }}
|
||||
</q-item>
|
||||
</template>
|
||||
|
||||
<template v-slot:selected-item="scope">
|
||||
<div v-if="scope.opt">
|
||||
{{ $t(scope.opt.label) }}
|
||||
</div>
|
||||
</template>
|
||||
</q-select>
|
||||
<q-select
|
||||
id="select-user-role"
|
||||
:dense="dense"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue