easy3wui 1.5.35 → 1.5.36-beta2

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.
@@ -38,6 +38,9 @@ input.ant-input-number-input {
38
38
  .rightText {
39
39
  text-align: right;
40
40
  }
41
+ .bf-container.read-only .bf-content {
42
+ height: auto;
43
+ }
41
44
  .bf-container.read-only .bf-controlbar {
42
45
  display: none;
43
46
  }
package/assets/index.css CHANGED
@@ -1418,6 +1418,9 @@ input.ant-input-number-input {
1418
1418
  .rightText {
1419
1419
  text-align: right;
1420
1420
  }
1421
+ .bf-container.read-only .bf-content {
1422
+ height: auto;
1423
+ }
1421
1424
  .bf-container.read-only .bf-controlbar {
1422
1425
  display: none;
1423
1426
  }
@@ -210,7 +210,7 @@ var Easy3wDownLoad = function (_Component) {
210
210
  var url = _this2.urlDeal(urlDownloadFile, uid);
211
211
  var fileNameArr = name.toLowerCase().split('.');
212
212
  var fileType = fileNameArr[fileNameArr.length - 1];
213
- if (previewFileFlag && fileViewFlag !== false) {
213
+ if (previewFileFlag && fileViewFlag !== false && (fileType.indexOf('png') < 0 || fileType.indexOf('jpg') < 0 || fileType.indexOf('jpeg') < 0)) {
214
214
  // 预览
215
215
  return _react2['default'].createElement(
216
216
  'div',
@@ -257,14 +257,17 @@ var Easy3wDownLoad = function (_Component) {
257
257
  } else if (fileType && (fileType.indexOf('png') >= 0 || fileType.indexOf('jpg') >= 0 || fileType.indexOf('jpeg') >= 0)) {
258
258
  return _react2['default'].createElement(
259
259
  'div',
260
- null,
260
+ { style: { width: '100%', display: 'flex', alignItems: 'center' } },
261
261
  _react2['default'].createElement(
262
262
  'a',
263
263
  { onClick: function onClick() {
264
264
  return _this2.showImageView(url);
265
- } },
265
+ }, style: { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', paddingRight: '12px' } },
266
266
  name
267
- )
267
+ ),
268
+ _react2['default'].createElement(_icon2['default'], { type: 'download', onClick: function onClick() {
269
+ return _this2.touchDownload(obj, url);
270
+ }, style: { float: 'right', lineHeight: '100%' } })
268
271
  );
269
272
  } else {
270
273
  return _react2['default'].createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.35",
3
+ "version": "1.5.36-beta2",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",