@steedos/standard-ui 2.3.0-beta.33 → 2.3.0-beta.35

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.
@@ -1,4 +1,4 @@
1
- name: standard_edit
1
+ name: amis_edit
2
2
  amis_schema: |-
3
3
  {
4
4
  "type": "service",
@@ -43,4 +43,7 @@ is_enable: true
43
43
  label: 编辑
44
44
  'on': record_only
45
45
  type: amis_button
46
- visible: true
46
+ visible: !!js/function |
47
+ function (object_name, record_id, record_permissions, record) {
48
+ return Creator.baseObject.actions.standard_edit.visible() && !record.is_system;
49
+ }
@@ -1,4 +1,4 @@
1
- name: standard_new
1
+ name: amis_new
2
2
  amis_schema: |-
3
3
  {
4
4
  "type": "service",
@@ -46,4 +46,8 @@ is_enable: true
46
46
  label: 新建
47
47
  'on': list
48
48
  type: amis_button
49
- visible: true
49
+ visible: !!js/function |
50
+ function (object_name) {
51
+ return Creator.baseObject.actions.standard_new.visible();
52
+ }
53
+
@@ -75,5 +75,11 @@ module.exports = {
75
75
  },
76
76
  createOAuth2AppVisible: function () {
77
77
  return false && Creator.baseObject.actions.standard_new.visible();
78
+ },
79
+ standard_editVisible: function(object_name, record_id, record_permissions, record){
80
+ return false
81
+ },
82
+ standard_newVisible: function(object_name, record_id, record_permissions, record){
83
+ return false
78
84
  }
79
85
  }
@@ -304,6 +304,10 @@ actions:
304
304
  label: 创建 OAuth 应用
305
305
  on: list
306
306
  sort: 180
307
+ standard_edit:
308
+ visible: false
309
+ standard_new:
310
+ visible: false
307
311
  list_views:
308
312
  all:
309
313
  label: All Apps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.3.0-beta.33",
3
+ "version": "2.3.0-beta.35",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "a2570c1f4432d59f68d7c28b5147555367275108"
15
+ "gitHead": "a5fb79aafcd152165f41d981c8d1ce97d7f4c205"
16
16
  }