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