easy3wui 1.5.41 → 1.5.42

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.
@@ -199,7 +199,9 @@ var Easy3wDownLoad = function (_Component) {
199
199
  fileCallURL = _props.fileCallURL;
200
200
 
201
201
  var objPreviewFileNew = (0, _extends3['default'])({}, _comonConfig.objPreviewFile, this.props.objPreviewFile);
202
- var previewFileFlag = objPreviewFileNew.previewFileFlag;
202
+ var previewFileFlag = objPreviewFileNew.previewFileFlag,
203
+ downloadFileFlag = objPreviewFileNew.downloadFileFlag,
204
+ previewFileType = objPreviewFileNew.previewFileType;
203
205
 
204
206
  var retObj = '';
205
207
  if (downloadArr) {
@@ -226,7 +228,9 @@ var Easy3wDownLoad = function (_Component) {
226
228
  name
227
229
  )
228
230
  ),
229
- _react2['default'].createElement(_icon2['default'], { type: 'download', onClick: function onClick() {
231
+ downloadFileFlag === '1' ? _react2['default'].createElement(_icon2['default'], { type: 'download', onClick: function onClick() {
232
+ return _this2.touchDownload(obj, url);
233
+ }, style: { float: 'right', lineHeight: '100%' } }) : downloadFileFlag === '0' ? '' : previewFileType.indexOf(fileType) >= 0 ? '' : _react2['default'].createElement(_icon2['default'], { type: 'download', onClick: function onClick() {
230
234
  return _this2.touchDownload(obj, url);
231
235
  }, style: { float: 'right', lineHeight: '100%' } })
232
236
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.41",
3
+ "version": "1.5.42",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",