assui 3.2.53 → 3.2.55

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.
@@ -166,9 +166,9 @@ import Image from "antd/es/image";
166
166
  import Spin from "antd/es/spin";
167
167
  import classNames from 'classnames';
168
168
  import CloseOutlined from "a-icons/es/CloseOutlined";
169
+ import Pdf from "a-icons/es/Pdf";
169
170
  import isObject from 'lodash/isObject';
170
171
  import isFunction from 'lodash/isFunction';
171
- import pdfpng from './assets/pdf.png';
172
172
  var getLocalImgURL = function getLocalImgURL(file) {
173
173
  var URL = window.URL || window.webkitURL;
174
174
  var imgURL = URL.createObjectURL(file);
@@ -321,9 +321,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
321
321
  onClick: function onClick() {
322
322
  return window.open(fileUrl || value, '_blank');
323
323
  }
324
- }, /*#__PURE__*/React.createElement("img", {
325
- src: pdfpng
326
- }));
324
+ }, /*#__PURE__*/React.createElement(Pdf, null));
327
325
  };
328
326
  return /*#__PURE__*/React.createElement("div", {
329
327
  className: cls
@@ -1275,7 +1275,7 @@ html {
1275
1275
  justify-content: center;
1276
1276
  cursor: pointer;
1277
1277
  }
1278
- .as-img-upload .as-img-upload-pdf-preview img {
1278
+ .as-img-upload .as-img-upload-pdf-preview .spotecicon {
1279
1279
  width: 40px;
1280
1280
  height: 40px;
1281
1281
  }
@@ -49,7 +49,7 @@
49
49
  justify-content: center;
50
50
  cursor: pointer;
51
51
 
52
- img {
52
+ .spotecicon {
53
53
  width: 40px;
54
54
  height: 40px;
55
55
  }
@@ -207,9 +207,9 @@ var image_1 = __importDefault(require("antd/lib/image"));
207
207
  var spin_1 = __importDefault(require("antd/lib/spin"));
208
208
  var classnames_1 = __importDefault(require("classnames"));
209
209
  var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
210
+ var Pdf_1 = __importDefault(require("a-icons/lib/Pdf"));
210
211
  var isObject_1 = __importDefault(require("lodash/isObject"));
211
212
  var isFunction_1 = __importDefault(require("lodash/isFunction"));
212
- var pdf_png_1 = __importDefault(require("./assets/pdf.png"));
213
213
  var getLocalImgURL = function getLocalImgURL(file) {
214
214
  var URL = window.URL || window.webkitURL;
215
215
  var imgURL = URL.createObjectURL(file);
@@ -362,9 +362,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
362
362
  onClick: function onClick() {
363
363
  return window.open(fileUrl || value, '_blank');
364
364
  }
365
- }, React.createElement("img", {
366
- src: pdf_png_1["default"]
367
- }));
365
+ }, React.createElement(Pdf_1["default"], null));
368
366
  };
369
367
  return React.createElement("div", {
370
368
  className: cls
@@ -1275,7 +1275,7 @@ html {
1275
1275
  justify-content: center;
1276
1276
  cursor: pointer;
1277
1277
  }
1278
- .as-img-upload .as-img-upload-pdf-preview img {
1278
+ .as-img-upload .as-img-upload-pdf-preview .spotecicon {
1279
1279
  width: 40px;
1280
1280
  height: 40px;
1281
1281
  }
@@ -49,7 +49,7 @@
49
49
  justify-content: center;
50
50
  cursor: pointer;
51
51
 
52
- img {
52
+ .spotecicon {
53
53
  width: 40px;
54
54
  height: 40px;
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.2.53",
3
+ "version": "3.2.55",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -35,7 +35,7 @@
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "@types/react-color": "^3.0.6",
37
37
  "@types/react-resizable": "^3.0.0",
38
- "a-icons": "^1.2.39",
38
+ "a-icons": "^1.2.40",
39
39
  "aa-utils": "^2.1.31",
40
40
  "ahooks": "^3.9.5",
41
41
  "bignumber.js": "^9.0.1",
@@ -86,5 +86,5 @@
86
86
  "node": ">=10.0.0"
87
87
  },
88
88
  "license": "MIT",
89
- "gitHead": "8943549d7a11d9ae39417f45d2e18f1fb226170b"
89
+ "gitHead": "19406cff4bfff93075dbf9f6ff9814fc934e9bbd"
90
90
  }
Binary file