@hw-component/table 1.7.7 → 1.7.8

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.7",
3
+ "version": "1.7.8",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -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) => {