@steedos/service-plugin-amis 2.3.2-beta.12 → 2.3.2-beta.13
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.
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
const getAmisLng = ()=>{
|
|
59
|
-
locale = Creator.USER_CONTEXT
|
|
59
|
+
var locale = Creator.USER_CONTEXT ? Creator.USER_CONTEXT.user.language : null;
|
|
60
60
|
if(locale){
|
|
61
61
|
locale = locale.replace('_', '-');
|
|
62
62
|
locale = locale === 'en' ? 'en-US' : locale;
|
|
@@ -153,17 +153,17 @@
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
const AmisEnv = {
|
|
156
|
-
getModalContainer: (props)=>{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
156
|
+
// getModalContainer: (props)=>{
|
|
157
|
+
// let div = document.querySelector("#amisModalContainer");
|
|
158
|
+
// if(!div){
|
|
159
|
+
// div = document.createElement('div');
|
|
160
|
+
// div.className="amis-scope";
|
|
161
|
+
// div.style.height='0px';
|
|
162
|
+
// div.id="amisModalContainer";
|
|
163
|
+
// document.body.appendChild(div)
|
|
164
|
+
// }
|
|
165
|
+
// return div;
|
|
166
|
+
// },
|
|
167
167
|
jumpTo: (to, action) => {
|
|
168
168
|
if (to === 'goBack') {
|
|
169
169
|
return window.history.back();
|
|
@@ -413,16 +413,6 @@
|
|
|
413
413
|
"option": "使用 amis自定义列表",
|
|
414
414
|
"en-US": {
|
|
415
415
|
"option": "Enable amis_schema"
|
|
416
|
-
},
|
|
417
|
-
"onEvent": {
|
|
418
|
-
"change": {
|
|
419
|
-
"actions": [
|
|
420
|
-
{
|
|
421
|
-
"actionType": "custom",
|
|
422
|
-
"script": "const { object_name, name: listName, enable_amis_schema, amis_schema} = context.props.data;\nwindow.BuilderAmisObject?.AmisLib.getListviewInitSchema(object_name, listName).then(function (result) {\n if (!enable_amis_schema && !amis_schema) {\n doAction({\n actionType: 'setValue',\n componentId: 'listview_form',\n args: {\n value: { amis_schema: result }\n },\n });\n }\n});\n\n\n\n\n\n\n"
|
|
423
|
-
}
|
|
424
|
-
]
|
|
425
|
-
}
|
|
426
416
|
}
|
|
427
417
|
},
|
|
428
418
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.3.2-beta.
|
|
3
|
+
"version": "2.3.2-beta.13",
|
|
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": "^0.0.11"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "0ffb7e237da2ef2aeb0f44f051267483598c2033"
|
|
17
17
|
}
|