feat(Popover): add default slot

This commit is contained in:
chenjiahan
2020-11-20 14:26:41 +08:00
committed by neverland
parent ac93092441
commit cb47f2bbd1
5 changed files with 166 additions and 90 deletions
+15 -4
View File
@@ -4,7 +4,7 @@
.van-popover {
position: absolute;
overflow: visible;
border-radius: @border-radius-lg;
background-color: transparent;
transition: opacity 0.15s, transform 0.15s;
&__wrapper {
@@ -20,6 +20,11 @@
border-width: 6px;
}
&__content {
overflow: hidden;
border-radius: @border-radius-lg;
}
&__action {
position: relative;
display: flex;
@@ -191,8 +196,11 @@
&--light {
color: @text-color;
background-color: @white;
box-shadow: 0 2px 12px rgba(50, 50, 51, 0.12);
.van-popover__content {
background-color: @white;
box-shadow: 0 2px 12px rgba(50, 50, 51, 0.12);
}
.van-popover__arrow {
color: @white;
@@ -215,7 +223,10 @@
&--dark {
color: @white;
background-color: #4a4a4a;
.van-popover__content {
background-color: #4a4a4a;
}
.van-popover__arrow {
color: #4a4a4a;