easy3wui 1.5.93-beta4 → 1.5.93-beta5
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/assets/document.css +3 -0
- package/lib/Easy3wDocument/index.js +11 -6
- package/lib/Easy3wIframe/index.js +12 -7
- package/package.json +1 -1
|
@@ -6,6 +6,10 @@ var _extends2 = require('babel-runtime/helpers/extends');
|
|
|
6
6
|
|
|
7
7
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
8
8
|
|
|
9
|
+
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
|
10
|
+
|
|
11
|
+
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
|
12
|
+
|
|
9
13
|
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
10
14
|
|
|
11
15
|
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
@@ -40,14 +44,15 @@ var Easy3wDocument = function (_React$PureComponent) {
|
|
|
40
44
|
|
|
41
45
|
Easy3wDocument.prototype.render = function render() {
|
|
42
46
|
var _props = this.props,
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
children = _props.children,
|
|
48
|
+
otherProps = (0, _objectWithoutProperties3['default'])(_props, ['children']);
|
|
49
|
+
var file = otherProps.file;
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
return
|
|
51
|
+
file = (0, _Easy3wAESEncryptUrl2['default'])(file, '1');
|
|
52
|
+
return file ? _react2['default'].createElement(
|
|
48
53
|
_reactPdf.Document,
|
|
49
|
-
(0, _extends3['default'])({},
|
|
50
|
-
file:
|
|
54
|
+
(0, _extends3['default'])({}, otherProps, {
|
|
55
|
+
file: file
|
|
51
56
|
}),
|
|
52
57
|
children || ''
|
|
53
58
|
) : '';
|
|
@@ -6,6 +6,10 @@ var _extends2 = require('babel-runtime/helpers/extends');
|
|
|
6
6
|
|
|
7
7
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
8
8
|
|
|
9
|
+
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
|
10
|
+
|
|
11
|
+
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
|
12
|
+
|
|
9
13
|
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
10
14
|
|
|
11
15
|
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
@@ -38,18 +42,19 @@ var Easy3wIframe = function (_React$PureComponent) {
|
|
|
38
42
|
|
|
39
43
|
Easy3wIframe.prototype.render = function render() {
|
|
40
44
|
var _props = this.props,
|
|
41
|
-
src = _props.src,
|
|
42
45
|
children = _props.children,
|
|
43
46
|
_props$fileFlag = _props.fileFlag,
|
|
44
|
-
fileFlag = _props$fileFlag === undefined ? '1' : _props$fileFlag
|
|
47
|
+
fileFlag = _props$fileFlag === undefined ? '1' : _props$fileFlag,
|
|
48
|
+
otherProps = (0, _objectWithoutProperties3['default'])(_props, ['children', 'fileFlag']);
|
|
49
|
+
var src = otherProps.src;
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
return
|
|
51
|
+
src = (0, _Easy3wAESEncryptUrl2['default'])(src, fileFlag);
|
|
52
|
+
return src ? _react2['default'].createElement(
|
|
48
53
|
'iframe',
|
|
49
54
|
(0, _extends3['default'])({
|
|
50
|
-
title:
|
|
51
|
-
},
|
|
52
|
-
src:
|
|
55
|
+
title: src
|
|
56
|
+
}, otherProps, {
|
|
57
|
+
src: src
|
|
53
58
|
}),
|
|
54
59
|
children || ''
|
|
55
60
|
) : '';
|