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

Wei / vxe-table
暂停

forked from xuliangzhan / vxe-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 6.55 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2020-09-14 19:01 . 优化下拉容器定位逻辑

vxe-table

简体中文 | 繁體中文 | English

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

A vue based PC form component, support add, delete, change, virtual scroll, lazy load, shortcut menu, data validation, tree structure, print export, form rendering, data paging, virtual list, modal window, custom template, renderer, flexible configuration items, extension interface, etc...

  • Design concept

    • Efficient and concise API design for modern browsers
    • Modular tables, on-demand loading, extended interfaces
    • Designed for single row table editing, supports addition, deletion, modification and query as well as more expansion, with powerful functions and performance at the same time
  • Donation

    • v1.0 100% Based on vue2.6+, it supports all mainstream browsers and realizes all practical functions of tables
    • v2.0  100% Based on vue2.6+, it supports all mainstream browsers with both functions and performance
    • v3.0   80% Based on vue2.6+, only modern browser is supported, ie is not supported, rendering performance is greatly improved
    • v4.0   0% Based on vue3+, only modern browser is supported, ie is not supported, rendering performance is greatly improved

👉 If you have a better suggestion, optimization point or Bug, please feel free to ask Issues

Browser Support

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

Features

  • Basic table
  • Grid
  • Striped
  • Table with border
  • Cell style
  • Column resizing
  • Maximum table height
  • Resize height & width
  • Fixed column
  • Grouping table header
  • Table footer
  • Highlight row & column
  • Table sequence
  • Radio
  • Checkbox
  • Select
  • Switch
  • Sorting
  • Filter
  • Merged cells
  • Merged footer items
  • Import/Export/Print
  • Show/Hide column
  • Loading
  • Formatted cell
  • Slot - template
  • Context menu
  • Detail - Expandable row
  • Pager
  • Form
  • Toolbar
  • Pulldown
  • List
  • Editable CRUD
  • Tree table
  • Validate
  • Data Proxy
  • Keyboard navigation
  • Modal
  • Renderer
  • Virtual scroller
  • Virtual merger
  • (pro) Cell area selection
  • (pro) Cell copy & paste
  • (pro) Cell find and replace

Installing

Dependent: vue 2.6+, xe-utils 2.7+

npm install xe-utils vxe-table

Get on unpkg and cdnjs

npm

import Vue from 'vue'
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/index.css'

Vue.use(VXETable)

CDN

<!-- Style -->
<link rel="stylesheet" href="https://unpkg.com/vxe-table/lib/index.css">
<!-- Script -->
<script src="https://unpkg.com/xe-utils"></script>
<script src="https://unpkg.com/vxe-table"></script>
<!-- It is recommended that users introduced by CDN lock the version on the link address to avoid the impact of incompatible updates -->

Example

<template>
  <div>
    <vxe-table :data="tableData">
      <vxe-table-column type="seq" title="Seq" width="60"></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>

Docs

💡 User guide
👉 View example
👉 View API

Donation

If you feel that our open source software is helpful to you, please scan the QR code below to enjoy a cup of coffee.☕

Because maintaining an open source project takes a lot of effort and time, if you are using the project, your donation will help keep the project going.
👉 This component is helpful to me and I would like to donate it💰

License

MIT © 2019-present, Xu Liangzhan

JavaScript
1
https://gitee.com/memory1369/vxe-table.git
git@gitee.com:memory1369/vxe-table.git
memory1369
vxe-table
vxe-table
master

搜索帮助