dtable-ui-component 0.1.75-beta4 → 0.1.75-beta8
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.
|
@@ -23,9 +23,8 @@ var FileItemFormatter = /*#__PURE__*/function (_Component) {
|
|
|
23
23
|
|
|
24
24
|
_this.getFileIconData = function (item) {
|
|
25
25
|
var fileIconUrl = getFileIconUrl(item.name, item.type);
|
|
26
|
-
console.log(fileIconUrl);
|
|
27
26
|
|
|
28
|
-
var fileIconData = require('
|
|
27
|
+
var fileIconData = require('../' + fileIconUrl);
|
|
29
28
|
|
|
30
29
|
return fileIconData;
|
|
31
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var hrefReg = /\[.+\]\(\S+\)|<img src=(\S+)
|
|
2
|
-
var imageReg1 = /^<img( width=[
|
|
1
|
+
var hrefReg = /\[.+\]\(\S+\)|<img( width=[\\|/]?"(\d)+[\\|/|]?")? src="(\S+)" .?\/>|!\[\]\(\S+\)|!\[\]\((\S+)\)|<\S+>/g;
|
|
2
|
+
var imageReg1 = /^<img( width=[\\|/]?"(\d)+[\\|/|]?")? src="(\S+)" .?\/>/;
|
|
3
3
|
var imageReg2 = /^!\[\]\((\S+)\)/;
|
|
4
4
|
var linkReg1 = /^\[.+\]\(\S+\)/;
|
|
5
5
|
var linkReg2 = /^<\S+>$/;
|
|
@@ -17,7 +17,7 @@ var getLinks = function getLinks(hrefList) {
|
|
|
17
17
|
var imageSrcList1 = href.match(imageReg2);
|
|
18
18
|
|
|
19
19
|
if (imageSrcList) {
|
|
20
|
-
hrefObj.images.push(imageSrcList[
|
|
20
|
+
hrefObj.images.push(imageSrcList[3]);
|
|
21
21
|
} else if (imageSrcList1) {
|
|
22
22
|
hrefObj.images.push(imageSrcList1[1]);
|
|
23
23
|
}
|