u
This commit is contained in:
1 parent
0be0b0767a
commit
5f28a10d89
852 files changed
+8962
-111755
No files matched your search
@@ -19,7 +19,7 @@ const users = [
|
||||
:options="users"
|
||||
label-key="name"
|
||||
value-key="id"
|
||||
allow-clear
|
||||
clearable
|
||||
placeholder="选择负责人"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -22,16 +22,16 @@ function filterOption(input: string, option: unknown) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<G3Space direction="vertical" :size="12" style="display: flex; width: 260px">
|
||||
<G3Space vertical :size="12" style="display: flex; width: 260px">
|
||||
<!-- 默认筛选:label / value 包含匹配 -->
|
||||
<G3Select v-model="value" :options="options" allow-clear placeholder="输入即可筛选" />
|
||||
<G3Select v-model="value" :options="options" clearable placeholder="输入即可筛选" />
|
||||
|
||||
<!-- 自定义筛选函数 -->
|
||||
<G3Select
|
||||
v-model="keyword"
|
||||
:options="options"
|
||||
:filter-option="filterOption"
|
||||
allow-clear
|
||||
clearable
|
||||
placeholder="请输入关键词"
|
||||
/>
|
||||
</G3Space>
|
||||
|
||||
@@ -31,7 +31,7 @@ function onSearch(keyword: string) {
|
||||
:options="options"
|
||||
:loading="loading"
|
||||
:remote="true"
|
||||
allow-clear
|
||||
clearable
|
||||
not-found-text="无匹配结果"
|
||||
placeholder="请输入关键词"
|
||||
@search="onSearch"
|
||||
|
||||
Reference in new issue
Block a user