@steedos/service-plugin-amis 2.7.1-beta.8 → 2.7.1
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.
|
@@ -275,6 +275,10 @@
|
|
|
275
275
|
theme: 'antd',
|
|
276
276
|
isCurrentUrl: isCurrentUrl,
|
|
277
277
|
requestAdaptor: (config)=>{
|
|
278
|
+
if(config.allowCredentials == false){
|
|
279
|
+
config.withCredentials = false;
|
|
280
|
+
delete config.allowCredentials
|
|
281
|
+
}
|
|
278
282
|
// url是相对路径
|
|
279
283
|
if(config.url && (!/^http[s]?:\/\//i.test(config.url))){
|
|
280
284
|
if(Meteor.isCordova){
|
|
@@ -238,7 +238,7 @@ module.exports = {
|
|
|
238
238
|
const include_hide = ctx.params.include_hide === "true";
|
|
239
239
|
const include_related = ctx.params.include_related === "true";
|
|
240
240
|
|
|
241
|
-
if(objectConfig.enable_workflow){
|
|
241
|
+
if(objectConfig.enable_workflow && objectConfig.fields?.instance_state){
|
|
242
242
|
try {
|
|
243
243
|
objectConfig.fields.instance_state.hidden = false;
|
|
244
244
|
} catch (error) {
|
|
@@ -88,7 +88,7 @@ const getRecordPageInitSchema = async function (objectApiName, userSession) {
|
|
|
88
88
|
}
|
|
89
89
|
const content = {
|
|
90
90
|
"type": "tabs",
|
|
91
|
-
"className": "steedos-record-tabs bg-white p-4
|
|
91
|
+
"className": "steedos-record-tabs bg-white p-4 sm:m-2 sm:border sm:rounded",
|
|
92
92
|
"tabs": [
|
|
93
93
|
detailed
|
|
94
94
|
]
|
|
@@ -101,7 +101,8 @@ const getRecordPageInitSchema = async function (objectApiName, userSession) {
|
|
|
101
101
|
"type": "steedos-record-detail-header",
|
|
102
102
|
"label": "标题面板",
|
|
103
103
|
"objectApiName": "${objectName}",
|
|
104
|
-
"recordId": "${recordId}"
|
|
104
|
+
"recordId": "${recordId}",
|
|
105
|
+
"showBackButton": "${!_inDrawer}"
|
|
105
106
|
},
|
|
106
107
|
content
|
|
107
108
|
];
|
|
@@ -111,7 +112,7 @@ const getRecordPageInitSchema = async function (objectApiName, userSession) {
|
|
|
111
112
|
name: getScopeId(objectApiName, "record_detail"),
|
|
112
113
|
objectApiName: "${objectName}",
|
|
113
114
|
bodyClassName: '',
|
|
114
|
-
className: "object-detail-page",
|
|
115
|
+
className: "object-detail-page steedos-record-content overflow-y-auto p-0 m-0 flex-1 h-full bg-gray-100",
|
|
115
116
|
regions: [
|
|
116
117
|
"body"
|
|
117
118
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.7.1
|
|
3
|
+
"version": "2.7.1",
|
|
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": "5485c0bd811776f2ffde988c0a9394d778a2dc90",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
package/public/amis/amis.css
CHANGED
|
@@ -413,6 +413,10 @@
|
|
|
413
413
|
padding-left: 2.5rem
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
.pt-4 {
|
|
417
|
+
padding-top: 1rem
|
|
418
|
+
}
|
|
419
|
+
|
|
416
420
|
.text-left {
|
|
417
421
|
text-align: left
|
|
418
422
|
}
|
|
@@ -488,12 +492,32 @@
|
|
|
488
492
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
489
493
|
}
|
|
490
494
|
|
|
495
|
+
.hover\:ml-2\.5:hover {
|
|
496
|
+
margin-left: 0.625rem
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.hover\:ml-2:hover {
|
|
500
|
+
margin-left: 0.5rem
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.hover\:inline-block:hover {
|
|
504
|
+
display: inline-block
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.hover\:cursor-pointer:hover {
|
|
508
|
+
cursor: pointer
|
|
509
|
+
}
|
|
510
|
+
|
|
491
511
|
.focus\:outline-none:focus {
|
|
492
512
|
outline: 2px solid transparent;
|
|
493
513
|
outline-offset: 2px
|
|
494
514
|
}
|
|
495
515
|
|
|
496
516
|
@media (min-width: 640px) {
|
|
517
|
+
.sm\:m-2 {
|
|
518
|
+
margin: 0.5rem
|
|
519
|
+
}
|
|
520
|
+
|
|
497
521
|
.sm\:rounded-lg {
|
|
498
522
|
border-radius: 0.5rem
|
|
499
523
|
}
|