holyes-table 1.0.21 → 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 })
|
|
@@ -1741,8 +1741,7 @@ var ge = (e) => {
|
|
|
1741
1741
|
closeLabel: f.slots?.defaultProps?.switch?.closeLabel ?? f.slots?.defaultProps?.switch?.uncheckedChildren ?? "",
|
|
1742
1742
|
openValue: f.slots?.defaultProps?.switch?.openValue ?? f.slots?.defaultProps?.switch?.checkedValue ?? !0,
|
|
1743
1743
|
closeValue: f.slots?.defaultProps?.switch?.closeValue ?? f.slots?.defaultProps?.switch?.uncheckedValue ?? !1,
|
|
1744
|
-
disabled: f.slots?.defaultProps?.switch?.disabledField && t[f.slots?.defaultProps?.switch?.disabledField],
|
|
1745
|
-
loading: f.slots?.defaultProps?.switch?.loadingField && t[f.slots?.defaultProps?.switch?.loadingField],
|
|
1744
|
+
disabled: f.slots?.defaultProps?.switch?.disabledField && t[f.slots?.defaultProps?.switch?.disabledField] || f.slots?.defaultProps?.switch?.loadingField && t[f.slots?.defaultProps?.switch?.loadingField],
|
|
1746
1745
|
onChange: (e) => f.slots?.defaultProps?.switch?.onChange?.(t, g)
|
|
1747
1746
|
}, null, 8, [
|
|
1748
1747
|
"modelValue",
|
|
@@ -1751,7 +1750,6 @@ var ge = (e) => {
|
|
|
1751
1750
|
"openValue",
|
|
1752
1751
|
"closeValue",
|
|
1753
1752
|
"disabled",
|
|
1754
|
-
"loading",
|
|
1755
1753
|
"onChange"
|
|
1756
1754
|
])) : r("", !0)], 4)) : f.slots?.defaultType == "checkbox" ? (h(), i("span", Fe, [s(S(k), {
|
|
1757
1755
|
modelValue: t[f.field],
|
|
@@ -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