holyes-table 1.0.22 → 1.0.23

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/index.mjs CHANGED
@@ -1703,8 +1703,8 @@ var ge = (e) => {
1703
1703
  key: 6,
1704
1704
  style: u({ paddingLeft: S(U).paddingLeft })
1705
1705
  }, [E(s(S(A), {
1706
- name: f.slots?.defaultProps?.icon?.name,
1707
- style: u(f.slots?.defaultProps?.icon?.style || {})
1706
+ name: f.slots?.defaultProps?.icon?.nameField ? t[f.slots?.defaultProps?.icon?.nameField] || "" : f.slots?.defaultProps?.icon?.name || "",
1707
+ style: u(f.slots?.defaultProps?.icon?.styleField ? t[f.slots?.defaultProps?.icon?.styleField] || {} : f.slots?.defaultProps?.icon?.style || {})
1708
1708
  }, null, 8, ["name", "style"]), [[C, t[f.field]]])], 4)) : f.slots?.defaultType == "buttons" ? (h(), i("span", {
1709
1709
  key: 7,
1710
1710
  style: u({ paddingLeft: S(U).paddingLeft })
@@ -57,8 +57,12 @@ export type HolyesTableColumnPropsTypeOption = {
57
57
  icon?: {
58
58
  /** 图标名称, 参考 vxe-icon 图标名称 https://vxeui.com/#/component/icon/base */
59
59
  name?: VxeIconPropTypes.Name;
60
+ /** 根据图标名称字段, 显示图标名称, 名称参考 vxe-icon 图标名称 https://vxeui.com/#/component/icon/base */
61
+ nameField?: string;
60
62
  /** 图标样式 */
61
63
  style?: any;
64
+ /** 图标样式字段, 显示图标样式 */
65
+ styleField?: string;
62
66
  };
63
67
  /** 按钮 插槽默认属性 */
64
68
  buttons?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holyes-table",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "合力思虚拟滚动表格组件",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## v1.0.23 (2026-06-29)
4
+
5
+ - 增加列插槽icon的nameField属性,和styleField属性,用于显示图标名称和图标样式
6
+
3
7
  ## v1.0.22 (2026-06-25)
4
8
 
5
9
  - 修复switch列的loadingField问题