efront 3.4.6 → 3.4.7
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/apps/pivot/main.less +3 -0
- package/coms/zimoli/data.js +5 -1
- package/coms/zimoli/image.less +2 -0
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/data.js
CHANGED
|
@@ -310,7 +310,11 @@ var parseData = function (sourceText) {
|
|
|
310
310
|
sourceText = sourceText.replace(/^[^\(]+\(([\s\S]*)\)[^\)]*$/, "$1");
|
|
311
311
|
}
|
|
312
312
|
try {
|
|
313
|
-
|
|
313
|
+
if (/^[\[\{][\d\:,]+[\}\]],|^(Infinity|''|NaN|\d+|)$|^\/[\s\S]*?\/\w*$/.test(sourceText)) {
|
|
314
|
+
sourceText = JSAM.parse(sourceText);
|
|
315
|
+
} else {
|
|
316
|
+
sourceText = parseYML(sourceText);
|
|
317
|
+
}
|
|
314
318
|
} catch (e) {
|
|
315
319
|
throw "数据无法解析";
|
|
316
320
|
}
|
package/coms/zimoli/image.less
CHANGED