@hw-component/table 1.6.7 → 1.6.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.
- package/es/DialogTable/Content.d.ts +3 -0
- package/es/DialogTable/Content.js +34 -0
- package/es/DialogTable/DwTable.d.ts +3 -0
- package/es/DialogTable/DwTable.js +121 -0
- package/{lib/ModalTable/index.d.ts → es/DialogTable/ModalTable.d.ts} +1 -1
- package/es/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
- package/es/HTableBody/Options/utils.d.ts +1 -1
- package/es/index.css +11 -0
- package/es/index.d.ts +3 -2
- package/es/index.js +3 -2
- package/es/modal.d.ts +10 -0
- package/es/render/CopyComponent.d.ts +9 -0
- package/es/render/CopyComponent.js +26 -0
- package/es/render/Text.d.ts +2 -0
- package/es/render/config.js +9 -12
- package/lib/DialogTable/Content.d.ts +3 -0
- package/lib/DialogTable/Content.js +37 -0
- package/lib/DialogTable/DwTable.d.ts +3 -0
- package/lib/DialogTable/DwTable.js +124 -0
- package/{es/ModalTable/index.d.ts → lib/DialogTable/ModalTable.d.ts} +1 -1
- package/lib/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
- package/lib/HTableBody/Options/utils.d.ts +1 -1
- package/lib/index.css +11 -0
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -3
- package/lib/modal.d.ts +10 -0
- package/lib/render/CopyComponent.d.ts +9 -0
- package/lib/render/CopyComponent.js +29 -0
- package/lib/render/Text.d.ts +2 -0
- package/lib/render/config.js +8 -11
- package/package.json +1 -1
- package/src/components/DialogTable/Content.tsx +15 -0
- package/src/components/DialogTable/DwTable.tsx +90 -0
- package/src/components/{ModalTable/index.tsx → DialogTable/ModalTable.tsx} +10 -7
- package/src/components/{ModalTable → DialogTable}/hooks.ts +0 -1
- package/src/components/index.less +14 -0
- package/src/components/index.tsx +3 -2
- package/src/components/modal.ts +11 -0
- package/src/components/render/CopyComponent.tsx +24 -0
- package/src/components/render/Text.tsx +8 -0
- package/src/components/render/config.tsx +9 -14
- package/src/pages/DwTable/index.tsx +152 -0
- package/src/pages/ModalTable/index.tsx +8 -0
- package/src/pages/Table/index.tsx +15 -3
- package/src/routes.tsx +7 -0
- /package/es/{ModalTable → DialogTable}/hooks.d.ts +0 -0
- /package/es/{ModalTable → DialogTable}/hooks.js +0 -0
- /package/lib/{ModalTable → DialogTable}/hooks.d.ts +0 -0
- /package/lib/{ModalTable → DialogTable}/hooks.js +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// welcome to hoo hoo hoo
|
|
2
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js/object/keys';
|
|
3
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js/object/get-own-property-symbols';
|
|
4
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js/instance/filter';
|
|
5
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptor';
|
|
6
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
7
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
|
|
8
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
|
|
9
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
|
|
10
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
12
|
+
import Table from '../Table.js';
|
|
13
|
+
|
|
14
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
var Content = (function (_ref) {
|
|
17
|
+
var tableProps = _ref.tableProps,
|
|
18
|
+
configData = _ref.configData,
|
|
19
|
+
dialogTable = _ref.dialogTable,
|
|
20
|
+
request = _ref.request,
|
|
21
|
+
contentRender = _ref.contentRender;
|
|
22
|
+
var node = jsx(Table, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
23
|
+
configData: configData || [],
|
|
24
|
+
table: dialogTable,
|
|
25
|
+
request: request,
|
|
26
|
+
affixProps: false
|
|
27
|
+
}));
|
|
28
|
+
return jsx(Fragment, {
|
|
29
|
+
children: contentRender ? contentRender(node) : node
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { Content as default };
|
|
34
|
+
// powered by hdj
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DwTableProps } from "../modal";
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, bodyStyle, onClose, afterVisibleChange, contentRender, width, ...props }: DwTableProps) => JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// welcome to hoo hoo hoo
|
|
2
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js/object/keys';
|
|
3
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js/object/get-own-property-symbols';
|
|
4
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js/instance/filter';
|
|
5
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptor';
|
|
6
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
7
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
|
|
8
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
|
|
9
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
|
|
10
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
12
|
+
import { jsx } from 'react/jsx-runtime';
|
|
13
|
+
import { Drawer } from 'antd';
|
|
14
|
+
import { useVisible, useTableProps, useCurrentTable } from './hooks.js';
|
|
15
|
+
import Content from './Content.js';
|
|
16
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
17
|
+
import { useClassName } from '../hooks/index.js';
|
|
18
|
+
|
|
19
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "bodyStyle", "onClose", "afterVisibleChange", "contentRender", "width"];
|
|
20
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
var DwTable = (function (_ref) {
|
|
23
|
+
var configDataProps = _ref.configData,
|
|
24
|
+
requestProps = _ref.request,
|
|
25
|
+
_ref$tableProps = _ref.tableProps,
|
|
26
|
+
tableProps = _ref$tableProps === void 0 ? {} : _ref$tableProps,
|
|
27
|
+
dialogTable = _ref.dialogTable,
|
|
28
|
+
_ref$visible = _ref.visible,
|
|
29
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
30
|
+
_ref$bodyStyle = _ref.bodyStyle,
|
|
31
|
+
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
32
|
+
_onClose = _ref.onClose,
|
|
33
|
+
_afterVisibleChange = _ref.afterVisibleChange,
|
|
34
|
+
contentRender = _ref.contentRender,
|
|
35
|
+
_ref$width = _ref.width,
|
|
36
|
+
width = _ref$width === void 0 ? 666 : _ref$width,
|
|
37
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
+
var _useVisible = useVisible(visible),
|
|
39
|
+
modalVisible = _useVisible.modalVisible,
|
|
40
|
+
setModalVisible = _useVisible.setModalVisible;
|
|
41
|
+
var className = useClassName('hw-table-pointer-not-hover');
|
|
42
|
+
var _useTableProps = useTableProps(_objectSpread(_objectSpread({}, props), {}, {
|
|
43
|
+
configData: configDataProps,
|
|
44
|
+
request: requestProps
|
|
45
|
+
})),
|
|
46
|
+
modalTableParams = _useTableProps.modalTableParams,
|
|
47
|
+
setModalTableParams = _useTableProps.setModalTableParams;
|
|
48
|
+
var currentTable = useCurrentTable({
|
|
49
|
+
show: function show(showParams) {
|
|
50
|
+
if (showParams) {
|
|
51
|
+
setModalTableParams(function (oldParams) {
|
|
52
|
+
var configData = oldParams.configData,
|
|
53
|
+
request = oldParams.request,
|
|
54
|
+
title = oldParams.title,
|
|
55
|
+
oldP = oldParams.params;
|
|
56
|
+
var _showParams$title = showParams.title,
|
|
57
|
+
showTitle = _showParams$title === void 0 ? title : _showParams$title,
|
|
58
|
+
_showParams$configDat = showParams.configData,
|
|
59
|
+
showConfigData = _showParams$configDat === void 0 ? configData : _showParams$configDat,
|
|
60
|
+
_showParams$request = showParams.request,
|
|
61
|
+
showReq = _showParams$request === void 0 ? request : _showParams$request,
|
|
62
|
+
_showParams$params = showParams.params,
|
|
63
|
+
params = _showParams$params === void 0 ? oldP : _showParams$params;
|
|
64
|
+
currentTable.params = params;
|
|
65
|
+
return {
|
|
66
|
+
title: showTitle,
|
|
67
|
+
request: showReq,
|
|
68
|
+
configData: showConfigData,
|
|
69
|
+
params: params
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
setModalVisible(true);
|
|
74
|
+
},
|
|
75
|
+
hide: function hide() {
|
|
76
|
+
setModalVisible(false);
|
|
77
|
+
},
|
|
78
|
+
dialogTable: dialogTable
|
|
79
|
+
});
|
|
80
|
+
var configData = modalTableParams.configData,
|
|
81
|
+
request = modalTableParams.request,
|
|
82
|
+
title = modalTableParams.title,
|
|
83
|
+
params = modalTableParams.params;
|
|
84
|
+
var req = request ? function (reqParams) {
|
|
85
|
+
return request(_objectSpread(_objectSpread({}, params), reqParams));
|
|
86
|
+
} : undefined;
|
|
87
|
+
return jsx(Drawer, _objectSpread(_objectSpread({}, props), {}, {
|
|
88
|
+
visible: modalVisible,
|
|
89
|
+
onClose: function onClose(e) {
|
|
90
|
+
setModalVisible(false);
|
|
91
|
+
_onClose === null || _onClose === void 0 || _onClose(e);
|
|
92
|
+
},
|
|
93
|
+
destroyOnClose: true,
|
|
94
|
+
title: title,
|
|
95
|
+
closable: false,
|
|
96
|
+
extra: jsx(CloseOutlined, {
|
|
97
|
+
className: className
|
|
98
|
+
}),
|
|
99
|
+
width: width,
|
|
100
|
+
bodyStyle: _objectSpread({
|
|
101
|
+
padding: 0,
|
|
102
|
+
paddingBottom: 12
|
|
103
|
+
}, bodyStyle),
|
|
104
|
+
afterVisibleChange: function afterVisibleChange(visible) {
|
|
105
|
+
if (!visible) {
|
|
106
|
+
currentTable.form.resetFields();
|
|
107
|
+
}
|
|
108
|
+
_afterVisibleChange === null || _afterVisibleChange === void 0 || _afterVisibleChange(visible);
|
|
109
|
+
},
|
|
110
|
+
children: jsx(Content, {
|
|
111
|
+
contentRender: contentRender,
|
|
112
|
+
tableProps: tableProps,
|
|
113
|
+
configData: configData || [],
|
|
114
|
+
dialogTable: currentTable,
|
|
115
|
+
request: req
|
|
116
|
+
})
|
|
117
|
+
}));
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export { DwTable as default };
|
|
121
|
+
// powered by hdj
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ModalTableProps } from "../modal";
|
|
2
|
-
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, afterClose, ...props }: ModalTableProps) => JSX.Element;
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, afterClose, contentRender, width, ...props }: ModalTableProps) => JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -11,13 +11,13 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
import { Modal } from 'antd';
|
|
14
|
-
import Table from '../Table.js';
|
|
15
14
|
import { useVisible, useTableProps, useCurrentTable } from './hooks.js';
|
|
15
|
+
import Content from './Content.js';
|
|
16
16
|
|
|
17
|
-
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle", "afterClose"];
|
|
17
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle", "afterClose", "contentRender", "width"];
|
|
18
18
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
-
var
|
|
20
|
+
var ModalTable = (function (_ref) {
|
|
21
21
|
var configDataProps = _ref.configData,
|
|
22
22
|
requestProps = _ref.request,
|
|
23
23
|
_ref$tableProps = _ref.tableProps,
|
|
@@ -29,6 +29,9 @@ var index = (function (_ref) {
|
|
|
29
29
|
_ref$bodyStyle = _ref.bodyStyle,
|
|
30
30
|
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
31
31
|
_afterClose = _ref.afterClose,
|
|
32
|
+
contentRender = _ref.contentRender,
|
|
33
|
+
_ref$width = _ref.width,
|
|
34
|
+
width = _ref$width === void 0 ? 666 : _ref$width,
|
|
32
35
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
36
|
var _useVisible = useVisible(visible),
|
|
34
37
|
modalVisible = _useVisible.modalVisible,
|
|
@@ -86,6 +89,7 @@ var index = (function (_ref) {
|
|
|
86
89
|
},
|
|
87
90
|
destroyOnClose: true,
|
|
88
91
|
title: title,
|
|
92
|
+
width: width,
|
|
89
93
|
bodyStyle: _objectSpread({
|
|
90
94
|
padding: 0,
|
|
91
95
|
paddingBottom: 12
|
|
@@ -94,14 +98,15 @@ var index = (function (_ref) {
|
|
|
94
98
|
currentTable.form.resetFields();
|
|
95
99
|
_afterClose === null || _afterClose === void 0 || _afterClose();
|
|
96
100
|
},
|
|
97
|
-
children: jsx(
|
|
101
|
+
children: jsx(Content, {
|
|
102
|
+
contentRender: contentRender,
|
|
103
|
+
tableProps: tableProps,
|
|
98
104
|
configData: configData || [],
|
|
99
|
-
|
|
100
|
-
request: req
|
|
101
|
-
|
|
102
|
-
}))
|
|
105
|
+
dialogTable: currentTable,
|
|
106
|
+
request: req
|
|
107
|
+
})
|
|
103
108
|
}));
|
|
104
109
|
});
|
|
105
110
|
|
|
106
|
-
export {
|
|
111
|
+
export { ModalTable as default };
|
|
107
112
|
// powered by hdj
|
|
@@ -44,7 +44,7 @@ export declare const getItemValue: (data: ConfigItemModal) => {
|
|
|
44
44
|
status?: "" | "success" | "warning" | "error" | "validating" | undefined;
|
|
45
45
|
help?: React.ReactNode;
|
|
46
46
|
itemProps?: import("@hw-component/form/es/Form/modal").ItemPropsType | undefined;
|
|
47
|
-
helper?:
|
|
47
|
+
helper?: React.ReactNode | import("@hw-component/form/es/Form/modal").HelperModal;
|
|
48
48
|
hover?: string | import("@hw-component/form/es/Form/modal").HoverModal | undefined;
|
|
49
49
|
labelWidth?: number | undefined;
|
|
50
50
|
hide?: boolean | import("@hw-component/form/es/Form/modal").HideModal | undefined;
|
package/es/index.css
CHANGED
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
.ant-hw-table-pointer:hover {
|
|
107
107
|
color: #1890ff;
|
|
108
108
|
}
|
|
109
|
+
.ant-hw-table-pointer-not-hover {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
109
112
|
.ant-hw-table-header-title-box {
|
|
110
113
|
-webkit-box-flex: 1;
|
|
111
114
|
-webkit-flex: 1;
|
|
@@ -118,3 +121,11 @@
|
|
|
118
121
|
position: relative;
|
|
119
122
|
margin-right: 12px;
|
|
120
123
|
}
|
|
124
|
+
.ant-hw-table-render-copy {
|
|
125
|
+
margin-bottom: 0 !important;
|
|
126
|
+
color: #1890ff !important;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
.ant-hw-table-render-text-basic {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -8,5 +8,6 @@ export { default as HTableBody } from "./HTableBody";
|
|
|
8
8
|
export { default as HTableFooter } from "./HTableFooter";
|
|
9
9
|
export { default as HTableHeader } from "./HTableHeader";
|
|
10
10
|
export { default as HTablePagination } from "./HTablePagination";
|
|
11
|
-
export { default as HModalTable } from "./ModalTable";
|
|
12
|
-
export { useHDialogTable } from "./
|
|
11
|
+
export { default as HModalTable } from "./DialogTable/ModalTable";
|
|
12
|
+
export { useHDialogTable } from "./DialogTable/hooks";
|
|
13
|
+
export { default as DwTable } from "./DialogTable/DwTable";
|
package/es/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { default as HTableBody } from './HTableBody/index.js';
|
|
|
7
7
|
export { default as HTableFooter } from './HTableFooter/index.js';
|
|
8
8
|
export { default as HTableHeader } from './HTableHeader/index.js';
|
|
9
9
|
export { default as HTablePagination } from './HTablePagination/index.js';
|
|
10
|
-
export { default as HModalTable } from './ModalTable
|
|
11
|
-
export { useHDialogTable } from './
|
|
10
|
+
export { default as HModalTable } from './DialogTable/ModalTable.js';
|
|
11
|
+
export { useHDialogTable } from './DialogTable/hooks.js';
|
|
12
|
+
export { default as DwTable } from './DialogTable/DwTable.js';
|
|
12
13
|
// powered by hdj
|
package/es/modal.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { ModalProps } from "antd";
|
|
|
7
7
|
import type { TableProps } from "antd/lib/table";
|
|
8
8
|
import type { AffixProps } from "antd/lib/affix";
|
|
9
9
|
import type { OptionModal } from "./HTableBody";
|
|
10
|
+
import { DrawerProps } from "antd";
|
|
10
11
|
export interface RowObj {
|
|
11
12
|
keys?: React.Key[];
|
|
12
13
|
rowData?: any[];
|
|
@@ -113,12 +114,21 @@ export interface HDiaLogTableInstance {
|
|
|
113
114
|
hide: () => void;
|
|
114
115
|
params: any;
|
|
115
116
|
}
|
|
117
|
+
export interface DwTableProps extends DrawerProps {
|
|
118
|
+
tableProps?: Omit<HTableProps, "configData" | "request">;
|
|
119
|
+
dialogTable?: HDiaLogTableInstance;
|
|
120
|
+
params?: Record<string, any>;
|
|
121
|
+
configData?: HTableProps["configData"];
|
|
122
|
+
request?: HTableProps["request"];
|
|
123
|
+
contentRender?: (node: React.ReactNode) => React.ReactNode;
|
|
124
|
+
}
|
|
116
125
|
export interface ModalTableProps extends ModalProps {
|
|
117
126
|
tableProps?: Omit<HTableProps, "configData" | "request">;
|
|
118
127
|
dialogTable?: HDiaLogTableInstance;
|
|
119
128
|
params?: Record<string, any>;
|
|
120
129
|
configData?: HTableProps["configData"];
|
|
121
130
|
request?: HTableProps["request"];
|
|
131
|
+
contentRender?: (node: React.ReactNode) => React.ReactNode;
|
|
122
132
|
}
|
|
123
133
|
export type ValueTypeConfigRenderFn = (config: ConfigItemModal, itemData: any, index: number, tableInstance: HTableInstance) => React.ReactNode;
|
|
124
134
|
export type ValueTypeConfigModal = Record<string, ValueTypeConfigRenderFn>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EllipsisConfig } from "antd/lib/typography/Base";
|
|
2
|
+
interface IProps {
|
|
3
|
+
text: string;
|
|
4
|
+
cpText?: string;
|
|
5
|
+
successMsg: string;
|
|
6
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: ({ cpText, text, successMsg, ellipsis }: IProps) => JSX.Element;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// welcome to hoo hoo hoo
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import copy from 'copy-to-clipboard';
|
|
4
|
+
import { Typography, message } from 'antd';
|
|
5
|
+
import { useClassName } from '../hooks/index.js';
|
|
6
|
+
|
|
7
|
+
var Paragraph = Typography.Paragraph;
|
|
8
|
+
var CopyComponent = (function (_ref) {
|
|
9
|
+
var cpText = _ref.cpText,
|
|
10
|
+
text = _ref.text,
|
|
11
|
+
successMsg = _ref.successMsg,
|
|
12
|
+
ellipsis = _ref.ellipsis;
|
|
13
|
+
var className = useClassName("hw-table-render-copy");
|
|
14
|
+
return jsx(Paragraph, {
|
|
15
|
+
ellipsis: ellipsis,
|
|
16
|
+
className: className,
|
|
17
|
+
onClick: function onClick() {
|
|
18
|
+
copy(cpText || text);
|
|
19
|
+
message.success(successMsg);
|
|
20
|
+
},
|
|
21
|
+
children: text
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { CopyComponent as default };
|
|
26
|
+
// powered by hdj
|
package/es/render/config.js
CHANGED
|
@@ -11,8 +11,8 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
import TagsComponent from './TagsComponent.js';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import { Typography, Image, Avatar } from 'antd';
|
|
15
|
+
import CopyComponent from './CopyComponent.js';
|
|
16
16
|
|
|
17
17
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -56,7 +56,8 @@ var copyRender = function copyRender(config, itemData) {
|
|
|
56
56
|
title = config.title,
|
|
57
57
|
titleStr = config.titleStr;
|
|
58
58
|
var successMsg = valueTypeProps.successMsg,
|
|
59
|
-
text = valueTypeProps.text
|
|
59
|
+
text = valueTypeProps.text,
|
|
60
|
+
ellipsis = valueTypeProps.ellipsis;
|
|
60
61
|
var msg = successMsg || "\u590D\u5236".concat(title || titleStr, "\u6210\u529F!");
|
|
61
62
|
var tableVal = getTableVal(config, itemData);
|
|
62
63
|
if (!tableVal) {
|
|
@@ -66,15 +67,11 @@ var copyRender = function copyRender(config, itemData) {
|
|
|
66
67
|
if (typeof text === "function") {
|
|
67
68
|
cpText = text(itemData);
|
|
68
69
|
}
|
|
69
|
-
return jsx(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
copy(cpText || tableVal);
|
|
75
|
-
message.success(msg);
|
|
76
|
-
},
|
|
77
|
-
children: tableVal
|
|
70
|
+
return jsx(CopyComponent, {
|
|
71
|
+
ellipsis: ellipsis,
|
|
72
|
+
successMsg: msg,
|
|
73
|
+
text: tableVal,
|
|
74
|
+
cpText: cpText
|
|
78
75
|
});
|
|
79
76
|
};
|
|
80
77
|
var linkRender = function linkRender(config, itemData) {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js/object/keys');
|
|
6
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js/object/get-own-property-symbols');
|
|
7
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/filter');
|
|
8
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js/object/get-own-property-descriptor');
|
|
9
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/for-each');
|
|
10
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js/object/get-own-property-descriptors');
|
|
11
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js/object/define-properties');
|
|
12
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js/object/define-property');
|
|
13
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
15
|
+
var Table = require('../Table.js');
|
|
16
|
+
|
|
17
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
+
var Content = (function (_ref) {
|
|
20
|
+
var tableProps = _ref.tableProps,
|
|
21
|
+
configData = _ref.configData,
|
|
22
|
+
dialogTable = _ref.dialogTable,
|
|
23
|
+
request = _ref.request,
|
|
24
|
+
contentRender = _ref.contentRender;
|
|
25
|
+
var node = jsxRuntime.jsx(Table.default, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
26
|
+
configData: configData || [],
|
|
27
|
+
table: dialogTable,
|
|
28
|
+
request: request,
|
|
29
|
+
affixProps: false
|
|
30
|
+
}));
|
|
31
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
32
|
+
children: contentRender ? contentRender(node) : node
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
exports.default = Content;
|
|
37
|
+
// powered by h
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DwTableProps } from "../modal";
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, bodyStyle, onClose, afterVisibleChange, contentRender, width, ...props }: DwTableProps) => JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js/object/keys');
|
|
6
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js/object/get-own-property-symbols');
|
|
7
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/filter');
|
|
8
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js/object/get-own-property-descriptor');
|
|
9
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/for-each');
|
|
10
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js/object/get-own-property-descriptors');
|
|
11
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js/object/define-properties');
|
|
12
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js/object/define-property');
|
|
13
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
+
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
15
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
16
|
+
var antd = require('antd');
|
|
17
|
+
var hooks = require('./hooks.js');
|
|
18
|
+
var Content = require('./Content.js');
|
|
19
|
+
var icons = require('@ant-design/icons');
|
|
20
|
+
var index = require('../hooks/index.js');
|
|
21
|
+
|
|
22
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "bodyStyle", "onClose", "afterVisibleChange", "contentRender", "width"];
|
|
23
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
var DwTable = (function (_ref) {
|
|
26
|
+
var configDataProps = _ref.configData,
|
|
27
|
+
requestProps = _ref.request,
|
|
28
|
+
_ref$tableProps = _ref.tableProps,
|
|
29
|
+
tableProps = _ref$tableProps === void 0 ? {} : _ref$tableProps,
|
|
30
|
+
dialogTable = _ref.dialogTable,
|
|
31
|
+
_ref$visible = _ref.visible,
|
|
32
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
33
|
+
_ref$bodyStyle = _ref.bodyStyle,
|
|
34
|
+
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
35
|
+
_onClose = _ref.onClose,
|
|
36
|
+
_afterVisibleChange = _ref.afterVisibleChange,
|
|
37
|
+
contentRender = _ref.contentRender,
|
|
38
|
+
_ref$width = _ref.width,
|
|
39
|
+
width = _ref$width === void 0 ? 666 : _ref$width,
|
|
40
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
var _useVisible = hooks.useVisible(visible),
|
|
42
|
+
modalVisible = _useVisible.modalVisible,
|
|
43
|
+
setModalVisible = _useVisible.setModalVisible;
|
|
44
|
+
var className = index.useClassName('hw-table-pointer-not-hover');
|
|
45
|
+
var _useTableProps = hooks.useTableProps(_objectSpread(_objectSpread({}, props), {}, {
|
|
46
|
+
configData: configDataProps,
|
|
47
|
+
request: requestProps
|
|
48
|
+
})),
|
|
49
|
+
modalTableParams = _useTableProps.modalTableParams,
|
|
50
|
+
setModalTableParams = _useTableProps.setModalTableParams;
|
|
51
|
+
var currentTable = hooks.useCurrentTable({
|
|
52
|
+
show: function show(showParams) {
|
|
53
|
+
if (showParams) {
|
|
54
|
+
setModalTableParams(function (oldParams) {
|
|
55
|
+
var configData = oldParams.configData,
|
|
56
|
+
request = oldParams.request,
|
|
57
|
+
title = oldParams.title,
|
|
58
|
+
oldP = oldParams.params;
|
|
59
|
+
var _showParams$title = showParams.title,
|
|
60
|
+
showTitle = _showParams$title === void 0 ? title : _showParams$title,
|
|
61
|
+
_showParams$configDat = showParams.configData,
|
|
62
|
+
showConfigData = _showParams$configDat === void 0 ? configData : _showParams$configDat,
|
|
63
|
+
_showParams$request = showParams.request,
|
|
64
|
+
showReq = _showParams$request === void 0 ? request : _showParams$request,
|
|
65
|
+
_showParams$params = showParams.params,
|
|
66
|
+
params = _showParams$params === void 0 ? oldP : _showParams$params;
|
|
67
|
+
currentTable.params = params;
|
|
68
|
+
return {
|
|
69
|
+
title: showTitle,
|
|
70
|
+
request: showReq,
|
|
71
|
+
configData: showConfigData,
|
|
72
|
+
params: params
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
setModalVisible(true);
|
|
77
|
+
},
|
|
78
|
+
hide: function hide() {
|
|
79
|
+
setModalVisible(false);
|
|
80
|
+
},
|
|
81
|
+
dialogTable: dialogTable
|
|
82
|
+
});
|
|
83
|
+
var configData = modalTableParams.configData,
|
|
84
|
+
request = modalTableParams.request,
|
|
85
|
+
title = modalTableParams.title,
|
|
86
|
+
params = modalTableParams.params;
|
|
87
|
+
var req = request ? function (reqParams) {
|
|
88
|
+
return request(_objectSpread(_objectSpread({}, params), reqParams));
|
|
89
|
+
} : undefined;
|
|
90
|
+
return jsxRuntime.jsx(antd.Drawer, _objectSpread(_objectSpread({}, props), {}, {
|
|
91
|
+
visible: modalVisible,
|
|
92
|
+
onClose: function onClose(e) {
|
|
93
|
+
setModalVisible(false);
|
|
94
|
+
_onClose === null || _onClose === void 0 || _onClose(e);
|
|
95
|
+
},
|
|
96
|
+
destroyOnClose: true,
|
|
97
|
+
title: title,
|
|
98
|
+
closable: false,
|
|
99
|
+
extra: jsxRuntime.jsx(icons.CloseOutlined, {
|
|
100
|
+
className: className
|
|
101
|
+
}),
|
|
102
|
+
width: width,
|
|
103
|
+
bodyStyle: _objectSpread({
|
|
104
|
+
padding: 0,
|
|
105
|
+
paddingBottom: 12
|
|
106
|
+
}, bodyStyle),
|
|
107
|
+
afterVisibleChange: function afterVisibleChange(visible) {
|
|
108
|
+
if (!visible) {
|
|
109
|
+
currentTable.form.resetFields();
|
|
110
|
+
}
|
|
111
|
+
_afterVisibleChange === null || _afterVisibleChange === void 0 || _afterVisibleChange(visible);
|
|
112
|
+
},
|
|
113
|
+
children: jsxRuntime.jsx(Content.default, {
|
|
114
|
+
contentRender: contentRender,
|
|
115
|
+
tableProps: tableProps,
|
|
116
|
+
configData: configData || [],
|
|
117
|
+
dialogTable: currentTable,
|
|
118
|
+
request: req
|
|
119
|
+
})
|
|
120
|
+
}));
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
exports.default = DwTable;
|
|
124
|
+
// powered by h
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ModalTableProps } from "../modal";
|
|
2
|
-
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, afterClose, ...props }: ModalTableProps) => JSX.Element;
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, afterClose, contentRender, width, ...props }: ModalTableProps) => JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -14,13 +14,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
14
14
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
15
15
|
var jsxRuntime = require('react/jsx-runtime');
|
|
16
16
|
var antd = require('antd');
|
|
17
|
-
var Table = require('../Table.js');
|
|
18
17
|
var hooks = require('./hooks.js');
|
|
18
|
+
var Content = require('./Content.js');
|
|
19
19
|
|
|
20
|
-
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle", "afterClose"];
|
|
20
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle", "afterClose", "contentRender", "width"];
|
|
21
21
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
|
-
var
|
|
23
|
+
var ModalTable = (function (_ref) {
|
|
24
24
|
var configDataProps = _ref.configData,
|
|
25
25
|
requestProps = _ref.request,
|
|
26
26
|
_ref$tableProps = _ref.tableProps,
|
|
@@ -32,6 +32,9 @@ var index = (function (_ref) {
|
|
|
32
32
|
_ref$bodyStyle = _ref.bodyStyle,
|
|
33
33
|
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
34
34
|
_afterClose = _ref.afterClose,
|
|
35
|
+
contentRender = _ref.contentRender,
|
|
36
|
+
_ref$width = _ref.width,
|
|
37
|
+
width = _ref$width === void 0 ? 666 : _ref$width,
|
|
35
38
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
36
39
|
var _useVisible = hooks.useVisible(visible),
|
|
37
40
|
modalVisible = _useVisible.modalVisible,
|
|
@@ -89,6 +92,7 @@ var index = (function (_ref) {
|
|
|
89
92
|
},
|
|
90
93
|
destroyOnClose: true,
|
|
91
94
|
title: title,
|
|
95
|
+
width: width,
|
|
92
96
|
bodyStyle: _objectSpread({
|
|
93
97
|
padding: 0,
|
|
94
98
|
paddingBottom: 12
|
|
@@ -97,14 +101,15 @@ var index = (function (_ref) {
|
|
|
97
101
|
currentTable.form.resetFields();
|
|
98
102
|
_afterClose === null || _afterClose === void 0 || _afterClose();
|
|
99
103
|
},
|
|
100
|
-
children: jsxRuntime.jsx(
|
|
104
|
+
children: jsxRuntime.jsx(Content.default, {
|
|
105
|
+
contentRender: contentRender,
|
|
106
|
+
tableProps: tableProps,
|
|
101
107
|
configData: configData || [],
|
|
102
|
-
|
|
103
|
-
request: req
|
|
104
|
-
|
|
105
|
-
}))
|
|
108
|
+
dialogTable: currentTable,
|
|
109
|
+
request: req
|
|
110
|
+
})
|
|
106
111
|
}));
|
|
107
112
|
});
|
|
108
113
|
|
|
109
|
-
exports.default =
|
|
114
|
+
exports.default = ModalTable;
|
|
110
115
|
// powered by h
|
|
@@ -44,7 +44,7 @@ export declare const getItemValue: (data: ConfigItemModal) => {
|
|
|
44
44
|
status?: "" | "success" | "warning" | "error" | "validating" | undefined;
|
|
45
45
|
help?: React.ReactNode;
|
|
46
46
|
itemProps?: import("@hw-component/form/es/Form/modal").ItemPropsType | undefined;
|
|
47
|
-
helper?:
|
|
47
|
+
helper?: React.ReactNode | import("@hw-component/form/es/Form/modal").HelperModal;
|
|
48
48
|
hover?: string | import("@hw-component/form/es/Form/modal").HoverModal | undefined;
|
|
49
49
|
labelWidth?: number | undefined;
|
|
50
50
|
hide?: boolean | import("@hw-component/form/es/Form/modal").HideModal | undefined;
|