diff --git a/components/table/style/index.less b/components/table/style/index.less index a3c4b38994..d61fef31ea 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -23,8 +23,7 @@ table { width: 100%; - border-collapse: separate; - border-spacing: 0; + border-collapse: collapse; text-align: left; border-radius: @border-radius-base @border-radius-base 0 0; } @@ -301,8 +300,6 @@ .@{table-prefix-cls}-fixed-left table, .@{table-prefix-cls}-fixed-right table { border: @border-width-base @border-style-base @border-color-split; - border-right: 0; - border-bottom: 0; } &.@{table-prefix-cls}-empty { @@ -313,23 +310,10 @@ } &.@{table-prefix-cls}-fixed-header { - .@{table-prefix-cls}-header > table { - border-bottom: 0; - } - .@{table-prefix-cls}-body > table { - border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } - - .@{table-prefix-cls}-body-inner > table { - border-top: 0; - } - - .@{table-prefix-cls}-placeholder { - border: 0; - } } .@{table-prefix-cls}-thead > tr:not(:last-child) > th { diff --git a/components/table/style/size.less b/components/table/style/size.less index 1bbe6e4a3f..485ccb03d9 100644 --- a/components/table/style/size.less +++ b/components/table/style/size.less @@ -22,8 +22,13 @@ .@{table-prefix-cls}-small { border: @border-width-base @border-style-base @border-color-split; + padding: 0 @table-padding-horizontal/2; border-radius: @border-radius-base; + &.@{table-prefix-cls}-fixed-header { + padding: 0; + } + > .@{table-prefix-cls}-title, > .@{table-prefix-cls}-footer { padding: @table-padding-vertical/2 @table-padding-horizontal/2; @@ -44,7 +49,6 @@ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-body-outer > .@{table-prefix-cls}-body-inner > table, > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-body-outer > .@{table-prefix-cls}-body-inner > table { border: 0; - padding: 0 @table-padding-horizontal/2; > .@{table-prefix-cls}-thead > tr > th, > .@{table-prefix-cls}-tbody > tr > td { padding: @table-padding-vertical/2 @table-padding-horizontal/2;