vue table 一列如何显示多个字段 并且换行显示

320 阅读1分钟
//table组件内:
<template v-slot:pagenameTitle="text, record">
        <span>
             <p>{{record.sysParamManager.pageName}}</p>
             <p >{{record.sysParamManager.title}}</p>
        </span>
</template>


//columns
const columns = [
    {
      title: '页面名称',
      dataIndex: 'sysParamManager.pageName',
      scopedSlots: {customRender: 'pagenameTitle'}
    }}