This commit is contained in:
2022-12-17 11:54:47 +08:00
parent 01419ecf8d
commit 59dc7f04f2
14 changed files with 133 additions and 23 deletions

View File

@@ -234,7 +234,7 @@ export async function blobValidate(data) {
* 注prop,title有一个必传
*/
export function flexWidth(prop, tableData, title, num = 0) {
if (tableData.length === 0) { // 表格没数据不做处理
if (!tableData || tableData.length === 0) { // 表格没数据不做处理
return
}
let flexWidth = 0// 初始化表格列宽