easy3wui 1.5.64-beta.1 → 1.5.64-beta.2
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,65 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function Easy3wRCView() {
|
|
31
|
-
(0, _classCallCheck3['default'])(this, Easy3wRCView);
|
|
32
|
-
return (0, _possibleConstructorReturn3['default'])(this, _PureComponent.apply(this, arguments));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
Easy3wRCView.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
36
|
-
// eslint-disable-next-line react/no-string-refs
|
|
37
|
-
var viewer = this.refs.viewer.viewer;
|
|
38
|
-
|
|
39
|
-
viewer.show();
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
Easy3wRCView.prototype.render = function render() {
|
|
43
|
-
var _props = this.props,
|
|
44
|
-
imgUrl = _props.imgUrl,
|
|
45
|
-
hideModal = _props.hideModal;
|
|
46
|
-
|
|
47
|
-
return _react2['default'].createElement(
|
|
48
|
-
_rcViewer2['default'],
|
|
49
|
-
{
|
|
50
|
-
options: {
|
|
51
|
-
// 关闭时的回调
|
|
52
|
-
hide: hideModal
|
|
53
|
-
}
|
|
54
|
-
// eslint-disable-next-line react/no-string-refs
|
|
55
|
-
, ref: 'viewer'
|
|
56
|
-
},
|
|
57
|
-
_react2['default'].createElement('img', { style: { display: 'none' }, src: imgUrl, alt: '' })
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return Easy3wRCView;
|
|
62
|
-
}(_react.PureComponent);
|
|
63
|
-
|
|
64
|
-
exports['default'] = Easy3wRCView;
|
|
65
|
-
module.exports = exports['default'];
|
|
1
|
+
// import React, { PureComponent } from 'react';
|
|
2
|
+
// import RcViewer from '@hanyk/rc-viewer';
|
|
3
|
+
|
|
4
|
+
// export default class Easy3wRCView extends PureComponent {
|
|
5
|
+
// componentDidUpdate() {
|
|
6
|
+
// // eslint-disable-next-line react/no-string-refs
|
|
7
|
+
// const { viewer } = this.refs.viewer;
|
|
8
|
+
// viewer.show();
|
|
9
|
+
// }
|
|
10
|
+
// render() {
|
|
11
|
+
// const { imgUrl, hideModal } = this.props;
|
|
12
|
+
// return (
|
|
13
|
+
// <RcViewer
|
|
14
|
+
// options={
|
|
15
|
+
// {
|
|
16
|
+
// // 关闭时的回调
|
|
17
|
+
// hide: hideModal,
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
// // eslint-disable-next-line react/no-string-refs
|
|
21
|
+
// ref="viewer"
|
|
22
|
+
// >
|
|
23
|
+
// <img style={{ display: 'none' }} src={imgUrl} alt="" />
|
|
24
|
+
// </RcViewer>
|
|
25
|
+
// );
|
|
26
|
+
// }
|
|
27
|
+
// }
|
|
28
|
+
"use strict";
|