@vanstack/solid-ark 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,7 +121,8 @@ function V(c) {
|
|
|
121
121
|
showSearchActions: !0
|
|
122
122
|
}, c), d = h(() => l.searchFields ?? []), x = h(() => d().map((e) => ({
|
|
123
123
|
...e,
|
|
124
|
-
label: void 0
|
|
124
|
+
label: void 0,
|
|
125
|
+
clearable: e.clearable ?? !0
|
|
125
126
|
}))), S = h(() => l.data !== void 0), w = h(() => c.selectable ?? !!c.onSelectionChange), T = (e, t) => typeof e.show == "function" ? e.show(t) : e.show !== !1, E = (e, t) => typeof e.disabled == "function" ? e.disabled(t) : e.disabled === !0, [D, O] = g(l.searchValues ?? {}), [k, A] = g(l.searchValues ?? {});
|
|
126
127
|
ee(te(() => l.searchValues, (e) => {
|
|
127
128
|
e && O(() => e);
|
|
@@ -51,7 +51,7 @@ export type DataTableColumnDef<TData> = {
|
|
|
51
51
|
/** 取数函数:接收表单值与查询参数,返回当前页数据与总条数 */
|
|
52
52
|
export type DataTableSearchHandler<TData, TSearch> = (values: TSearch, query: DataTableQuery) => DataTableResult<TData> | Promise<DataTableResult<TData>> | Promise<void> | undefined | void;
|
|
53
53
|
export interface DataTableProps<TData, TSearch extends Record<string, unknown> = Record<string, unknown>> {
|
|
54
|
-
/**
|
|
54
|
+
/** 搜索表单字段;不传或为空数组时不渲染搜索区;默认开启 clearable,字段上显式 clearable: false 可关闭 */
|
|
55
55
|
searchFields?: FieldConfig[];
|
|
56
56
|
/** 搜索表单初始值;引用变化时同步进表单(不自动触发查询) */
|
|
57
57
|
searchValues?: Partial<TSearch>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanstack/solid-ark",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"vite-plugin-solid": "^2.11.0",
|
|
72
72
|
"vitest": "^4.1.10",
|
|
73
73
|
"zod": "^4.4.0",
|
|
74
|
-
"@vanstack/eslint-config": "0.0.1",
|
|
75
74
|
"@vanstack/prettier-config": "0.0.1",
|
|
75
|
+
"@vanstack/eslint-config": "0.0.1",
|
|
76
76
|
"@vanstack/vite-config": "0.0.2",
|
|
77
77
|
"@vanstack/tsconfig": "0.0.1"
|
|
78
78
|
},
|