Closed zhouhm closed 2 years ago
这样写好用
<ve-table
style="margin-right: 50px;margin-left: 50px;"
:columns="tableConfig.columns"
:table-data="tableConfig.tableData"
:paging-index="(pageIndex-1)*pageSize"
:cell-style-option="cellStyleOption"
:border-x="true"
:border-y="true">
</ve-table>
但这样写右边就是不起作用
<template>
<div class="tablePage">
<h1>表格+分页</h1>
<!-- 表格-->
<ve-table
:columns="tableConfig.columns"
:table-data="tableConfig.tableData"
:paging-index="(pageIndex-1)*pageSize"
:cell-style-option="cellStyleOption"
:border-x="true"
:border-y="true">
</ve-table>
</div>
</template>
<style>
.tablePage {
margin-right: 50px;
margin-left: 50px;
padding: 0;
height: 600px;
width: 100%;
}
</style>
每一列设置width也不行