@steedos/standard-ui 2.5.6-beta.6 → 2.5.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.
- package/main/default/objectTranslations/apps.en/apps.en.objectTranslation.yml +1 -0
- package/main/default/objectTranslations/apps.zh-CN/apps.zh-CN.objectTranslation.yml +1 -0
- package/main/default/objects/apps/buttons/amis_edit.button.yml +2 -2
- package/main/default/objects/apps/buttons/amis_new.button.yml +2 -2
- package/main/default/objects/apps.object.yml +3 -3
- package/main/default/objects/tabs/buttons/generate_object_tabs.button.yml +2 -2
- package/package.json +2 -2
|
@@ -5,14 +5,14 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
8
|
+
"label": "${'apps.amis_edit.edit' | t}",
|
|
9
9
|
"id": "u:standard_edit",
|
|
10
10
|
"onEvent": {
|
|
11
11
|
"click": {
|
|
12
12
|
"actions": [
|
|
13
13
|
{
|
|
14
14
|
"actionType": "custom",
|
|
15
|
-
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title =
|
|
15
|
+
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title = t('apps.amis_edit.edit_apps');\n doAction({\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"type\": \"dialog\",\n \"title\": title,\n \"body\": [formSchema],\n \"size\": \"lg\"\n }\n });\n}"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"weight": 0
|
|
@@ -5,7 +5,7 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
8
|
+
"label": "${'apps.amis_new.new' | t}",
|
|
9
9
|
"id": "u:standard_new",
|
|
10
10
|
"onEvent": {
|
|
11
11
|
"click": {
|
|
@@ -14,7 +14,7 @@ amis_schema: |-
|
|
|
14
14
|
"actionType": "custom",
|
|
15
15
|
"componentId": "",
|
|
16
16
|
"args": {},
|
|
17
|
-
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title =
|
|
17
|
+
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title = t('apps.amis_new.new_apps');\n doAction({\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"type\": \"dialog\",\n \"title\": title,\n \"body\": [{\n \"type\": \"service\",\n \"body\": [formSchema],\n \"data\": {\n \"objectName\": \"${object_name}\",\n \"recordId\": \"${record_id}\"\n }\n }],\n \"size\": \"lg\"\n }\n });\n}"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"weight": 0
|
|
@@ -177,7 +177,7 @@ fields:
|
|
|
177
177
|
label: Desktop Menu(Invalid)
|
|
178
178
|
type: lookup
|
|
179
179
|
multiple: true
|
|
180
|
-
group:
|
|
180
|
+
group: other
|
|
181
181
|
optionsFunction: !!js/function |
|
|
182
182
|
function () {
|
|
183
183
|
return Steedos.getObjectsOptions()
|
|
@@ -187,7 +187,7 @@ fields:
|
|
|
187
187
|
label: Mobile Menus(Invalid)
|
|
188
188
|
type: lookup
|
|
189
189
|
multiple: true
|
|
190
|
-
group:
|
|
190
|
+
group: other
|
|
191
191
|
optionsFunction: !!js/function |
|
|
192
192
|
function () {
|
|
193
193
|
return Steedos.getObjectsOptions()
|
|
@@ -196,7 +196,7 @@ fields:
|
|
|
196
196
|
label: 启用自定义导航
|
|
197
197
|
type: boolean
|
|
198
198
|
required: false
|
|
199
|
-
group:
|
|
199
|
+
group: other
|
|
200
200
|
|
|
201
201
|
oauth2_enabled:
|
|
202
202
|
group: OAuth2
|
|
@@ -5,14 +5,14 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
8
|
+
"label": "${ 'tabs.generate_object_tabs.objects_tab' | t}",
|
|
9
9
|
"id": "u:test",
|
|
10
10
|
"onEvent": {
|
|
11
11
|
"click": {
|
|
12
12
|
"actions": [
|
|
13
13
|
{
|
|
14
14
|
"actionType": "custom",
|
|
15
|
-
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"generate_object_tabs\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title =
|
|
15
|
+
"script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"generate_object_tabs\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title = t('tabs.generate_object_tabs.objects_tab_title');\n doAction({\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"type\": \"dialog\",\n \"title\": title,\n \"body\": formSchema,\n \"size\": \"lg\"\n }\n });\n}"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"weight": 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.6
|
|
3
|
+
"version": "2.5.6",
|
|
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": "
|
|
15
|
+
"gitHead": "c0968debfcb851e7e01f73a2392fd57e62501b78"
|
|
16
16
|
}
|