zy-react-library 1.0.133 → 1.0.134

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.
@@ -1,4 +1,4 @@
1
- import { Modal } from "antd";
1
+ import { Button, Modal } from "antd";
2
2
  import { useEffect, useRef, useState } from "react";
3
3
  import { getFileUrl } from "../../utils";
4
4
  import AliPlayer from "./AliPlayer";
@@ -21,7 +21,6 @@ const Video = ({
21
21
  title = "视频",
22
22
  visible: externalVisible = false,
23
23
  onCancel,
24
- ...restProps
25
24
  }) => {
26
25
  const [internalVisible, setInternalVisible] = useState(false);
27
26
  const playerRef = useRef(null);
@@ -68,15 +67,15 @@ const Video = ({
68
67
  return (
69
68
  <Modal
70
69
  open={visible}
70
+ width={800}
71
71
  title={title}
72
72
  footer={[
73
- <button key="cancel" onClick={() => setVisible(false)}>
73
+ <Button key="cancel" onClick={() => setVisible(false)}>
74
74
  取消
75
- </button>,
75
+ </Button>,
76
76
  ]}
77
77
  maskClosable={false}
78
78
  onCancel={() => setVisible(false)}
79
- {...restProps}
80
79
  >
81
80
  {playerElement}
82
81
  </Modal>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.133",
4
+ "version": "1.0.134",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",