mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix(editor): 修复antd主题下button主题选择无样式问题 (#8434)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
9476df104f
commit
60b1253b8d
@ -1,5 +1,10 @@
|
||||
.ae-ButtonLevel-MenuTpl {
|
||||
height: 40px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
button {
|
||||
width: 100%;
|
||||
height: 26px;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
@ -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: '默认',
|
||||
|
Loading…
Reference in New Issue
Block a user