feat(Panel): Panel组件样式调整 (#2235)

This commit is contained in:
Lindy 2019-11-01 14:44:51 +08:00 committed by neverland
parent 6db1a9656d
commit 747ac0e7d2
2 changed files with 8 additions and 3 deletions

View File

@ -222,6 +222,11 @@
// Overlay // Overlay
@overlay-background-color: rgba(0, 0, 0, 0.7); @overlay-background-color: rgba(0, 0, 0, 0.7);
// Panel
@panel-background-color: @white;
@panel-header-value-color: @red;
@panel-footer-padding: @padding-xs @padding-md;
// Popup // Popup
@popup-round-border-radius: 20px; @popup-round-border-radius: 20px;
@popup-close-icon-size: 18px; @popup-close-icon-size: 18px;

View File

@ -2,13 +2,13 @@
@import '../common/style/theme.less'; @import '../common/style/theme.less';
.van-panel { .van-panel {
.theme(background, '@white'); .theme(background, '@panel-background-color');
&__header-value { &__header-value {
.theme(color, '@red'); .theme(color, '@panel-header-value-color');
} }
&__footer { &__footer {
padding: 10px 15px; .theme(padding,'@panel-footer-padding');
} }
} }