@steedos/service-plugin-amis 2.5.17-beta.4 → 2.5.17-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.
@@ -170,6 +170,31 @@
170
170
  },
171
171
  "id": "u:25a6ee957503"
172
172
  },
173
+ {
174
+ "label": "显示模式",
175
+ "name": "crud_mode",
176
+ "type": "select",
177
+ "value": "table",
178
+ "en-US": {
179
+ "label": "Crud Mode"
180
+ },
181
+ "options": [
182
+ {
183
+ "label": "表格",
184
+ "value": "table",
185
+ "en-US": {
186
+ "label": "Table"
187
+ }
188
+ },
189
+ {
190
+ "label": "卡片",
191
+ "value": "cards",
192
+ "en-US": {
193
+ "label": "Cards"
194
+ }
195
+ }
196
+ ]
197
+ },
173
198
  {
174
199
  "label": "显示的列",
175
200
  "type": "transfer",
@@ -541,7 +566,7 @@
541
566
  "data": {
542
567
  "recordId": "${recordId}",
543
568
  "defaultData": "${defaultData}",
544
- "query": "{data:object_listviews(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,label,name,object_name,requestAdaptor,adaptor,filter_scope,shared,show_count,columns,filter_fields,sort,filters,filter_logic,mobile_columns,searchable_fields,sort_no,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},enable_amis_schema,amis_schema,_display{shared,show_count,created,modified}}}"
569
+ "query": "{data:object_listviews(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,label,name,object_name,requestAdaptor,adaptor,filter_scope,crud_mode,shared,show_count,columns,filter_fields,sort,filters,filter_logic,mobile_columns,searchable_fields,sort_no,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},enable_amis_schema,amis_schema,_display{shared,show_count,created,modified}}}"
545
570
  },
546
571
  "replaceData": false,
547
572
  "responseData": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.5.17-beta.4",
3
+ "version": "2.5.17-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": "627c7718c27a375320941bdb1cb774c280991f54",
16
+ "gitHead": "e197a26e88e736fe56c9a4c5da7cd192119a4654",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }
@@ -112,6 +112,10 @@
112
112
  margin-top: 0.5rem
113
113
  }
114
114
 
115
+ .mr-4 {
116
+ margin-right: 1rem
117
+ }
118
+
115
119
  .-mt-3 {
116
120
  margin-top: -0.75rem
117
121
  }
@@ -302,6 +306,11 @@
302
306
  background-color: rgb(255 255 255 / var(--tw-bg-opacity))
303
307
  }
304
308
 
309
+ .bg-green-300 {
310
+ --tw-bg-opacity: 1;
311
+ background-color: rgb(134 239 172 / var(--tw-bg-opacity))
312
+ }
313
+
305
314
  .bg-gray-100 {
306
315
  --tw-bg-opacity: 1;
307
316
  background-color: rgb(243 244 246 / var(--tw-bg-opacity))
@@ -319,16 +328,6 @@
319
328
  padding: 0.5rem
320
329
  }
321
330
 
322
- .px-0 {
323
- padding-left: 0px;
324
- padding-right: 0px
325
- }
326
-
327
- .py-4 {
328
- padding-top: 1rem;
329
- padding-bottom: 1rem
330
- }
331
-
332
331
  .px-2 {
333
332
  padding-left: 0.5rem;
334
333
  padding-right: 0.5rem
@@ -359,6 +358,11 @@
359
358
  padding-bottom: 0.5rem
360
359
  }
361
360
 
361
+ .px-0 {
362
+ padding-left: 0px;
363
+ padding-right: 0px
364
+ }
365
+
362
366
  .py-1 {
363
367
  padding-top: 0.25rem;
364
368
  padding-bottom: 0.25rem