diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue
index 2c17edb8..cbe79592 100644
--- a/src/components/table/cell.vue
+++ b/src/components/table/cell.vue
@@ -36,7 +36,8 @@
return [
`${this.prefixCls}-cell`,
{
- [`${this.prefixCls}-hidden`]: !this.fixed && this.column.fixed && (this.column.fixed === 'left' || this.column.fixed === 'right')
+ [`${this.prefixCls}-hidden`]: !this.fixed && this.column.fixed && (this.column.fixed === 'left' || this.column.fixed === 'right'),
+ [`${this.prefixCls}-cell-ellipsis`]: this.column.ellipsis || false
}
];
}
diff --git a/src/styles/components/table.less b/src/styles/components/table.less
index b6030e23..f6a47e41 100644
--- a/src/styles/components/table.less
+++ b/src/styles/components/table.less
@@ -138,6 +138,13 @@
white-space: normal;
word-break: break-all;
box-sizing: border-box;
+
+ &-ellipsis {
+ word-break: keep-all;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
&-hidden{
visibility: hidden;
@@ -298,4 +305,4 @@
padding: 0;
}
}
-}
\ No newline at end of file
+}
diff --git a/test/routers/table.vue b/test/routers/table.vue
index 844a9d02..ed161851 100644
--- a/test/routers/table.vue
+++ b/test/routers/table.vue
@@ -1,5 +1,6 @@
改变filter
+ Ellipsis