当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 864

smallcode-fork / vxe-table
暂停

forked from xuliangzhan / vxe-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

vxe-table

gitee star npm version npm build npm downloads gzip size: JS gzip size: CSS
issues issues closed pull requests pull requests closed npm license

一个基于 vue 的表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、模态窗口、自定义模板、贼灵活的配置项、强大的扩展接口等...

  • 设计理念

    • 面向现代浏览器,高效的简洁 API 设计
    • 模块化表格、按需加载、插件化扩展
    • 为单行编辑表格而设计,支持增删改查及更多扩展,强大的功能的同时兼具性能
  • 计划

    • v1.0 100% 实现表格的一切实用的功能
    • v2.0  100% 性能优化,同时兼具功能与性能
    • v3.0   50% 内部重构,不再支持 IE,渲染性能提升
    • v4.0   0% 基于 Vue3 重构,渲染性能提升

🐬 如果有更好的建议、优化点或 Bug 都欢迎提 Issues

Browser Support

Edge Chrome Firefox Opera Safari
Latest ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Features

  • Basic table (基础表格)
  • Grid (高级表格)
  • Size (尺寸)
  • Striped (斑马线条纹)
  • Table with border (带边框)
  • Cell style (单元格样式)
  • Column resizable (列宽拖动)
  • Maximum table height (最大高度)
  • Resize height and width (响应式宽高)
  • Fixed column (固定列)
  • Grouping table head (表头分组)
  • Highlight row and column (高亮行、列)
  • Table sequence (序号)
  • Radio (单选)
  • Checkbox (多选)
  • Select (下拉选项)
  • Sorting (排序)
  • Filter (筛选)
  • Rowspan and colspan (合并行或列)
  • Footer summary (表尾合计)
  • Import (导入)
  • Export (导出)
  • Print (打印)
  • Show/Hide column (显示/隐藏列)
  • Loading (加载中)
  • Formatted content (格式化内容)
  • Custom template (自定义模板)
  • Context menu(快捷菜单)
  • Virtual Scroller(虚拟滚动)
  • Expandable row (展开行)
  • Pager(分页)
  • Form(表单)
  • Toolbar(工具栏)
  • Tree table (树形表格)
  • Editable CRUD(增删改查)
  • Validate(数据校验)
  • Data Proxy(数据代理)
  • Keyboard navigation(键盘导航)
  • Modal window(模态窗口)

Modules

  • Core (核心)
    • TableMethodsBodyCellstyle (表格)
  • Modules (可选模块)
    • Icon (图标)
    • Headerstyle (表头)
    • Footerstyle (表尾)
    • FilterPanelstyle (筛选)
    • Loadingstyle (加载中)
    • Tooltipstyle (提示信息)
    • MenuPanelstyle (快捷菜单)
    • Exportstyle (导出)
    • Keyboard (按键导航)
    • ResizeMethods (响应式)
  • Component (可选组件)
    • Gridstyle (高级表格)
    • Column (静态列)
    • FormFormItemstyle (表单)
    • Pagerstyle (分页)
    • Toolbarstyle (工具栏)
    • Checkboxstyle (复选框)
    • Radio style(单选框)
    • Inputstyle (输入框)
    • SelectOptgroupOptionstyle (下拉框)
    • Modalstyle (模态窗口)
    • Buttonstyle (按钮)
  • Plugins(插件)

Docs

To view the user guide 使用指南

To view the example 查看演示
To view the document 查看文档

Installing

依赖库:vue 2.6+, xe-utils 2.4+

npm install xe-utils vxe-table

Get on unpkg and cdnjs

<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/vxe-table/lib/index.css">
<!-- 引入脚本 -->
<script src="https://unpkg.com/xe-utils"></script>
<script src="https://unpkg.com/vxe-table"></script>
import Vue from 'vue'
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/index.css'

Vue.use(VXETable)

Example

<template>
  <div>
    <vxe-table :data="tableData">
      <vxe-table-column type="seq" title="Sequence number" width="80"></vxe-table-column>
      <vxe-table-column field="name" title="Name"></vxe-table-column>
      <vxe-table-column field="sex" title="Sex"></vxe-table-column>
      <vxe-table-column field="address" title="Address"></vxe-table-column>
    </vxe-table>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tableData: [
        { id: 10001,  name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
        { id: 10002,  name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
        { id: 10003,  name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
      ]
    }
  }
}
</script>

Donation

If the open source project is very helpful to you, you can buy the author a cup of coffee.
如果这个开源项目对您有帮助,请作者喝杯咖啡吧。☕

pay

License

MIT License, 2019-present, Xu Liangzhan

MIT License Copyright (c) 2019 Xu Liangzhan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

vxe-table vue 表格解决方案 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/smallcodefork/vxe-table.git
git@gitee.com:smallcodefork/vxe-table.git
smallcodefork
vxe-table
vxe-table
master

搜索帮助