@dazhicheng/ui 1.4.18 → 1.4.19

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.
@@ -1,11 +1,11 @@
1
- import { ExtendedFormApi, VbenFormProps } from 'vben-core-form-ui';
2
1
  import { MaybeRef, Ref } from 'vue';
3
2
  import { VxeGridMethods } from 'vxe-table';
4
3
  import { TtSelectRowKeysType, TtTableMethods, TtTableProps } from '../types/table';
5
4
  import { TableFormApi } from '../utils/table-form-api';
6
5
  import { TtTableToolsProps } from './tableTools';
7
- export type TtTableFormRenderFormProps = Partial<VbenFormProps>;
8
- export type TtTableRenderFormInstance = ExtendedFormApi;
6
+ import { TtExtendedFormApi, TtFormProps } from '../../../tt-form';
7
+ export type TtTableFormRenderFormProps = Partial<TtFormProps>;
8
+ export type TtTableRenderFormInstance = TtExtendedFormApi;
9
9
  export type TtTableFormProps = {
10
10
  /** 双向绑定的表格数据 */
11
11
  tableData?: Array<Recordable>;
@@ -40,7 +40,7 @@ export type TtTableFormInstance = {
40
40
  };
41
41
  export type TtTableFormActionType = {
42
42
  setTableProps: (props: Partial<TtTableProps>) => void;
43
- setFormProps: ExtendedFormApi["setState"];
43
+ setFormProps: TtExtendedFormApi["setState"];
44
44
  tableMethods: TtTableMethods;
45
45
  formMethods: TtTableRenderFormInstance;
46
46
  /** 设置props */
@@ -88,17 +88,6 @@ declare class TableApi {
88
88
  * @param {boolean} loading
89
89
  */
90
90
  setLoading(loading: boolean): void;
91
- /**
92
- * @description: 获取表格columns
93
- * @return {VxeGridPropTypes.Columns<DT> | undefined}
94
- */
95
- getCacheColumns(): any;
96
- /**
97
- * @description: 设置表格columns
98
- * @param {VxeGridPropTypes.Columns<DT>} columns columns
99
- * @return {*}
100
- */
101
- setCacheColumns(columns: VxeGridPropTypes.Columns<VxeTablePropTypes.Row>): void;
102
91
  /**
103
92
  * @description: 获取表格pagination
104
93
  * @return {VxeGridPropTypes.PagerConfig | undefined}
@@ -232,10 +221,6 @@ declare class TableApi {
232
221
  * @param row 指定行
233
222
  */
234
223
  reloadTreeExpand(row: VxeTablePropTypes.Row): void;
235
- /**
236
- * @description: 获取表格服务端自定义插槽
237
- */
238
- getHttpFieldsSlot(): any;
239
224
  /** 获取表格实例 */
240
225
  getTableInstance(): VxeGridInstance;
241
226
  /**
@@ -1,5 +1,5 @@
1
1
  import { VxeGridInstance } from 'vxe-table';
2
- import { ExtendedFormApi } from 'vben-core-form-ui';
2
+ import { TtExtendedFormApi } from '../../../tt-form';
3
3
  import { FetchParams, TtTableExtendedTableApi, TtTableProps } from '../types/table';
4
4
  import { TtTableFormActionType, TtTableFormProps, TtTableFormRenderFormProps } from '../types/tableForm';
5
5
  import { Store } from '@tanstack/vue-store';
@@ -15,7 +15,7 @@ import { Store } from '@tanstack/vue-store';
15
15
  */
16
16
  declare class TableFormApi {
17
17
  /** form 表单实例(FormApi) */
18
- formApi: ExtendedFormApi;
18
+ formApi: TtExtendedFormApi;
19
19
  /** 表格 API 实例(TableApi) */
20
20
  tableApi: TtTableExtendedTableApi;
21
21
  /** vxe-grid 表格实例 */
@@ -38,7 +38,7 @@ declare class TableFormApi {
38
38
  * @param instance 表单操作方法实例
39
39
  * @param formApi 表单实例
40
40
  */
41
- mount(instance: null | TtTableFormActionType, formApi: ExtendedFormApi): void;
41
+ mount(instance: null | TtTableFormActionType, formApi: TtExtendedFormApi): void;
42
42
  /**
43
43
  * 更新表单+表格的数据
44
44
  * @param stateOrFn 新状态或返回新状态的函数
@@ -56,7 +56,7 @@ declare class TableFormApi {
56
56
  /**
57
57
  * 获取表单实例
58
58
  */
59
- formInstance(): ExtendedFormApi;
59
+ formInstance(): import('../../../tt-form/src/types').ExtendedFormApi;
60
60
  /**
61
61
  * 获取 vxe-grid 表格实例
62
62
  */
@@ -5,6 +5,16 @@ export type Nullable<T> = T | null;
5
5
  export type Recordable<T = any> = Record<string, T>;
6
6
  export type TtUiGlobalConfig = {
7
7
  table?: {
8
+ /**
9
+ * 是否开启服务端缓存
10
+ * @default-false
11
+ */
12
+ useHttpCache?: boolean;
13
+ /**
14
+ * 默认展示的列
15
+ * @default-[]
16
+ */
17
+ defaultDisplayFields?: string[];
8
18
  /**
9
19
  * 是否开启框选到checkbox自动勾选 field
10
20
  * @default-false
@@ -181,15 +191,6 @@ export type TtUiGlobalConfig = {
181
191
  */
182
192
  submitTitle?: string;
183
193
  };
184
- icon: {
185
- dragIcon: "ylwicon-tuozhuai";
186
- closeIcon: "ylwicon-guanbi";
187
- topIcon: "ylwicon-zhiding";
188
- fixedIcon: "ylwicon-weiguding";
189
- unFixedIcon: "ylwicon-yiguding";
190
- fixedRightIcon: "ylwicon-weiguding1";
191
- unFixedRightIcon: "ylwicon-yiguding1";
192
- };
193
194
  TtSelect?: {
194
195
  /**
195
196
  * 响应结果不分页字段