holyes-table 1.0.19 → 1.0.21

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.
@@ -15,6 +15,21 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
15
15
  type: NumberConstructor;
16
16
  default: number;
17
17
  };
18
+ /** 单元格样式,统一设置 */
19
+ cellStyle: {
20
+ type: PropType<{
21
+ /** 字体大小,单位 px */
22
+ fontSize?: string;
23
+ /** 左内边距,单位 px */
24
+ paddingLeft?: string;
25
+ }>;
26
+ default: () => {};
27
+ };
28
+ /** 表格高度偏移量,用于没什么数据时,可能由于滚动条的高度原因,导致出现滚动条,需要偏移量来解决 */
29
+ heightOffset: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
18
33
  /** 加载中 */
19
34
  loading: {
20
35
  type: BooleanConstructor;
@@ -84,6 +99,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
84
99
  }>, {
85
100
  loadData: (tempData: any[]) => Promise<void>;
86
101
  reloadData: (tempData: any[]) => Promise<void>;
102
+ setCurrentRow: (item: any, isEmitsCurrentChange?: boolean) => void;
87
103
  getCheckboxRecords: (isFull: boolean, field?: string) => any[];
88
104
  clearCheckboxRow: (field?: string) => void;
89
105
  updateFooter: (field?: string) => void;
@@ -120,6 +136,21 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
120
136
  type: NumberConstructor;
121
137
  default: number;
122
138
  };
139
+ /** 单元格样式,统一设置 */
140
+ cellStyle: {
141
+ type: PropType<{
142
+ /** 字体大小,单位 px */
143
+ fontSize?: string;
144
+ /** 左内边距,单位 px */
145
+ paddingLeft?: string;
146
+ }>;
147
+ default: () => {};
148
+ };
149
+ /** 表格高度偏移量,用于没什么数据时,可能由于滚动条的高度原因,导致出现滚动条,需要偏移量来解决 */
150
+ heightOffset: {
151
+ type: NumberConstructor;
152
+ default: number;
153
+ };
123
154
  /** 加载中 */
124
155
  loading: {
125
156
  type: BooleanConstructor;
@@ -200,6 +231,13 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
200
231
  showFooter: boolean;
201
232
  expandConfig: HolyesTableExpandConfig;
202
233
  cellMinHeight: number;
234
+ cellStyle: {
235
+ /** 字体大小,单位 px */
236
+ fontSize?: string;
237
+ /** 左内边距,单位 px */
238
+ paddingLeft?: string;
239
+ };
240
+ heightOffset: number;
203
241
  loading: boolean;
204
242
  loadingConfig: {
205
243
  /** 加载中文本 */
@@ -50,7 +50,8 @@ export declare const useHolyesTable: (dataObj: {
50
50
  getFooterHeight: (footerProps: import('./type').HolyesTableFooterProps[]) => void;
51
51
  itemStyles: {
52
52
  fontWeight: string;
53
- fontSize: string;
53
+ fontSize: any;
54
+ paddingLeft: any;
54
55
  };
55
56
  fixedLeftIndex: import('vue').Ref<number, number>;
56
57
  fixedRightIndex: import('vue').Ref<number, number>;
@@ -59,6 +60,7 @@ export declare const useHolyesTable: (dataObj: {
59
60
  getGridStyles: () => void;
60
61
  divLineHeightOffset: number;
61
62
  currentRow: import('vue').ShallowRef<any, any>;
63
+ setCurrentRow: (item: any, isEmitsCurrentChange?: boolean) => void;
62
64
  cellClick: (item: any, column: HolyesTableColumnPropsType) => void;
63
65
  headerClick: (column: any) => void;
64
66
  hoverRow: import('vue').ShallowRef<any, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holyes-table",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "合力思虚拟滚动表格组件",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -1,5 +1,15 @@
1
1
  # 更新日志
2
2
 
3
+ ## v1.0.21 (2026-06-25)
4
+
5
+ - 增加表格高度偏移属性heightOffset, 用于没什么数据时,可能由于滚动条的高度原因,导致出现滚动条,需要偏移量来解决
6
+ - cellStyle增加paddingLeft属性, 用于设置单元格的左内边距,默认值为0
7
+
8
+ ## v1.0.20 (2026-06-24)
9
+
10
+ - 增加setCurrentRow方法,用于设置当前选中的行, 会判断是否更换了选中行, 并触发 currentChange 事件
11
+ - 增加统一设置表格字体大小的props
12
+
3
13
  ## v1.0.19 (2026-06-09)
4
14
 
5
15
  - 修复只有1个列字段时,列数据不显示的问题
@@ -8,6 +18,11 @@
8
18
 
9
19
  - 增加sortField属性,用于排序实际的字段,默认值为列的field
10
20
 
21
+ ## v1.0.17 (2026-05-25)
22
+
23
+ - 增加setCurrentRow方法,用于设置当前选中的行, 会判断是否更换了选中行, 并触发 currentChange 事件
24
+ - 增加统一设置表格字体大小的props
25
+
11
26
  ## v1.0.16 (2026-05-25)
12
27
 
13
28
  - 增加插槽类型为多选框列的disabledField属性,用于禁用多选框