@dazhicheng/ui 1.4.21 → 1.4.22

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.
@@ -9,6 +9,25 @@ export type TtUiGlobalConfig = {
9
9
  */
10
10
  userId?: string | number;
11
11
  table?: {
12
+ /** 自定义列服务端配置接口 - 获取 */
13
+ getColumnsApi?: (params: {
14
+ columnsKey: string;
15
+ userId: string | number;
16
+ }) => Promise<{
17
+ data: any;
18
+ }>;
19
+ /** 自定义列服务端配置接口 - 当没有id值得时候 */
20
+ setColumnsApi?: (params: {
21
+ columnKey: string;
22
+ columns: string[];
23
+ userId: string | number;
24
+ }) => Promise<any>;
25
+ /** 自定义列服务端配置接口 - 当有id值得时候 */
26
+ updateColumnsApi?: (params: {
27
+ columnKey: string;
28
+ columns: string[];
29
+ userId: string | number;
30
+ }) => Promise<any>;
12
31
  /**
13
32
  * 是否开启服务端缓存
14
33
  * @default-false
package/dist/index.js CHANGED
@@ -26247,6 +26247,9 @@ const S6 = Se({
26247
26247
  }), k6 = Wt(S6), Ie = {
26248
26248
  userId: void 0,
26249
26249
  table: {
26250
+ getColumnsApi: void 0,
26251
+ setColumnsApi: void 0,
26252
+ updateColumnsApi: void 0,
26250
26253
  isAreaCheckboxSelection: !1,
26251
26254
  currentPageField: "pageIndex",
26252
26255
  pageSizeField: "pageSize",
@@ -32666,7 +32669,7 @@ const m3 = ["data-testid"], h3 = ["data-testid"], p3 = /* @__PURE__ */ Se({
32666
32669
  }), S.value.useHttpCache && await z({
32667
32670
  userId: Ie.userId,
32668
32671
  columnKey: S.value.columnsKey,
32669
- columns: T.checkedModel
32672
+ columns: JSON.stringify(T.checkedModel)
32670
32673
  });
32671
32674
  const q = ((de = (ge = w.value) == null ? void 0 : ge.table) == null ? void 0 : de.columns) || [], Y = new Map(q.map((Te) => [Te.field, Te])), te = T.checkedModel.map((Te) => Y.get(Te)).filter(Boolean);
32672
32675
  s.tableApi.setTableColumns(te), T.modalApi.setModalProps({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",