@dazhicheng/ui 1.5.0 → 1.5.3

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.
@@ -633,7 +633,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
633
633
  };
634
634
  showLineHeight: {
635
635
  type: BooleanConstructor;
636
- default: () => boolean | undefined;
636
+ default: () => any;
637
637
  };
638
638
  notSetColumnField: any;
639
639
  filterNoVisibleField: any;
@@ -911,7 +911,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
911
911
  };
912
912
  showLineHeight: {
913
913
  type: BooleanConstructor;
914
- default: () => boolean | undefined;
914
+ default: () => any;
915
915
  };
916
916
  notSetColumnField: any;
917
917
  filterNoVisibleField: any;
@@ -1,5 +1,5 @@
1
- import { VxeTableDefines } from 'vxe-table';
2
1
  import { TtModalExtendedModalApi } from '../../../tt-modal';
2
+ import { VxeTableDefines } from 'vxe-table';
3
3
  interface OpenModalParams {
4
4
  columns: VxeTableDefines.ColumnOptions[];
5
5
  displayFields?: string[];
@@ -749,10 +749,6 @@ declare function __VLS_template(): {
749
749
  };
750
750
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
751
751
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
752
- size: {
753
- type: import('vue').PropType<import("vxe-table").VxeGridPropTypes.Size>;
754
- default: () => import('vxe-pc-ui').VxeComponentSizeType | undefined;
755
- };
756
752
  showSetting: {
757
753
  type: BooleanConstructor;
758
754
  default: boolean;
@@ -765,27 +761,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
765
761
  type: BooleanConstructor;
766
762
  default: boolean;
767
763
  };
768
- useCache: {
769
- type: BooleanConstructor;
770
- default: boolean;
771
- };
772
764
  columnsKey: any;
773
- refreshIcon: {
774
- type: StringConstructor;
775
- default: string;
776
- };
777
- columnIcon: {
778
- type: StringConstructor;
779
- default: string;
780
- };
781
765
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
782
766
  "on-refresh": () => any;
783
767
  "on-columns-setting": () => any;
784
768
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
785
- size: {
786
- type: import('vue').PropType<import("vxe-table").VxeGridPropTypes.Size>;
787
- default: () => import('vxe-pc-ui').VxeComponentSizeType | undefined;
788
- };
789
769
  showSetting: {
790
770
  type: BooleanConstructor;
791
771
  default: boolean;
@@ -798,31 +778,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
798
778
  type: BooleanConstructor;
799
779
  default: boolean;
800
780
  };
801
- useCache: {
802
- type: BooleanConstructor;
803
- default: boolean;
804
- };
805
781
  columnsKey: any;
806
- refreshIcon: {
807
- type: StringConstructor;
808
- default: string;
809
- };
810
- columnIcon: {
811
- type: StringConstructor;
812
- default: string;
813
- };
814
782
  }>> & Readonly<{
815
783
  "onOn-refresh"?: (() => any) | undefined;
816
784
  "onOn-columns-setting"?: (() => any) | undefined;
817
785
  }>, {
818
- size: import('vxe-pc-ui').VxeComponentSizeType;
819
786
  columnsKey: any;
820
787
  showSetting: boolean;
821
788
  showSetColumn: boolean;
822
789
  showRefresh: boolean;
823
- useCache: boolean;
824
- refreshIcon: string;
825
- columnIcon: string;
826
790
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
827
791
  tooltipRef: (({
828
792
  $: import('vue').ComponentInternalInstance;
@@ -16,9 +16,5 @@ export declare function useCustomColumns({ getTableProps, tableMethods, getProps
16
16
  getProps: ComputedRef<TtTableFormProps>;
17
17
  }): {
18
18
  initCustomSetting: () => Promise<void>;
19
- saveColumns: (params: {
20
- columnKey: string;
21
- columns: string[];
22
- userId: string | number;
23
- }) => Promise<any>;
19
+ saveColumns: (json: string) => Promise<any>;
24
20
  };
@@ -66,20 +66,21 @@ export declare function useTableRender(options: TtTableProps): readonly [DefineS
66
66
  useHttpCache?: boolean;
67
67
  defaultDisplayFields?: string[];
68
68
  getColumnsApi?: (params: {
69
- columnsKey: string;
69
+ permissionOnlyCode: string;
70
70
  userId: string | number;
71
71
  }) => Promise<{
72
72
  data: any;
73
73
  }>;
74
74
  setColumnsApi?: (params: {
75
- columnKey: string;
76
- columns: string[];
75
+ permissionOnlyCode: string;
76
+ json: string;
77
77
  userId: string | number;
78
78
  }) => Promise<any>;
79
79
  updateColumnsApi?: (params: {
80
- columnKey: string;
81
- columns: string[];
80
+ permissionOnlyCode: string;
81
+ json: string;
82
82
  userId: string | number;
83
+ id: string | number;
83
84
  }) => Promise<any>;
84
85
  getSyncSlotComponent?: (column: any, row: any, type: "default" | "edit") => import('vue').VNode | import('vue').VNode[] | string;
85
86
  customizeColumn?: (column: import("vxe-table").VxeTableDefines.ColumnOptions) => import("vxe-table").VxeTableDefines.ColumnOptions;
@@ -30,7 +30,7 @@ export declare const tableProps: {
30
30
  /** 是否显示自定义行距 */
31
31
  showLineHeight: {
32
32
  type: BooleanConstructor;
33
- default: () => boolean | undefined;
33
+ default: () => any;
34
34
  };
35
35
  /** 不可自定义列数组 field数组 */
36
36
  notSetColumnField: any;
@@ -1,11 +1,4 @@
1
- import { PropType } from 'vue';
2
- import { VxeGridPropTypes } from 'vxe-table';
3
1
  export declare const toolProps: {
4
- /** 表格的size */
5
- size: {
6
- type: PropType<VxeGridPropTypes.Size>;
7
- default: () => import('vxe-pc-ui').VxeComponentSizeType | undefined;
8
- };
9
2
  /** 是否显示设置 */
10
3
  showSetting: {
11
4
  type: BooleanConstructor;
@@ -21,21 +14,6 @@ export declare const toolProps: {
21
14
  type: BooleanConstructor;
22
15
  default: boolean;
23
16
  };
24
- /** 是否开启本地缓存 */
25
- useCache: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
17
  /** 储存的key */
30
18
  columnsKey: any;
31
- /** 刷新按钮icon */
32
- refreshIcon: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- /** 列设置icon */
37
- columnIcon: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
19
  };
@@ -187,22 +187,23 @@ export type TtTableProps = {
187
187
  defaultDisplayFields?: string[];
188
188
  /** 自定义列服务端配置接口 - 获取 */
189
189
  getColumnsApi?: (params: {
190
- columnsKey: string;
190
+ permissionOnlyCode: string;
191
191
  userId: string | number;
192
192
  }) => Promise<{
193
193
  data: any;
194
194
  }>;
195
195
  /** 自定义列服务端配置接口 - 当没有id值得时候 */
196
196
  setColumnsApi?: (params: {
197
- columnKey: string;
198
- columns: string[];
197
+ permissionOnlyCode: string;
198
+ json: string;
199
199
  userId: string | number;
200
200
  }) => Promise<any>;
201
201
  /** 自定义列服务端配置接口 - 当有id值得时候 */
202
202
  updateColumnsApi?: (params: {
203
- columnKey: string;
204
- columns: string[];
203
+ permissionOnlyCode: string;
204
+ json: string;
205
205
  userId: string | number;
206
+ id: string | number;
206
207
  }) => Promise<any>;
207
208
  /** 外部插槽 */
208
209
  getSyncSlotComponent?: (column: any, row: any, type: "default" | "edit") => VNode | VNode[] | string;
@@ -11,21 +11,21 @@ export type TtUiGlobalConfig = {
11
11
  table?: {
12
12
  /** 自定义列服务端配置接口 - 获取 */
13
13
  getColumnsApi?: (params: {
14
- columnsKey: string;
14
+ permissionOnlyCode: string;
15
15
  userId: string | number;
16
16
  }) => Promise<{
17
17
  data: any;
18
18
  }>;
19
19
  /** 自定义列服务端配置接口 - 当没有id值得时候 */
20
20
  setColumnsApi?: (params: {
21
- columnKey: string;
22
- columns: string[];
21
+ permissionOnlyCode: string;
22
+ json: string;
23
23
  userId: string | number;
24
24
  }) => Promise<any>;
25
25
  /** 自定义列服务端配置接口 - 当有id值得时候 */
26
26
  updateColumnsApi?: (params: {
27
- columnKey: string;
28
- columns: string[];
27
+ permissionOnlyCode: string;
28
+ json: string;
29
29
  userId: string | number;
30
30
  }) => Promise<any>;
31
31
  /**
@@ -115,8 +115,10 @@ export type TtUiGlobalConfig = {
115
115
  radioConfig?: VxeTablePropTypes.RadioConfig;
116
116
  /** 表格的size */
117
117
  size?: VxeGridPropTypes.Size;
118
+ /** 表格边框 */
119
+ border?: "full" | "inner" | boolean;
118
120
  /**
119
- * 是否开启本地缓存
121
+ * 是否开启缓存
120
122
  * @default-false 不开启
121
123
  */
122
124
  useCache?: boolean;
@@ -130,42 +132,15 @@ export type TtUiGlobalConfig = {
130
132
  * @default-true 显示
131
133
  */
132
134
  showSetting?: boolean;
133
- /**
134
- * 是否显示自定义列
135
- * @default-true 显示
136
- * @deprecated 已弃用,使用 showSetColumn 替换
137
- */
138
- showCustomColumn?: boolean;
139
135
  /**
140
136
  * 是否显示自定义列
141
137
  * @default-true 显示
142
138
  */
143
139
  showSetColumn?: boolean;
144
- /**
145
- * 是否显示自定义行距
146
- * @default-true 显示
147
- */
148
- showLineHeight?: boolean;
149
- /**
150
- * 是否显示行边框设置
151
- * @default-false 不显示
152
- */
153
- showSetRowBorder?: boolean;
154
- /**
155
- * 是否显示行高设置
156
- * @default-true 显示
157
- */
158
- showSetRowHeight?: boolean;
159
140
  /** 自定义函数 */
160
141
  customizeColumn?: TtTableProps["customizeColumn"];
161
142
  /** 外部插槽 */
162
143
  getSyncSlotComponent?: TtTableProps["getSyncSlotComponent"];
163
- /**
164
- * 表格边框
165
- * @description 支持 full 完整边框,inner 内边框,不填默认 inner,true 完整边框,false 默认 inner
166
- * @default 'full'
167
- */
168
- border?: "full" | "inner" | boolean;
169
144
  /**
170
145
  * 表格斑马线
171
146
  * @default- false