@steedos/service-plugin-amis 2.6.6-beta.5 → 2.6.6-beta.6
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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
let amisLib = amisRequire('amis');
|
|
2
|
+
|
|
3
|
+
// filter 的 input 参数很奇怪, 在部分情况下会传入一个boolean值.
|
|
4
|
+
|
|
5
|
+
amisLib.registerFilter('isObjectRouter', function(input){
|
|
6
|
+
if(input === false){
|
|
7
|
+
return input;
|
|
8
|
+
}
|
|
9
|
+
return !!window.FlowRouter.current().params.object_name;
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
amisLib.registerFilter('isPageRouter', function(input){
|
|
13
|
+
if(input === false){
|
|
14
|
+
return input;
|
|
15
|
+
}
|
|
16
|
+
return !!window.FlowRouter.current().params.page_id;
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
amisLib.registerFilter('routerParams', function(input){
|
|
20
|
+
return window.FlowRouter.current().params;
|
|
21
|
+
})
|
|
@@ -49,8 +49,7 @@ const getListPageInitSchema = function (objectApiName) {
|
|
|
49
49
|
"type": "steedos-object-listview",
|
|
50
50
|
"objectApiName": objectApiName,
|
|
51
51
|
"columnsTogglable": false,
|
|
52
|
-
"showHeader": true
|
|
53
|
-
className: "sm:border bg-white sm:rounded border-gray-300 border-solid"
|
|
52
|
+
"showHeader": true
|
|
54
53
|
}]
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -89,7 +88,7 @@ const getRecordPageInitSchema = async function (objectApiName, userSession) {
|
|
|
89
88
|
}
|
|
90
89
|
const content = {
|
|
91
90
|
"type": "tabs",
|
|
92
|
-
"className": "
|
|
91
|
+
"className": "",
|
|
93
92
|
"tabs": [
|
|
94
93
|
detailed
|
|
95
94
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.6.6-beta.
|
|
3
|
+
"version": "2.6.6-beta.6",
|
|
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": "d15840851c7b43a2911874c5cfd4a9a3a9f140a4",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
float: right
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.m-1 {
|
|
87
|
-
margin: 0.25rem
|
|
88
|
-
}
|
|
89
|
-
|
|
90
86
|
.m-0 {
|
|
91
87
|
margin: 0px
|
|
92
88
|
}
|
|
93
89
|
|
|
90
|
+
.m-1 {
|
|
91
|
+
margin: 0.25rem
|
|
92
|
+
}
|
|
93
|
+
|
|
94
94
|
.-m-8 {
|
|
95
95
|
margin: -2rem
|
|
96
96
|
}
|
|
@@ -114,14 +114,14 @@
|
|
|
114
114
|
margin-right: -2.75rem
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.mb-4 {
|
|
118
|
-
margin-bottom: 1rem
|
|
119
|
-
}
|
|
120
|
-
|
|
121
117
|
.mt-2 {
|
|
122
118
|
margin-top: 0.5rem
|
|
123
119
|
}
|
|
124
120
|
|
|
121
|
+
.mb-4 {
|
|
122
|
+
margin-bottom: 1rem
|
|
123
|
+
}
|
|
124
|
+
|
|
125
125
|
.mr-4 {
|
|
126
126
|
margin-right: 1rem
|
|
127
127
|
}
|
|
@@ -134,10 +134,6 @@
|
|
|
134
134
|
margin-bottom: 0.5rem
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.mt-3 {
|
|
138
|
-
margin-top: 0.75rem
|
|
139
|
-
}
|
|
140
|
-
|
|
141
137
|
.mr-7 {
|
|
142
138
|
margin-right: 1.75rem
|
|
143
139
|
}
|
|
@@ -307,7 +303,8 @@
|
|
|
307
303
|
border-width: 0px
|
|
308
304
|
}
|
|
309
305
|
|
|
310
|
-
.border-
|
|
306
|
+
.border-y {
|
|
307
|
+
border-top-width: 1px;
|
|
311
308
|
border-bottom-width: 1px
|
|
312
309
|
}
|
|
313
310
|
|
|
@@ -315,8 +312,8 @@
|
|
|
315
312
|
border-right-width: 1px
|
|
316
313
|
}
|
|
317
314
|
|
|
318
|
-
.border-
|
|
319
|
-
border-
|
|
315
|
+
.border-b {
|
|
316
|
+
border-bottom-width: 1px
|
|
320
317
|
}
|
|
321
318
|
|
|
322
319
|
.border-gray-300 {
|
|
@@ -502,14 +499,14 @@
|
|
|
502
499
|
margin-top: 0.75rem
|
|
503
500
|
}
|
|
504
501
|
|
|
505
|
-
.sm\:rounded {
|
|
506
|
-
border-radius: 0.25rem
|
|
507
|
-
}
|
|
508
|
-
|
|
509
502
|
.sm\:rounded-lg {
|
|
510
503
|
border-radius: 0.5rem
|
|
511
504
|
}
|
|
512
505
|
|
|
506
|
+
.sm\:rounded {
|
|
507
|
+
border-radius: 0.25rem
|
|
508
|
+
}
|
|
509
|
+
|
|
513
510
|
.sm\:border {
|
|
514
511
|
border-width: 1px
|
|
515
512
|
}
|