@steedos/service-pages 2.4.0-beta.3 → 2.4.0-beta.5
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.
|
@@ -86,13 +86,14 @@
|
|
|
86
86
|
"type": "page",
|
|
87
87
|
name: `amis-${appId}-${objectApiName}-listview`,
|
|
88
88
|
"title": "Welcome to Steedos",
|
|
89
|
-
bodyClassName: 'p-3',
|
|
89
|
+
bodyClassName: 'steedos-listview p-0 sm:border bg-white sm:shadow sm:rounded border-slate-300 border-solid sm:m-3 flex flex-1 flex-col',
|
|
90
90
|
"body": [
|
|
91
91
|
{
|
|
92
92
|
"type": "steedos-object-listview",
|
|
93
93
|
showHeader: true,
|
|
94
94
|
"label": "列表视图",
|
|
95
95
|
"objectApiName": "${objectName}",
|
|
96
|
+
"columnsTogglable": false,
|
|
96
97
|
"listName": "all",
|
|
97
98
|
"id": "u:be7c6341cd11"
|
|
98
99
|
}
|
|
@@ -107,9 +108,9 @@
|
|
|
107
108
|
return {
|
|
108
109
|
render_engine: 'amis',
|
|
109
110
|
name: 'steedosRecordPage',
|
|
110
|
-
bodyClassName: 'p-3',
|
|
111
111
|
schema: {
|
|
112
|
-
"type": "
|
|
112
|
+
"type": "service",
|
|
113
|
+
"className": 'sm:p-3',
|
|
113
114
|
"name": `amis-${appId}-${objectApiName}-detail`,
|
|
114
115
|
"title": "Welcome to Steedos",
|
|
115
116
|
"body": [
|
|
@@ -746,15 +747,13 @@
|
|
|
746
747
|
}
|
|
747
748
|
|
|
748
749
|
Steedos.Page.Header.render = function(appId, tabId){
|
|
749
|
-
const app = _.find(Session.get('app_menus'), {id: appId})
|
|
750
|
-
if (
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
document.body.classList.remove("sidebar")
|
|
757
|
-
}
|
|
750
|
+
const app = _.find(Session.get('app_menus'), {id: appId}) || {}
|
|
751
|
+
if (app.id === 'admin' || (window.innerWidth < 768))
|
|
752
|
+
app.showSidebar = true;
|
|
753
|
+
if (app.showSidebar)
|
|
754
|
+
document.body.classList.add('sidebar')
|
|
755
|
+
else
|
|
756
|
+
document.body.classList.remove("sidebar")
|
|
758
757
|
|
|
759
758
|
try {
|
|
760
759
|
const data = {
|
|
@@ -817,7 +816,7 @@
|
|
|
817
816
|
"type": "steedos-global-header",
|
|
818
817
|
"label": "Global Header",
|
|
819
818
|
className: 'flex flex-nowrap gap-x-3 items-center',
|
|
820
|
-
logoutScript: "window.
|
|
819
|
+
logoutScript: "window.Steedos.logout();",
|
|
821
820
|
customButtons: [
|
|
822
821
|
{
|
|
823
822
|
"type": "button",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.5",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "e7eac21c8da88e04b1f01ae87cc939c55f7d90af",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|