修改sf表格样式
This commit is contained in:
@@ -11,15 +11,16 @@ function setTableWidth() {
|
||||
const tbody_tr = dom.find('tbody').children('tr')
|
||||
dom.find('thead').children('tr').children().each(function () {
|
||||
$('#widthTest').text($(this).text())
|
||||
const width = $('#widthTest').width()
|
||||
const width = $('#widthTest').width() + 10
|
||||
const i = $(this).index()
|
||||
console.log(111)
|
||||
tbody_tr.each(function () {
|
||||
if($(this).children().length > 2) {
|
||||
$(this).children().eq(i).css('min-width', width + 'px')
|
||||
}
|
||||
})
|
||||
})
|
||||
const resizeEvent = new Event('resize');
|
||||
window.dispatchEvent(resizeEvent);
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
||||
Reference in New Issue
Block a user