diff --git a/src/table/index.wc b/src/table/index.wc index 2962fb0..d64b0c5 100644 --- a/src/table/index.wc +++ b/src/table/index.wc @@ -58,10 +58,12 @@ export default class Table { let w = flex[i] if (typeof w === 'number') { w = `flex="${w}"` - } else { + } else if (typeof w === 'string') { w = `style="${w}"` + } else { + w = '' } - return `${name}` + return `${name}` }) .join('') } diff --git a/src/table/td.wc b/src/table/td.wc index d859ab1..7e62a86 100644 --- a/src/table/td.wc +++ b/src/table/td.wc @@ -10,7 +10,7 @@ min-width: 60px; min-height: 36px; border-right: 1px solid nth($cp, 3); - border-bottom: 1px solid nth($cp, 3); + border-top: 1px solid nth($cp, 3); } :host([flex='2']) { flex: 2; diff --git a/src/table/tr.wc b/src/table/tr.wc index f13f675..e3253a5 100644 --- a/src/table/tr.wc +++ b/src/table/tr.wc @@ -11,6 +11,10 @@ background-color: #fbfbfb; } +:host(.thead) ::slotted(wc-td[leaf]) { + border-top: 0; + // border-bottom: 1px solid nth($cp, 3); +} ::slotted(wc-td:last-child) { border-right: 0; }