法规清单表头高度修改

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
@@ -137,6 +137,3 @@
.ant-tooltip-arrow::before { .ant-tooltip-arrow::before {
background-color: #fff; background-color: #fff;
} }
.customizetable .ant-table-thead > tr > th {
padding: 12px 8px;
}
+6 -1
View File
@@ -106,10 +106,15 @@ const ResizeHeaderOne = function(val, name) {
handlerVNode 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', { return h('th', {
key, key,
props: { col }, props: { col },
...Object.assign({}, restProps, { class: (restProps.class || '') + ' nio-header-th' }) ...Object.assign({}, restProps, { class: (restProps.class || '') + ' nio-header-th' + className})
}, content) }, content)
} }
} }
@@ -2672,12 +2672,18 @@
width: 100% !important; width: 100% !important;
} }
.tableList .ant-table-thead > tr > th { //.customizetable .ant-table-thead > tr > th {
padding: 0px 16px !important; // height: 46px !important;
//padding: 8px 8px !important;
//font-weight: bold; //font-weight: bold;
//background: #f3f6f6; //background: #f3f6f6;
//}
.ant-table-row-cell-ellipsis{
padding: 0!important;
}
.second{
padding: 0!important;
} }
//.tableList .ant-table-tbody > tr > td{ //.tableList .ant-table-tbody > tr > td{
// color: #040B29 ; // color: #040B29 ;
//} //}