We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、远程搜索很常见 2、显示格式可能不是纯文本
const list = ref([]); const loading = ref(false); const filterVal = ref(''); async function handleSearch(word: string) { const { items } = await $http.get('/xxx', { params: { word }, }); list.value = items; }
<wd-select-picker v-model:filterVal="filterVal" filterable filter-mode="remote" @search="handleSearch" :columns="list" :loading="loading"> <template #item="{ item }"> <view class="text-left"> <text style="font-weight: bold">{{ item.user_name }}</text> <text>({{ item.employee?.emp_no }})</text> <wd-divider vertical /> <text>{{ item.employee?.position?.parameter_desc ?? '-未知职位-' }}</text> <wd-divider vertical /> <text>{{ item.employee?.dept?.dept_name ?? '-未知部门-' }}</text> <wd-divider vertical /> <text>{{ item.employee?.dept?.dept_name ?? '-未知部门-' }}</text> <wd-divider vertical /> <text>{{ item.employee?.dept?.dept_name ?? '-未知部门-' }}</text> </view> </template> </wd-select-picker>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这个功能解决了什么问题?
1、远程搜索很常见
2、显示格式可能不是纯文本
你期望的 API 是什么样子的?
The text was updated successfully, but these errors were encountered: