iter(g04): dataTable 筛选框加搜索图标前缀
This commit is contained in:
@@ -156,6 +156,7 @@ export function dataTable<T extends { id: RowKey }>(props: DataTableProps<T>): H
|
|||||||
|
|
||||||
const filterInput = textField({
|
const filterInput = textField({
|
||||||
placeholder: `筛选 ${filterKey}…`,
|
placeholder: `筛选 ${filterKey}…`,
|
||||||
|
prefix: '🔍',
|
||||||
disabled: props.loading, // 加载中禁止筛选,避免与在途结果竞争
|
disabled: props.loading, // 加载中禁止筛选,避免与在途结果竞争
|
||||||
onInput: (value) => {
|
onInput: (value) => {
|
||||||
table.dispatch({ type: 'setFilter', key: filterKey, value });
|
table.dispatch({ type: 'setFilter', key: filterKey, value });
|
||||||
|
|||||||
Reference in New Issue
Block a user