fix(editor): 修复antd主题下button主题选择无样式问题 (#8434)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-10-19 20:12:27 +08:00 committed by GitHub
parent 9476df104f
commit 60b1253b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,10 @@
.ae-ButtonLevel-MenuTpl {
height: 40px;
height: 32px;
display: flex;
align-items: center;
button {
width: 100%;
height: 26px;
padding: 0;
}
}

View File

@ -1085,8 +1085,17 @@ setSchemaTpl('buttonLevel', {
label: '按钮样式',
type: 'select',
name: 'level',
menuTpl:
'<div class="ae-ButtonLevel-MenuTpl"><button type="button" class="cxd-Button cxd-Button--${value} cxd-Button--size-sm cxd-Button--block">${label}</button></div>',
menuTpl: {
type: 'container',
bodyClassName: 'ae-ButtonLevel-MenuTpl',
body: {
type: 'button',
label: '${label}',
size: 'sm',
level: '${value}'
}
},
options: [
{
label: '默认',