法规清单表头高度修改

This commit is contained in:
zyx.net
2023-01-09 17:55:44 +08:00
parent e70c438e6f
commit 1ed4250bc0
3 changed files with 16 additions and 8 deletions
-3
View File
@@ -136,7 +136,4 @@
}
.ant-tooltip-arrow::before {
background-color: #fff;
}
.customizetable .ant-table-thead > tr > th {
padding: 12px 8px;
}
+7 -2
View File
@@ -94,7 +94,7 @@ const ResizeHeaderOne = function(val, name) {
// 处理多级表头
col = getRenderCoL(key, val)
let content = [].concat(children)
if (col) {
if (col ) {
const handlerVNode = h(DragHandler, {
props: {
width: col.width,
@@ -106,10 +106,15 @@ const ResizeHeaderOne = function(val, name) {
handlerVNode
)
}
console.log(restProps)
let className = ''
if ((restProps.attrs && restProps.attrs.colSpan && restProps.attrs.colSpan == 1) || (restProps.attrs && restProps.attrs.colSpan && restProps.attrs.colSpan > 0)){
className = ' second'
}
return h('th', {
key,
props: { col },
...Object.assign({}, restProps, { class: (restProps.class || '') + ' nio-header-th' })
...Object.assign({}, restProps, { class: (restProps.class || '') + ' nio-header-th' + className})
}, content)
}
}
@@ -2672,12 +2672,18 @@
width: 100% !important;
}
.tableList .ant-table-thead > tr > th {
padding: 0px 16px !important;
//.customizetable .ant-table-thead > tr > th {
// height: 46px !important;
//padding: 8px 8px !important;
//font-weight: bold;
//background: #f3f6f6;
//}
.ant-table-row-cell-ellipsis{
padding: 0!important;
}
.second{
padding: 0!important;
}
//.tableList .ant-table-tbody > tr > td{
// color: #040B29 ;
//}