@steedos/service-plugin-amis 2.2.51-beta.1 → 2.2.51-beta.2
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.
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
; (function () {
|
|
8
8
|
|
|
9
9
|
try {
|
|
10
|
+
// 加载Amis css
|
|
10
11
|
let amisStyle = document.createElement("link");
|
|
11
12
|
amisStyle.setAttribute("rel", "stylesheet");
|
|
12
13
|
amisStyle.setAttribute("type", "text/css");
|
|
@@ -15,7 +16,18 @@
|
|
|
15
16
|
} catch (error) {
|
|
16
17
|
console.error(error)
|
|
17
18
|
};
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
// 加载Amis SDK: 如果直接放到body中会导致meteor 编译后的 cordova.js 加载报错
|
|
22
|
+
let amisSDKScript = document.createElement("script");
|
|
23
|
+
amisSDKScript.setAttribute("src", Steedos.absoluteUrl('/unpkg.com/@steedos-ui/amis/dist/amis-sdk.umd.min.js'));
|
|
24
|
+
document.getElementsByTagName("head")[0].appendChild(amisSDKScript);
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error(error)
|
|
27
|
+
};
|
|
28
|
+
|
|
18
29
|
|
|
30
|
+
// 此处不能使用import, client js 编译时会将import 转为require, 导致加载失败
|
|
19
31
|
// import('/unpkg.com/@steedos-ui/amis/dist/amis-sdk.umd.min.js').then(() => {
|
|
20
32
|
|
|
21
33
|
Promise.all([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.2.51-beta.
|
|
3
|
+
"version": "2.2.51-beta.2",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "c324c40fa8facd3bf73a51e8c417293a9349f9fb"
|
|
12
12
|
}
|