<p>&quot;<template>\n  <div>\n    &lt;el-table\n      :data=&quot;tableData&quot;\n      border\n      style=&quot;width: 100%&quot;&gt;\n      &lt;el-table-column\n        prop=&quot;name&quot;\n        label=&quot;姓名&quot;\n        width=&quot;180&quot;&gt;\n      </el-table-column>\n      &lt;el-table-column\n        prop=&quot;age&quot;\n        label=&quot;年龄&quot;\n        width=&quot;180&quot;&gt;\n      </el-table-column>\n      &lt;el-table-column\n        prop=&quot;address&quot;\n        label=&quot;地址&quot;\n        :span-method=&quot;spanMethod&quot;&gt;\n      </el-table-column>\n    </el-table>\n    &lt;el-pagination\n      @size-change=&quot;handleSizeChange&quot;\n      @current-change=&quot;handleCurrentChange&quot;\n      :current-page=&quot;currentPage&quot;\n      :page-sizes=&quot;[10, 20, 30, 40]&quot;\n      :page-size=&quot;pageSize&quot;\n      layout=&quot;total, sizes, prev, pager, next, jumper&quot;\n      :total=&quot;total&quot;&gt;\n    </el-pagination>\n  </div>\n</template>\n\n<script>\nexport default {\n  data() {\n    return {\n      tableData: [\n        { name: &quot;张三&quot;, age: 18, address: &quot;北京市&quot; },\n        { name: &quot;李四&quot;, age: 22, address: &quot;上海市&quot; },\n        { name: &quot;王五&quot;, age: 20, address: &quot;广州市&quot; },\n        { name: &quot;赵六&quot;, age: 25, address: &quot;深圳市&quot; },\n        { name: &quot;钱七&quot;, age: 28, address: &quot;重庆市&quot; }\n      ],\n      currentPage: 1,\n      pageSize: 10,\n      total: 5\n    };\n  },\n  methods: {\n    spanMethod({ row, column, rowIndex, columnIndex }) {\n      if (columnIndex === 2) {\n        if (rowIndex === 0) {\n          return {\n            rowspan: 2,\n            colspan: 1\n          };\n        } else {\n          return {\n            rowspan: 0,\n            colspan: 0\n          };\n        }  \n      }\n    },\n    handleSizeChange(val) {\n      this.pageSize = val;\n    },\n    handleCurrentChange(val) {\n      this.currentPage = val;\n    }\n  }\n};\n</script>\n\n这个示例中包含一个<code>el-table</code>组件用于展示数据,其中的<code>el-table-column</code>组件中的<code>:span-method</code>属性用于合并列。同时还有一个<code>el-pagination</code>组件用于分页,通过监听<code>size-change</code>和<code>current-change</code>事件来更新当前页和每页显示数量。\n\n注意:在使用该代码之前,需要先确保已经安装了Vue.js和Element UI,并正确引入了相关的文件。</p>