mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 17:50:25 +08:00
fix(demo): 修复form demo的远程搜索不会触发的bug (#3770)
This commit is contained in:
parent
c58c1929c1
commit
44b1877eae
@ -48,7 +48,7 @@
|
||||
labelField="name"
|
||||
valueField="id"
|
||||
:params="searchParams"
|
||||
@search="useDebounceFn(onSearch, 300)"
|
||||
@search="debounceOptionsFn"
|
||||
/>
|
||||
</template>
|
||||
</BasicForm>
|
||||
@ -71,6 +71,7 @@
|
||||
import { areaRecord } from '@/api/demo/cascader';
|
||||
import { uploadApi } from '@/api/sys/upload';
|
||||
|
||||
let debounceOptionsFn = useDebounceFn(onSearch, 300)
|
||||
const valueSelectA = ref<string[]>([]);
|
||||
const valueSelectB = ref<string[]>([]);
|
||||
const options = ref<Required<SelectProps>['options']>([]);
|
||||
@ -411,7 +412,7 @@
|
||||
params: {
|
||||
id: 1,
|
||||
},
|
||||
|
||||
|
||||
resultField: 'list',
|
||||
// use name as label
|
||||
labelField: 'name',
|
||||
|
Loading…
Reference in New Issue
Block a user