Browse Source

Better responsive style of Table

pull/8343/head
afc163 7 years ago
parent
commit
bd9fba9f45
  1. 2
      components/table/style/index.less
  2. 16
      components/table/style/responsive.less

2
components/table/style/index.less

@ -691,3 +691,5 @@
box-shadow: none;
}
}
@import './responsive';

16
components/table/style/responsive.less

@ -0,0 +1,16 @@
@media (max-width: @screen-xs) {
.@{table-prefix-cls} {
&-thead > tr,
&-tbody > tr {
> th,
> td {
display: block;
width: auto !important;
border: none;
&:last-child {
border-bottom: 1px solid @border-color-split;
}
}
}
}
}
Loading…
Cancel
Save