优化表格
parent
fef32d4fef
commit
d74ccf6fc6
|
@ -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 `<wc-td align="center" ${w}>${name}</wc-td>`
|
||||
return `<wc-td leaf align="center" ${w}>${name}</wc-td>`
|
||||
})
|
||||
.join('')
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue