This commit is contained in:
梁灏 2019-06-08 17:12:53 +08:00
parent 4d4b814baa
commit a68d21cde0
2 changed files with 43 additions and 4 deletions

View file

@ -46,10 +46,6 @@
type: Boolean,
default: false
},
page: {
type: [Boolean, Object],
default: false
},
size: {
validator (value) {
return oneOf(value, ['small', 'large', 'default']);

View file

@ -222,3 +222,46 @@
}
}
}
// responsive
@media screen and (max-width: @screen-md) {
.@{list-prefix-cls} {
&-item {
&-action {
margin-left: 24px;
}
}
}
.@{list-prefix-cls}-vertical {
.@{list-prefix-cls}-item {
&-extra {
margin-left: 24px;
}
}
}
}
@media screen and (max-width: @screen-sm) {
.@{list-prefix-cls} {
&-item {
flex-wrap: wrap;
&-action {
margin-left: 12px;
}
}
}
.@{list-prefix-cls}-vertical {
.@{list-prefix-cls}-item {
flex-wrap: wrap-reverse;
&-main {
min-width: 220px;
}
&-extra {
margin: auto auto 16px;
}
}
}
}