2.6.99 • Published 5 months ago

vuc-vxe-table v2.6.99

Weekly downloads
148
License
MIT
Repository
github
Last release
5 months ago

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(简洁、高效的 API 设计)
    • 模块化表格、插件化扩展(功能模块解耦,支持按需加载)
    • 强大的功能的同时兼具性能(支持横向、纵向虚拟滚动、灵活的配置项、不污染全局样式及变量)
  • 计划

    • v1 100% 实现表格的一切实用的功能
    • v2  95% 性能优化,同时兼具功能与性能
    • v3   0% 实现重构,渲染性能大幅提升,基于 Vue3 并使用 typescript 开发

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

Browser Support

IEEdgeChromeFirefoxOperaSafari
11+ ✔Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔

Features

  • Basic table (基础功能)
  • Dynamic Grid (配置式表格)
  • Size (尺寸)
  • Striped (斑马线条纹)
  • Table with border (带边框)
  • Cell style (单元格样式)
  • Column resizable (列宽拖动)
  • Fluid-height table with fixed header (流体高度)
  • Resize height and width (响应式宽高)
  • Table with fixed header (固定表头)
  • Table with fixed column (固定列)
  • Table with fixed columns and header (固定表头和列)
  • Grouping table head (表头分组)
  • Table sequence (序号)
  • Highlight row and column (高亮行、列)
  • Radio (单选)
  • Checkbox (多选)
  • Sorting (排序)
  • Filter (筛选)
  • Rowspan and colspan (合并行或列)
  • Footer summary (表尾合计)
  • Export CSV (导出 CSV)
  • Show/hide columns (显示/隐藏列)
  • Loading (加载中)
  • Format content (格式化内容)
  • Custom column template (自定义模板)
  • Context menu(快捷菜单)
  • Virtual Scroller(虚拟滚动)
  • Expandable row (展开行)
  • Pager(分页)
  • Toolbar(工具栏)
  • Tree table (树形表格)
  • Editable CRUD(增删改查)
  • Editable validate(数据校验)
  • DataProxy(数据代理)
  • Keyboard navigation(键盘导航)

Modules

  • TableCellstyle (核心)
    • Modules (内置模块)
      • Headerstyle (表头)
      • Bodystyle (表主体)
      • Footerstyle (表尾)
      • Iconstyle (图标)
      • FilterPanelstyle (筛选)
      • Loadingstyle (加载中)
      • Tooltipstyle (提示信息)
      • MenuPanelstyle (快捷菜单)
      • Exportstyle (导出)
      • Keyboardstyle (按键导航)
      • ResizeMethodsstyle (响应式)
    • Component (增强组件)
      • Gridstyle (动态表格)
      • Columnstyle (静态列)
      • Pagerstyle (分页 )
      • Toolbarstyle (工具栏)
      • Checkboxstyle (复选框)
      • Radio style(单选框)
      • Inputstyle (输入框)
      • Modalstyle (模态窗口)
      • Buttonstyle (按钮)
    • Plugins(插件)

Docs

To view the user guide 使用指南

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

Installing

require: Vue 2.6+
require: xe-utils 2.2+

npm install vuc-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 'vuc-vxe-table'
import 'vuc-vxe-table/lib/index.css'

Vue.use(VXETable)

Internationalization

npm install vxe-i18n
import Vue from 'vue'
import VueI18n from 'vxe-i18n'
import VXETable from 'vuc-vxe-table'
import zhCNLocat from 'vxe-table/lib/locale/lang/zh_CN'
import enLocat from 'vxe-table/lib/locale/lang/en'

const messages = {
  zh_CN: {
    ...zhCNLocat
  },
  en: {
    ...enLocat
  }
}

const i18n = new VueI18n({
  locale: 'zh_CN',
  messages,
})

Vue.use(VXETable, {
  i18n: (key, value) => i18n.t(key, value)
})

new Vue({ i18n }).$mount('#app')

Example

<template>
  <div>
    <vxe-table :data="tableData">
      <vxe-table-column type="index" title="序号" width="80"></vxe-table-column>
      <vxe-table-column field="name" title="名字"></vxe-table-column>
      <vxe-table-column field="sex" title="性别"></vxe-table-column>
      <vxe-table-column field="address" title="地址"></vxe-table-column>
    </vxe-table>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tableData: [
        {
          id: 10001,
          name: '名字1',
          role: '角色',
          sex: '男',
          address: '深圳市 圳市 市 xxx'
        }
      ]
    }
  }
}
</script>

Donation

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

pay

License

MIT License, 2019-present, Xu Liangzhan

2.6.99

5 months ago

2.6.98

6 months ago

2.6.97

2 years ago

2.6.94

2 years ago

2.6.95

2 years ago

2.6.96

2 years ago

2.6.93

2 years ago

2.6.91

3 years ago

2.6.92

3 years ago

2.6.90

3 years ago

2.6.89

3 years ago

2.6.88

3 years ago

2.6.87

3 years ago

2.6.85

3 years ago

2.6.86

3 years ago

2.6.84

3 years ago

2.6.83

3 years ago

2.6.82

3 years ago

2.6.81

3 years ago

2.6.80

3 years ago

2.6.79

3 years ago

2.6.78

3 years ago

2.6.77

3 years ago

2.6.75

4 years ago

2.6.76

4 years ago

2.6.74

4 years ago

2.6.73

4 years ago

2.6.72

4 years ago

2.6.71

4 years ago

2.6.70

4 years ago

2.6.68

4 years ago

2.6.69

4 years ago

2.6.67

4 years ago

2.6.66

4 years ago

2.6.65

4 years ago

2.6.63

4 years ago

2.6.62

4 years ago

2.6.60

5 years ago

2.6.59

5 years ago

2.6.58

5 years ago

2.6.57

5 years ago

2.6.56

5 years ago

2.6.55

5 years ago

2.6.53

5 years ago

2.6.52

5 years ago

2.6.51

5 years ago

2.6.50

5 years ago

2.6.49

5 years ago

2.6.48

5 years ago

2.6.47

5 years ago

2.6.46

5 years ago

2.6.45

5 years ago

2.6.44

5 years ago

2.6.43

5 years ago

2.6.42

5 years ago

2.6.41

5 years ago

2.6.40

5 years ago

2.6.39

5 years ago

2.6.38

5 years ago

2.6.37

5 years ago

2.6.36

5 years ago

2.6.35

5 years ago

2.6.34

5 years ago

2.6.33

5 years ago

2.6.32

5 years ago

2.6.31

5 years ago

2.6.30

5 years ago

2.6.29

5 years ago

2.6.28

5 years ago

2.6.27

5 years ago

2.6.26

5 years ago

2.6.25

5 years ago

2.6.24

5 years ago

2.6.23

5 years ago

2.6.22

5 years ago

2.6.21

5 years ago

2.6.20

5 years ago

2.6.19

5 years ago

2.6.18

5 years ago

2.6.17

5 years ago

2.6.16

5 years ago

2.6.15

5 years ago

2.6.14

5 years ago

2.6.13

5 years ago

2.6.12

5 years ago

2.6.11

5 years ago

2.6.10

5 years ago

2.6.9

5 years ago

2.6.8

5 years ago

2.6.7

5 years ago

2.6.5

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.22

5 years ago

2.5.21

5 years ago

2.5.19

5 years ago

2.5.17

5 years ago

2.5.16

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago