@hw-component/table 1.7.7 → 1.7.9
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.
|
@@ -97,7 +97,11 @@ var DwTable = (function (_ref) {
|
|
|
97
97
|
title: title,
|
|
98
98
|
closable: false,
|
|
99
99
|
extra: jsx(CloseOutlined, {
|
|
100
|
-
className: className
|
|
100
|
+
className: className,
|
|
101
|
+
onClick: function onClick(e) {
|
|
102
|
+
setModalVisible(false);
|
|
103
|
+
_onClose === null || _onClose === void 0 || _onClose(e);
|
|
104
|
+
}
|
|
101
105
|
}),
|
|
102
106
|
width: width,
|
|
103
107
|
bodyStyle: _objectSpread({
|
|
@@ -100,7 +100,11 @@ var DwTable = (function (_ref) {
|
|
|
100
100
|
title: title,
|
|
101
101
|
closable: false,
|
|
102
102
|
extra: jsxRuntime.jsx(icons.CloseOutlined, {
|
|
103
|
-
className: className
|
|
103
|
+
className: className,
|
|
104
|
+
onClick: function onClick(e) {
|
|
105
|
+
setModalVisible(false);
|
|
106
|
+
_onClose === null || _onClose === void 0 || _onClose(e);
|
|
107
|
+
}
|
|
104
108
|
}),
|
|
105
109
|
width: width,
|
|
106
110
|
bodyStyle: _objectSpread({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hw-component/table",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "基于antd二次开发table组件",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"table"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ant-design/icons": "4.6.2",
|
|
33
33
|
"@ant-design/pro-table": "2.70.0",
|
|
34
|
-
"@hw-component/form": "1.6.
|
|
34
|
+
"@hw-component/form": "1.6.8",
|
|
35
35
|
"ahooks": "2.10.9",
|
|
36
36
|
"antd": "4.20.7",
|
|
37
37
|
"copy-to-clipboard": "3.3.1",
|
|
@@ -70,7 +70,12 @@ export default ({
|
|
|
70
70
|
destroyOnClose
|
|
71
71
|
title={title}
|
|
72
72
|
closable={false}
|
|
73
|
-
extra={<CloseOutlined className={className}
|
|
73
|
+
extra={<CloseOutlined className={className}
|
|
74
|
+
onClick={(e)=>{
|
|
75
|
+
setModalVisible(false);
|
|
76
|
+
onClose?.((e as any));
|
|
77
|
+
}}
|
|
78
|
+
/>}
|
|
74
79
|
width={width}
|
|
75
80
|
bodyStyle={{ padding: 0, paddingBottom: 12, ...bodyStyle }}
|
|
76
81
|
afterVisibleChange={(changeVisible) => {
|