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;
|
||||
}>();
|
||||
|
||||
const branchOptions = ref<Record<string, unknown>[]>([]);
|
||||
let branchFilter: (
|
||||
value: string,
|
||||
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
|
||||
) => void;
|
||||
|
||||
watch(
|
||||
() => optionsBranch.value,
|
||||
() => {
|
||||
|
|
@ -57,11 +63,9 @@ watch(
|
|||
},
|
||||
);
|
||||
|
||||
const branchOptions = ref<Record<string, unknown>[]>([]);
|
||||
let branchFilter: (
|
||||
value: string,
|
||||
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
|
||||
) => void;
|
||||
onMounted(() => {
|
||||
branchFilter = selectFilterOptionRefMod(optionsBranch, branchOptions, 'name');
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue