@dazhicheng/ui 1.5.3 → 1.5.5

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.
@@ -754,7 +754,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
754
754
  default: () => string | undefined;
755
755
  };
756
756
  isHanderSubmit: any;
757
- columnsKey: any;
757
+ columnsKey: {
758
+ type: import('vue').PropType<string | (() => string)>;
759
+ default: string;
760
+ };
758
761
  useHttpCache: {
759
762
  type: BooleanConstructor;
760
763
  default: () => boolean | undefined;
@@ -1032,7 +1035,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1032
1035
  default: () => string | undefined;
1033
1036
  };
1034
1037
  isHanderSubmit: any;
1035
- columnsKey: any;
1038
+ columnsKey: {
1039
+ type: import('vue').PropType<string | (() => string)>;
1040
+ default: string;
1041
+ };
1036
1042
  useHttpCache: {
1037
1043
  type: BooleanConstructor;
1038
1044
  default: () => boolean | undefined;
@@ -1121,7 +1127,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1121
1127
  emptyImageStyle: any;
1122
1128
  emptyImageStatus: "no-data" | "no-search";
1123
1129
  isHanderSubmit: any;
1124
- columnsKey: any;
1130
+ columnsKey: string | (() => string);
1125
1131
  showSetting: boolean;
1126
1132
  showSetColumn: boolean;
1127
1133
  leftSlotWidth: any;
@@ -761,7 +761,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
761
761
  type: BooleanConstructor;
762
762
  default: boolean;
763
763
  };
764
- columnsKey: any;
764
+ columnsKey: {
765
+ type: import('vue').PropType<string | (() => string)>;
766
+ default: string;
767
+ };
765
768
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
766
769
  "on-refresh": () => any;
767
770
  "on-columns-setting": () => any;
@@ -778,12 +781,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
778
781
  type: BooleanConstructor;
779
782
  default: boolean;
780
783
  };
781
- columnsKey: any;
784
+ columnsKey: {
785
+ type: import('vue').PropType<string | (() => string)>;
786
+ default: string;
787
+ };
782
788
  }>> & Readonly<{
783
789
  "onOn-refresh"?: (() => any) | undefined;
784
790
  "onOn-columns-setting"?: (() => any) | undefined;
785
791
  }>, {
786
- columnsKey: any;
792
+ columnsKey: string | (() => string);
787
793
  showSetting: boolean;
788
794
  showSetColumn: boolean;
789
795
  showRefresh: boolean;
@@ -54,11 +54,9 @@ export declare function useTableRender(options: TtTableProps): readonly [DefineS
54
54
  isHanderSubmit?: boolean;
55
55
  modelValue?: Array<Recordable>;
56
56
  formApi?: Partial<import('../../../tt-form').TtExtendedFormApi>;
57
- columnsKey?: string;
57
+ columnsKey?: string | (() => string);
58
58
  showSetting?: boolean;
59
59
  showSetColumn?: boolean;
60
- showFullScreen?: boolean;
61
- fullscreen?: boolean;
62
60
  leftSlotWidth?: number;
63
61
  rightSlotWidth?: number;
64
62
  showLineHeight?: boolean;
@@ -214,8 +214,11 @@ export declare const tableProps: {
214
214
  };
215
215
  /** 是否手动触发查询事件 */
216
216
  isHanderSubmit: any;
217
- /** 储存的key */
218
- columnsKey: any;
217
+ /** 储存的key值,支持函数动态获取 */
218
+ columnsKey: {
219
+ type: PropType<string | (() => string)>;
220
+ default: string;
221
+ };
219
222
  /** 是否开启服务端缓存 */
220
223
  useHttpCache: {
221
224
  type: BooleanConstructor;
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  export declare const toolProps: {
2
3
  /** 是否显示设置 */
3
4
  showSetting: {
@@ -14,6 +15,9 @@ export declare const toolProps: {
14
15
  type: BooleanConstructor;
15
16
  default: boolean;
16
17
  };
17
- /** 储存的key */
18
- columnsKey: any;
18
+ /** 储存的key,支持函数动态获取 */
19
+ columnsKey: {
20
+ type: PropType<string | (() => string)>;
21
+ default: string;
22
+ };
19
23
  };
@@ -151,8 +151,8 @@ export type TtTableProps = {
151
151
  modelValue?: Array<Recordable>;
152
152
  /** form-methods */
153
153
  formApi?: Partial<TtExtendedFormApi>;
154
- /** 储存的列key */
155
- columnsKey?: string;
154
+ /** 储存的列key值,支持函数动态获取 */
155
+ columnsKey?: string | (() => string);
156
156
  /**
157
157
  * 是否显示设置按钮icon
158
158
  * @default true
@@ -163,10 +163,6 @@ export type TtTableProps = {
163
163
  * @default true
164
164
  */
165
165
  showSetColumn?: boolean;
166
- /** 是否显示全屏 */
167
- showFullScreen?: boolean;
168
- /** 是否全屏 */
169
- fullscreen?: boolean;
170
166
  /** 左侧插槽的宽度 */
171
167
  leftSlotWidth?: number;
172
168
  /** 右侧插槽的宽度 */
@@ -1,6 +1,3 @@
1
- import { VxeGridPropTypes } from 'vxe-table';
2
- export type TtTableToolsRowHeightValue = string | number | boolean;
3
- export type TtTableToolsDisabledType = "export" | "import";
4
1
  export type TtTableToolsProps = {
5
2
  /** 是否显示设置 */
6
3
  showSetting?: boolean;
@@ -8,14 +5,6 @@ export type TtTableToolsProps = {
8
5
  showRefresh?: boolean;
9
6
  /** 是否显示列设置按钮 */
10
7
  showSetColumn?: boolean;
11
- /** 储存的key */
12
- columnsKey?: string;
13
- /** 是否开启本地缓存 */
14
- useCache?: boolean;
15
- /** 刷新按钮icon */
16
- refreshIcon?: string;
17
- /** 列设置icon */
18
- columnIcon?: string;
19
- /** 表格的size */
20
- size?: VxeGridPropTypes.Size;
8
+ /** 储存的key,支持函数动态获取 */
9
+ columnsKey?: string | (() => string);
21
10
  };
@@ -9,6 +9,8 @@ export type TtUiGlobalConfig = {
9
9
  */
10
10
  userId?: string | number;
11
11
  table?: {
12
+ /** 自定义列服务端配置的key,支持函数动态获取 */
13
+ columnsKey?: string | (() => string);
12
14
  /** 自定义列服务端配置接口 - 获取 */
13
15
  getColumnsApi?: (params: {
14
16
  permissionOnlyCode: string;