vxe-table修改单元格高度的几种方式
vxe-table修改单元格高度的几种方式,在开发项目时,有时默认的表格高度不能满足需求,这时候就可以调整默认的单元格高度。查看官网:https://vxetable.cn
gitbub:https://github.com/x-extends/vxe-table
gitee:https://gitee.com/x-extends/vxe-table
npm install vxe-table@4.13.0// ...
import VxeUITable from 'vxe-table'
import 'vxe-table/lib/style.css'
// ...
createApp(App).use(VxeUITable).mount('#app')
// ...内置的 size 修改
可以设置大小尺寸:medium / small / mini
<template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template>css 变量修改
支持全局或者局部修改
<template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template><template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template><template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template><template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template><template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template>通过 cell-config 配置项修改
配置 cell-config.height
<template>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</template>https://gitee.com/x-extends/vxe-table
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页:
[1]