@dazhicheng/ui 1.5.1 → 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.
- package/dist/components/tt-table/src/Table.vue.d.ts +2 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +1 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -36
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +1 -5
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +6 -5
- package/dist/components/tt-table/src/props.d.ts +1 -1
- package/dist/components/tt-table/src/toolProps.d.ts +0 -22
- package/dist/components/tt-table/src/types/table.d.ts +6 -5
- package/dist/components/types.d.ts +8 -33
- package/dist/index.js +3631 -3630
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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: () =>
|
|
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: () =>
|
|
914
|
+
default: () => any;
|
|
915
915
|
};
|
|
916
916
|
notSetColumnField: any;
|
|
917
917
|
filterNoVisibleField: any;
|
|
@@ -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: (
|
|
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
|
-
|
|
69
|
+
permissionOnlyCode: string;
|
|
70
70
|
userId: string | number;
|
|
71
71
|
}) => Promise<{
|
|
72
72
|
data: any;
|
|
73
73
|
}>;
|
|
74
74
|
setColumnsApi?: (params: {
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
permissionOnlyCode: string;
|
|
76
|
+
json: string;
|
|
77
77
|
userId: string | number;
|
|
78
78
|
}) => Promise<any>;
|
|
79
79
|
updateColumnsApi?: (params: {
|
|
80
|
-
|
|
81
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
198
|
-
|
|
197
|
+
permissionOnlyCode: string;
|
|
198
|
+
json: string;
|
|
199
199
|
userId: string | number;
|
|
200
200
|
}) => Promise<any>;
|
|
201
201
|
/** 自定义列服务端配置接口 - 当有id值得时候 */
|
|
202
202
|
updateColumnsApi?: (params: {
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22
|
-
|
|
21
|
+
permissionOnlyCode: string;
|
|
22
|
+
json: string;
|
|
23
23
|
userId: string | number;
|
|
24
24
|
}) => Promise<any>;
|
|
25
25
|
/** 自定义列服务端配置接口 - 当有id值得时候 */
|
|
26
26
|
updateColumnsApi?: (params: {
|
|
27
|
-
|
|
28
|
-
|
|
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
|