@steedos/service-plugin-amis 2.5.3-beta.8 → 2.5.4
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/main/default/client/amis.render.client.js +3 -0
- package/main/default/pages/listview_form.page.amis.json +1 -0
- package/main/default/pages/object_layouts.page.amis.json +1 -0
- package/main/default/services/metadata/objects.service.js +5 -0
- package/package.json +2 -2
- package/public/amis/amis.css +0 -10
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
// window.ReactDOM = window.__ReactDOM;
|
|
61
61
|
const AmisRenderers = [];
|
|
62
62
|
let amisLib = amisRequire('amis');
|
|
63
|
+
amisLib.registerFilter('t', function (key) {
|
|
64
|
+
return typeof key === 'string' ? window.t(key) : key;
|
|
65
|
+
});
|
|
63
66
|
const registerMap = {
|
|
64
67
|
renderer: amisLib.Renderer,
|
|
65
68
|
formitem: amisLib.FormItem,
|
|
@@ -19,6 +19,9 @@ const ExcludeObjectNames = [
|
|
|
19
19
|
'cms_posts',
|
|
20
20
|
];
|
|
21
21
|
|
|
22
|
+
const ExcludeFieldNames = [
|
|
23
|
+
'instances'
|
|
24
|
+
]
|
|
22
25
|
|
|
23
26
|
module.exports = {
|
|
24
27
|
name: "amis-metadata-objects",
|
|
@@ -388,6 +391,8 @@ module.exports = {
|
|
|
388
391
|
|
|
389
392
|
const fieldsArr = [];
|
|
390
393
|
_.each(objectConfig.fields , (field, field_name)=>{
|
|
394
|
+
if (field.hidden) return;
|
|
395
|
+
if (ExcludeFieldNames.includes(field_name)) return;
|
|
391
396
|
if(!_.has(field, "name")){
|
|
392
397
|
field.name = field_name
|
|
393
398
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "0b1b93c80e8448e54b77064d976b9e20bfe39727",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
package/public/amis/amis.css
CHANGED
|
@@ -101,16 +101,6 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.antd-Crud .antd-Crud-body .antd-Table-contentWrap{
|
|
105
|
-
margin-bottom: 15px;
|
|
106
|
-
}
|
|
107
|
-
@media (max-width: 768px) {
|
|
108
|
-
.antd-Crud .antd-Crud-body .antd-Table-contentWrap{
|
|
109
|
-
margin-bottom: 0px;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
104
|
.antd-Table-footToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--left:not(:first-child){
|
|
115
105
|
margin-left: 0.625rem;
|
|
116
106
|
}
|