diff --git a/src/table/index.wc b/src/table/index.wc index bdfd367..52cd2cb 100644 --- a/src/table/index.wc +++ b/src/table/index.wc @@ -18,12 +18,10 @@ li { } .table { overflow: hidden; + flex: 1; display: flex; flex-direction: column; - min-width: 100%; - // height: 100%; border: 1px solid nth($cp, 3); - border-right: 0; .thead, .tfoot { @@ -66,6 +64,10 @@ li { &.flex-8 { flex: 8; } + + &:last-child { + border-right: 0; + } } .thead .td { diff --git a/src/table/tr.wc b/src/table/tr.wc index 90d4895..51b5a86 100644 --- a/src/table/tr.wc +++ b/src/table/tr.wc @@ -7,11 +7,15 @@ // flex: 1; display: flex; width: auto; + // border-bottom: 1px solid nth($cp, 3); color: inherit; } :host(:hover) { background-color: #fbfbfb; } +::slotted(wc-table-td:last-child) { + border-right: 0; +}