holyes-table 1.0.24 → 1.0.26

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,7 +15,7 @@ export type HolyesTableColumnPropsTypeOption = {
15
15
  sortField?: string;
16
16
  /** 列类型 */
17
17
  type?: "seq" | "checkbox" | "expand";
18
- /** 列样式 */
18
+ /** 表头列样式 */
19
19
  style?: any;
20
20
  /** 列是否可筛选 */
21
21
  isFilter?: {
@@ -141,6 +141,13 @@ export type HolyesTableColumnPropsTypeOption = {
141
141
  /** 表尾插槽 */
142
142
  footer?: string;
143
143
  };
144
+ /** 单元格类名,最好里面不要涉及到改字体大小 */
145
+ cellClassName?: string | ((obj: {
146
+ column: HolyesTableColumnPropsType;
147
+ row: any;
148
+ index: number;
149
+ }) => string);
150
+ /** 表尾配置 */
144
151
  footer?: {
145
152
  /** 表尾行高度 */
146
153
  height?: number;
@@ -65,6 +65,11 @@ export declare const useHolyesTable: (dataObj: {
65
65
  headerClick: (column: any) => void;
66
66
  hoverRow: import('vue').ShallowRef<any, any>;
67
67
  cellMousemove: (item: any) => void;
68
+ resolveCellClassName: (obj: {
69
+ column: HolyesTableColumnPropsType;
70
+ row: any;
71
+ index: number;
72
+ }) => string;
68
73
  headerChecked: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
69
74
  headerCheckedIndeterminate: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
70
75
  onHeaderChecked: (field: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holyes-table",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "合力思虚拟滚动表格组件",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -1,5 +1,13 @@
1
1
  # 更新日志
2
2
 
3
+ ## v1.0.25 (2026-07-07)
4
+
5
+ - 修复按钮样式问题
6
+
7
+ ## v1.0.25 (2026-07-03)
8
+
9
+ - 调整表格样式,增加样式相关列属性cellClassName
10
+
3
11
  ## v1.0.24 (2026-07-03)
4
12
 
5
13
  - 调整表格数据,避免外面用时,引起循环引用问题