iter(g04): dataTable 筛选框加搜索图标前缀

This commit is contained in:
HIsheR
2026-10-23 19:05:46 +08:00
parent 5131977f54
commit c0bb8d705d
+1
View File
@@ -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 });