diff --git a/packages/amis-editor-core/scss/components/_button.scss b/packages/amis-editor-core/scss/components/_button.scss index 4aa1c5554..8add77e8f 100644 --- a/packages/amis-editor-core/scss/components/_button.scss +++ b/packages/amis-editor-core/scss/components/_button.scss @@ -1,5 +1,10 @@ .ae-ButtonLevel-MenuTpl { - height: 40px; + height: 32px; display: flex; align-items: center; + button { + width: 100%; + height: 26px; + padding: 0; + } } diff --git a/packages/amis-editor/src/tpl/common.tsx b/packages/amis-editor/src/tpl/common.tsx index 48125f3a8..aa1b95342 100644 --- a/packages/amis-editor/src/tpl/common.tsx +++ b/packages/amis-editor/src/tpl/common.tsx @@ -1085,8 +1085,17 @@ setSchemaTpl('buttonLevel', { label: '按钮样式', type: 'select', name: 'level', - menuTpl: - '
', + menuTpl: { + type: 'container', + bodyClassName: 'ae-ButtonLevel-MenuTpl', + body: { + type: 'button', + label: '${label}', + + size: 'sm', + level: '${value}' + } + }, options: [ { label: '默认',