holyes-table 1.0.5 → 1.0.7
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/README.md +11 -2
- package/dist/index.mjs +402 -408
- package/dist/lib/main.d.ts +1 -0
- package/dist/lib/pretextTable/pretextTable.vue.d.ts +1 -1
- package/dist/lib/pretextTable/type.d.ts +4 -6
- package/dist/lib/pretextTable/useHolyesTable.d.ts +2 -2
- package/package.json +1 -1
- package/dist/lib/pretextTable/hook/usePretextTableGetItemHeight.d.ts +0 -11
package/dist/lib/main.d.ts
CHANGED
|
@@ -195,9 +195,9 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
|
|
|
195
195
|
onResizableChange?: ((...args: any[]) => any) | undefined;
|
|
196
196
|
onToggleRowExpand?: ((...args: any[]) => any) | undefined;
|
|
197
197
|
}>, {
|
|
198
|
-
showFooter: boolean;
|
|
199
198
|
columns: HolyesTableColumnPropsType[];
|
|
200
199
|
treeConfig: HolyesTableTreeConfig;
|
|
200
|
+
showFooter: boolean;
|
|
201
201
|
expandConfig: HolyesTableExpandConfig;
|
|
202
202
|
cellMinHeight: number;
|
|
203
203
|
loading: boolean;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { VxeIconPropTypes } from 'vxe-pc-ui';
|
|
2
|
-
export * from './useHolyesTable';
|
|
3
|
-
export * from './hook/useFooter';
|
|
4
|
-
export * from './hook/useFilter';
|
|
5
|
-
export * from './hook/useTree';
|
|
6
|
-
export * from './hook/useExpand';
|
|
7
2
|
/** 列插槽类型 */
|
|
8
3
|
export type HolyesTableSlotDefaultType = "a" | "tag" | "icon" | "buttons" | "switch";
|
|
9
4
|
/** 表格列属性,额外属性 */
|
|
@@ -265,7 +260,10 @@ export type HolyesTableGetItemHeightOptions = {
|
|
|
265
260
|
/** 表格内容的样式 */
|
|
266
261
|
commonStyles: any;
|
|
267
262
|
/** 表格内容的样式 */
|
|
268
|
-
itemStyles:
|
|
263
|
+
itemStyles: {
|
|
264
|
+
fontWeight: string;
|
|
265
|
+
fontSize: string;
|
|
266
|
+
};
|
|
269
267
|
/** 表格内容的高度 */
|
|
270
268
|
divLineHeight: number;
|
|
271
269
|
/** 每行的最小高度 */
|
|
@@ -57,7 +57,7 @@ export declare const useHolyesTable: (dataObj: {
|
|
|
57
57
|
fixedColumnsLeft: import('vue').Ref<string[], string[]>;
|
|
58
58
|
fixedColumnsRight: import('vue').Ref<string[], string[]>;
|
|
59
59
|
getGridStyles: () => void;
|
|
60
|
-
divLineHeightOffset:
|
|
60
|
+
divLineHeightOffset: number;
|
|
61
61
|
currentRow: import('vue').ShallowRef<any, any>;
|
|
62
62
|
cellClick: (item: any, column: HolyesTableColumnPropsType) => void;
|
|
63
63
|
headerClick: (column: any) => void;
|
|
@@ -103,7 +103,7 @@ export declare const useHolyesTable: (dataObj: {
|
|
|
103
103
|
}[];
|
|
104
104
|
selectedValue: import('./type').HolyesTableFilterlistOptions[];
|
|
105
105
|
} | undefined;
|
|
106
|
-
}[], import('./
|
|
106
|
+
}[], import('./hook/useFilter').FilterFieldsType[] | {
|
|
107
107
|
field: string;
|
|
108
108
|
type: import('./type').HolyesTableFilterType;
|
|
109
109
|
isShow: boolean;
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HolyesTableGetItemHeightOptions } from '../type';
|
|
2
|
-
export declare function usePretextTableGetItemHeight(): {
|
|
3
|
-
/** 获取每一行的高度 */
|
|
4
|
-
pretextTableGetItemHeight: (obj: HolyesTableGetItemHeightOptions) => Promise<{
|
|
5
|
-
tempItemHeights: number;
|
|
6
|
-
heightDatas: {
|
|
7
|
-
pretextHeight: number;
|
|
8
|
-
id: string;
|
|
9
|
-
}[];
|
|
10
|
-
}>;
|
|
11
|
-
};
|