zollero / el-search-table-pagination

🐶 Combine Form, Table and Pagination components of Element UI together.
MIT License
305 stars 79 forks source link

render函数return的内容怎么让换行显示 #49

Closed srecna closed 5 years ago

srecna commented 5 years ago

render: row => { const { startTime } = row const { endTime } = row return startTime +'~'+ endTime }}, 想要在~后换行怎么写?

zollero commented 5 years ago

使用 slotName 来定义一个slot代码片段吧。用render函数只能返回一个字符串,且会被当做文本处理。