feat: add simple branch no parameter for select customer
This commit is contained in:
parent
7d71f0498f
commit
5ea09453dc
2 changed files with 18 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ defineEmits<{
|
|||
|
||||
type ExclusiveProps = {
|
||||
simple?: boolean;
|
||||
simpleBranchNo?: boolean;
|
||||
};
|
||||
|
||||
const props = defineProps<SelectProps<typeof getList> & ExclusiveProps>();
|
||||
|
|
@ -87,6 +88,7 @@ onMounted(async () => {
|
|||
v-if="typeof opt === 'object'"
|
||||
:data="opt"
|
||||
:simple
|
||||
:simple-branch-no
|
||||
single-line
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -110,7 +112,7 @@ onMounted(async () => {
|
|||
|
||||
<template #option="{ opt, scope }">
|
||||
<q-item v-bind="scope.itemProps">
|
||||
<SelectCustomerItem :data="opt" :simple />
|
||||
<SelectCustomerItem :data="opt" :simple :simple-branch-no />
|
||||
</q-item>
|
||||
|
||||
<q-separator class="q-mx-sm" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue