@hw-component/form 1.3.5 → 1.3.6

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.
@@ -12,6 +12,7 @@ var Preview = (function (_ref) {
12
12
  visible: visible,
13
13
  title: "\u9884\u89C8",
14
14
  onCancel: onCancel,
15
+ destroyOnClose: true,
15
16
  children: jsx(MediaTypeEle, {
16
17
  file: file
17
18
  })
@@ -15,6 +15,7 @@ var Preview = (function (_ref) {
15
15
  visible: visible,
16
16
  title: "\u9884\u89C8",
17
17
  onCancel: onCancel,
18
+ destroyOnClose: true,
18
19
  children: jsxRuntime.jsx(index.default, {
19
20
  file: file
20
21
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,7 +7,7 @@ export type IPreviewProps = IMediaTypeEleProps & ModalProps;
7
7
 
8
8
  export default ({ visible, file, onCancel }: IPreviewProps) => {
9
9
  return (
10
- <Modal footer={null} visible={visible} title="预览" onCancel={onCancel}>
10
+ <Modal footer={null} visible={visible} title="预览" onCancel={onCancel} destroyOnClose>
11
11
  <MediaTypeEle file={file} />
12
12
  </Modal>
13
13
  );