n20-common-lib 2.18.2 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -364,7 +364,7 @@ export default {
|
|
|
364
364
|
|
|
365
365
|
// 如果没有设置宽度,根据字符数计算最小宽度
|
|
366
366
|
if (!column.width && !column.minWidth) {
|
|
367
|
-
const textLength = column.label.length
|
|
367
|
+
const textLength = (column.label && column.label.length) || 10
|
|
368
368
|
column.minWidth = Math.ceil(textLength * CHAR_WIDTH + PADDING)
|
|
369
369
|
}
|
|
370
370
|
|