fmui-base 2.3.33 → 2.3.34
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.
- package/README.md +1 -0
- package/lib/comment_list/List.js +2 -18
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/comment_list/List.js
CHANGED
|
@@ -113,7 +113,7 @@ var PageHome = function (_React$Component) {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
/** 去掉 dataURL
|
|
116
|
+
/** 去掉 dataURL 前缀与空白,保留完整 base64(禁止按 PNG 尾标截取) */
|
|
117
117
|
|
|
118
118
|
}, {
|
|
119
119
|
key: 'normalizeBase64',
|
|
@@ -127,23 +127,7 @@ var PageHome = function (_React$Component) {
|
|
|
127
127
|
if (markIdx > -1) {
|
|
128
128
|
imgData = imgData.substring(markIdx + base64Mark.length);
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
var pngStart = imgData.indexOf('iVBORw0KGgo');
|
|
132
|
-
if (pngStart > 0) {
|
|
133
|
-
imgData = imgData.substring(pngStart);
|
|
134
|
-
}
|
|
135
|
-
if (pngStart >= 0) {
|
|
136
|
-
var endMark = 'ASUVORK5CYII';
|
|
137
|
-
var endIdx = imgData.indexOf(endMark);
|
|
138
|
-
if (endIdx >= 0) {
|
|
139
|
-
endIdx = endIdx + endMark.length;
|
|
140
|
-
while (endIdx < imgData.length && imgData.charAt(endIdx) === '=') {
|
|
141
|
-
endIdx++;
|
|
142
|
-
}
|
|
143
|
-
imgData = imgData.substring(0, endIdx);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return imgData;
|
|
130
|
+
return imgData.replace(/\s+/g, '');
|
|
147
131
|
}
|
|
148
132
|
}, {
|
|
149
133
|
key: 'applyCaSignatureImg',
|