@steedos/service-plugin-amis 2.3.7 → 2.3.9
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.
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
// loadCss(Steedos.absoluteUrl("/unpkg.com/amis/sdk/sdk.css"))
|
|
22
|
-
loadCss(Steedos.absoluteUrl("/unpkg.com/amis/sdk/helper.css"))
|
|
23
|
-
loadCss(Steedos.absoluteUrl("/unpkg.com/amis/sdk/iconfont.css"))
|
|
22
|
+
loadCss(Steedos.absoluteUrl("/unpkg.com/amis@2.7.2/sdk/helper.css"))
|
|
23
|
+
loadCss(Steedos.absoluteUrl("/unpkg.com/amis@2.7.2/sdk/iconfont.css"))
|
|
24
24
|
loadCss(Steedos.absoluteUrl("/amis/amis.css"))
|
|
25
25
|
|
|
26
26
|
try {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
// 加载Amis SDK: 如果直接放到body中会导致 meteor 编译后的 cordova.js 加载报错
|
|
51
51
|
let amisSDKScript = document.createElement("script");
|
|
52
|
-
amisSDKScript.setAttribute("src", Steedos.absoluteUrl('/unpkg.com/amis/sdk/sdk.js'));
|
|
52
|
+
amisSDKScript.setAttribute("src", Steedos.absoluteUrl('/unpkg.com/amis@2.7.2/sdk/sdk.js'));
|
|
53
53
|
document.getElementsByTagName("head")[0].appendChild(amisSDKScript);
|
|
54
54
|
} catch (error) {
|
|
55
55
|
console.error(error)
|
|
@@ -241,9 +241,14 @@
|
|
|
241
241
|
|
|
242
242
|
// 手机版暂不支持code类型字段.
|
|
243
243
|
if(Meteor.isCordova){
|
|
244
|
-
|
|
244
|
+
return Promise.resolve(true)
|
|
245
245
|
}else{
|
|
246
|
-
|
|
246
|
+
try {
|
|
247
|
+
Builder.initMonaco()
|
|
248
|
+
} catch (err) {
|
|
249
|
+
console.error(`Builder.initMonaco error: ${err}`);
|
|
250
|
+
}
|
|
251
|
+
return Promise.resolve(true)
|
|
247
252
|
}
|
|
248
253
|
}
|
|
249
254
|
//Amis SDK 中已清理了monaco, 所以这里需要提前注册,否则会导致amis code类型报错
|
|
@@ -266,4 +271,4 @@
|
|
|
266
271
|
});
|
|
267
272
|
// });
|
|
268
273
|
|
|
269
|
-
})();
|
|
274
|
+
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node .scripts/build.tailwind.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.10"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "41e4b726e53a58ca651c4a513c51b7ea4301a0a1"
|
|
17
17
|
}
|