< el - table - the column label = "input and output field" width = "200" > < template slot - scope = "scope" > < span > {{scope. Row. ColumnDatas | ellipsis}}</span> </template> </el-table-column>Copy the code

Add filters

export default { filters: { ellipsis(value) { if (! value) return ""; if (value.length > 22) { return value.slice(0, 22) + "..." ; } return value; }}},Copy the code