diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss index 3a0a34b8..63f52f1b 100644 --- a/src/assets/css/common.scss +++ b/src/assets/css/common.scss @@ -60,3 +60,8 @@ body { display: none !important; } } + +// 单词换行不被拆开 +.el-table .cell { + word-break: keep-all !important; +} diff --git a/src/mixins/table.js b/src/mixins/table.js index fc9d6887..65c13894 100644 --- a/src/mixins/table.js +++ b/src/mixins/table.js @@ -22,6 +22,7 @@ export default { computed: { customTableTitles () { if (this.customTableTitle) { + // 设置列宽,避免分辨率过小时,文本显示省略号 this.getTableWidth(this.customTableTitle) }