@steedos/standard-object-database 2.6.4-beta.9 → 2.6.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.
@@ -90,6 +90,10 @@ fields:
90
90
  label: Enable Enhanced Lookup
91
91
  help: When enabled, the lookup field associated with this object displays its options as a pop-up window.
92
92
  description:
93
+ enable_split:
94
+ label: Enable Split
95
+ help:
96
+ description:
93
97
  description:
94
98
  label: Description
95
99
  help:
@@ -87,6 +87,10 @@ fields:
87
87
  label: 启用弹出窗口查找模式
88
88
  help: 当启用时,与此对象关联的查找字段将以弹出窗口的形式显示其选项。
89
89
  description:
90
+ enable_split:
91
+ label: 默认使用分栏视图
92
+ help:
93
+ description:
90
94
  description:
91
95
  label: 备注
92
96
  help:
@@ -476,7 +476,7 @@ var triggers = {
476
476
  if(doc.name === 'name' || doc.is_name){
477
477
  checkNameField({type: doc.type})
478
478
  }
479
- console.log('insert', doc)
479
+ // console.log('insert', doc)
480
480
  if (isRepeatedName(doc)) {
481
481
 
482
482
  throw new Meteor.Error(doc.name, "字段名不能重复");
@@ -338,7 +338,13 @@ let objectTriggers = {
338
338
  object_name: doc.name,
339
339
  shared: true,
340
340
  filter_scope: "space",
341
- columns: [{field: 'name'}]
341
+ columns: [{field: 'name'}],
342
+ "sort" : [
343
+ {
344
+ "field_name" : "created",
345
+ "order" : "desc"
346
+ }
347
+ ]
342
348
  });
343
349
  Creator.getCollection("object_listviews").insert({
344
350
  name: "recent",
@@ -149,6 +149,11 @@ fields:
149
149
  group: Switch
150
150
  defaultValue: true
151
151
  hidden: true
152
+ enable_split:
153
+ type: boolean
154
+ label: Enable Split
155
+ group: Switch
156
+ defaultValue: false
152
157
  # enable_audit:
153
158
  # type: boolean
154
159
  # label: Enable Audit
@@ -294,7 +299,7 @@ fields:
294
299
  "type": "transfer",
295
300
  "options": [],
296
301
  "multiple": true,
297
- "required": true,
302
+ "required": false,
298
303
  "placeholder": "-",
299
304
  "className": "col-span-2 m-0 w-full",
300
305
  "searchable": true,
@@ -304,6 +309,7 @@ fields:
304
309
  "source": {
305
310
  "method": "get",
306
311
  "url": "/service/api/amis-metadata-objects/objects/${name}/fields/options",
312
+ "sendOn": "${!!name && _master.recordId}"
307
313
  },
308
314
  "joinValues": false,
309
315
  "extractValue": true,
@@ -35,6 +35,14 @@ module.exports = {
35
35
  if (!this.doc.name) {
36
36
  this.doc.name = 'listview_' + this.doc._id.toLowerCase();
37
37
  }
38
+ if (!this.doc.sort) {
39
+ this.doc.sort = [
40
+ {
41
+ "field_name" : "created",
42
+ "order" : "desc"
43
+ }
44
+ ]
45
+ }
38
46
  await util.checkAPIName(this.object_name, 'name', this.doc.name, undefined, [['is_system','!=', true], ['object_name','=', this.doc.object_name]]);
39
47
  },
40
48
  beforeUpdate: async function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.6.4-beta.9",
3
+ "version": "2.6.5",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,9 +12,9 @@
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
14
  "@steedos-widgets/amis-lib": "^1.0.22",
15
- "@steedos/standard-objects": "2.6.4-beta.9"
15
+ "@steedos/standard-objects": "2.6.5"
16
16
  },
17
17
  "repository": {},
18
18
  "license": "MIT",
19
- "gitHead": "da7406d5127446b0e745b5c834d9646b5ab219e7"
19
+ "gitHead": "977b48666fda5a16f911d9b981da6b8b37a57e5c"
20
20
  }