From 8d96790f07af96a5405b24c33295c0b4edbeefd3 Mon Sep 17 00:00:00 2001 From: yangdianhua Date: Thu, 18 Aug 2022 20:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AD=97=E6=AE=B5=E5=90=8D:?= =?UTF-8?q?=20amis-saas-6022=20[Improvement.]=20[=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F]=20=E6=8C=89=E9=92=AE=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E7=9A=84=E5=AD=97=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie5ea758f3e83319c589a7ab45b49726f1cf318d6 --- .../src/plugin/Form/ButtonToolbar.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/ButtonToolbar.tsx b/packages/amis-editor/src/plugin/Form/ButtonToolbar.tsx index 5ccf27e06..c94e63092 100644 --- a/packages/amis-editor/src/plugin/Form/ButtonToolbar.tsx +++ b/packages/amis-editor/src/plugin/Form/ButtonToolbar.tsx @@ -22,6 +22,7 @@ export class ButtonToolbarControlPlugin extends BasePlugin { tags = ['表单项', '按钮']; scaffold = { type: 'button-toolbar', + label: '按钮工具栏', buttons: [ { type: 'button', @@ -40,8 +41,7 @@ export class ButtonToolbarControlPlugin extends BasePlugin { wrapWithPanel: false, mode: 'horizontal', body: { - ...this.scaffold, - label: '按钮工具栏' + ...this.scaffold } }; @@ -70,15 +70,7 @@ export class ButtonToolbarControlPlugin extends BasePlugin { { title: '基本', body: [ - getSchemaTpl('formItemName', { - required: true - }), getSchemaTpl('label'), - getSchemaTpl('valueFormula', { - rendererSchema: { - type: 'input-text' - } - }), getSchemaTpl('labelRemark'), getSchemaTpl('remark'), getSchemaTpl('description'), @@ -108,9 +100,7 @@ export class ButtonToolbarControlPlugin extends BasePlugin { }), ] }, - getSchemaTpl('status', { - isFormItem: true, - }) + getSchemaTpl('status') ]), ] },