easy3wui 4.0.28 → 4.0.29

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.
@@ -172,7 +172,9 @@ var Easy3wDownLoad = function (_Component) {
172
172
  fileCallURL = _props.fileCallURL;
173
173
 
174
174
  var objPreviewFileNew = (0, _extends3['default'])({}, _comonConfig.objPreviewFile, this.props.objPreviewFile);
175
- var previewFileFlag = objPreviewFileNew.previewFileFlag;
175
+ var previewFileFlag = objPreviewFileNew.previewFileFlag,
176
+ downloadFileFlag = objPreviewFileNew.downloadFileFlag,
177
+ previewFileType = objPreviewFileNew.previewFileType;
176
178
 
177
179
  var retObj = '';
178
180
  if (downloadArr) {
@@ -200,7 +202,9 @@ var Easy3wDownLoad = function (_Component) {
200
202
  name
201
203
  )
202
204
  ),
203
- _react2['default'].createElement(_icons.DownloadOutlined, { onClick: function onClick() {
205
+ downloadFileFlag === '1' ? _react2['default'].createElement(_icons.DownloadOutlined, { onClick: function onClick() {
206
+ return _this2.touchDownload(obj, url);
207
+ }, style: { float: 'right', lineHeight: '100%' } }) : downloadFileFlag === '0' ? '' : previewFileType.indexOf(fileType) >= 0 ? '' : _react2['default'].createElement(_icons.DownloadOutlined, { onClick: function onClick() {
204
208
  return _this2.touchDownload(obj, url);
205
209
  }, style: { float: 'right', lineHeight: '100%' } })
206
210
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "4.0.28",
3
+ "version": "4.0.29",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",