u
This commit is contained in:
1 parent
e99a9fb274
commit
0be0b0767a
788 files changed
+112023
-14941
No files matched your search
@@ -15,6 +15,5 @@ const options = [
|
||||
<template>
|
||||
<div style="width: 240px">
|
||||
<G3Select v-model="value" :options="options" placeholder="请选择环境" />
|
||||
<p style="margin: 8px 0 0; font-size: 13px; color: #6b7280">选中:{{ value ?? '(未选)' }}</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -32,7 +32,7 @@ function filterOption(input: string, option: unknown) {
|
||||
:options="options"
|
||||
:filter-option="filterOption"
|
||||
allow-clear
|
||||
placeholder="支持拼音筛选,试试 bj"
|
||||
placeholder="请输入关键词"
|
||||
/>
|
||||
</G3Space>
|
||||
</template>
|
||||
@@ -34,12 +34,12 @@ onMounted(loadPage)
|
||||
v-model="value"
|
||||
:options="options"
|
||||
:loading="loading"
|
||||
placeholder="滚动到底部加载更多"
|
||||
placeholder="请选择"
|
||||
@load-more="loadPage"
|
||||
>
|
||||
<template #footer="{ loading: isLoading }">
|
||||
<div style="padding: 6px; color: #6b7280; font-size: 12px; text-align: center">
|
||||
{{ isLoading ? '加载中…' : `已加载 ${options.length} 条` }}
|
||||
{{ isLoading ? '加载中…' : '' }}
|
||||
</div>
|
||||
</template>
|
||||
</G3Select>
|
||||
|
||||
@@ -16,6 +16,5 @@ const options = [
|
||||
<template>
|
||||
<div style="width: 260px">
|
||||
<G3Select v-model="selected" :options="options" multiple placeholder="选择权限" />
|
||||
<p style="margin: 8px 0 0; font-size: 13px; color: #6b7280">已选:{{ selected }}</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -32,8 +32,8 @@ function onSearch(keyword: string) {
|
||||
:loading="loading"
|
||||
:remote="true"
|
||||
allow-clear
|
||||
not-found-text="输入关键词开始搜索"
|
||||
placeholder="输入后异步搜索"
|
||||
not-found-text="无匹配结果"
|
||||
placeholder="请输入关键词"
|
||||
@search="onSearch"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user