找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3550|回复: 0

vxe table基本设置更改

[复制链接]
发表于 2022-10-19 15:31:01 | 显示全部楼层 |阅读模式


  1. <vxe-toolbar :refresh="{query: refreshList}" :import="hasPermission('cs:csaaa:csaaaa:import')" :export="hasPermission('cs:csaaa:csaaaa:export')" print custom>
复制代码
表格右上角按钮显示:refresh 刷新按钮配置 import 导入按钮配置(需要设置 "import-config")export 导出按钮配置(需要设置 "export-config")print 打印按钮配置 custom 自定义列配置

<vxe-table
            border="full"  是否带有边框(full 完整 outer 外边框 inner 内边框 none 无边框
            auto-resize 自动监听父元素的变化去重新计算表格
            resizable (已废)可以在每列中设置,是否能拖动宽度

            :column-config="{ 列配置信息
              isHover: true 鼠标移动行时,高亮当前列标题
            }"


            height="auto" 高度自动铺满
            :loading="loading" 数据显示加载中
            size="small" 表格尺寸
            ref="csaaaaTable"
            show-header-overflow 表头内容过用省略号
            show-overflow 内容过长用省略号
            highlight-hover-row (已废)改如下:

            :row-config="{ 行配置信息
              isHover: true 鼠标移动行时,高亮当前行
            }"
            id="csaaaaTable"
            :custom-config="{storage: true}" 列宽状态保存本地,需要有id


            :print-config="{}" 打印配置项
            :import-config="{ 导入配置项
              importMethod: importMethod,
              types: ['csv', 'xls', 'xlsx'],
              remote: true}"
            :export-config="{}" 导出配置项
            @sort-change="sortChangeHandle" 排序触发动作
            :sort-config="{remote:true}" 排序配置项,是否使用服务端排序
            :data="dataList" 数据
            :checkbox-config="{}"> 复选框配置
            <vxe-column type="seq" width="40"></vxe-column> 序号
            <vxe-column type="checkbox"  width="40px"></vxe-column> 选项框

<vxe-column
        field="myid"  字段id
        sortable      排序
        width="100px" 列宽
        resizable     是否可用鼠标拖动
        title="编号"> 名称
      </vxe-column>
更多指令请访问:https://vxetable.cn/v3/#/table/api




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|企业数字化人才转型教练中心 ( 湘ICP备15006648号-1 )

GMT+8, 2024-10-23 07:38 , Processed in 0.060456 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表