fix(03): br select when create
This commit is contained in:
parent
6a298cfae0
commit
3c60a902b4
1 changed files with 9 additions and 5 deletions
|
|
@ -46,6 +46,12 @@ defineEmits<{
|
||||||
(e: 'filterOwnerBranch', val: string, update: void): void;
|
(e: 'filterOwnerBranch', val: string, update: void): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const branchOptions = ref<Record<string, unknown>[]>([]);
|
||||||
|
let branchFilter: (
|
||||||
|
value: string,
|
||||||
|
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
|
||||||
|
) => void;
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => optionsBranch.value,
|
() => optionsBranch.value,
|
||||||
() => {
|
() => {
|
||||||
|
|
@ -57,11 +63,9 @@ watch(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const branchOptions = ref<Record<string, unknown>[]>([]);
|
onMounted(() => {
|
||||||
let branchFilter: (
|
branchFilter = selectFilterOptionRefMod(optionsBranch, branchOptions, 'name');
|
||||||
value: string,
|
});
|
||||||
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
|
|
||||||
) => void;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue