459 Star 4.4K Fork 867

GVPxuliangzhan / vxe-table

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 5.73 KB
一键复制 编辑 原始数据 按行查看 历史
xuliangzhan 提交于 2024-04-21 13:22 . 重构自定义列,渲染器

vxe-table

简体中文 | 繁體中文 | English

star npm version npm build npm downloads issues issues closed pull requests pull requests closed npm license

A vue based PC form component, support add, delete, change, virtual list, virtual tree, lazy load, shortcut menu, data validation, print export, form rendering, data paging, modal window, custom template, renderer, JSON configuration...

  • Design concept

    • Efficient and concise API design for modern browsers.
    • Modular tables, on-demand loading.
    • 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.
  • Plan

    • v1.0 Based on vue2.6, Support for all major browsers.
    • v2.0 Based on vue2.6, Support for all major browsers.
    • v3.0 Based on vue2.6, supports modern browsers and retains compatibility with IE11.
    • v4.0 Based on vue3.x, Only support modern browser, not IE.

Browser Support

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

Features

  • Basic table
  • Configuration grid
  • Base form
  • Configuration form
  • Striped
  • Table with border
  • Cell style
  • Column resizing
  • Minimum/maximum height
  • Resize height & width
  • Fixed column
  • Grouping table header
  • Table footer
  • Highlight row & column
  • Table sequence
  • Radio
  • Checkbox
  • Select
  • Switch
  • Sorting
  • Multi field sorting
  • Filter
  • Merged cells
  • Merged footer items
  • Import/Export/Print
  • Show/Hide column
  • Loading
  • Formatted cell
  • Slot - template
  • Context menu
  • Detail - Expandable row
  • Pager
  • Toolbar
  • Pulldown
  • Virtual list
  • Virtual tree
  • Editable CRUD
  • Validate
  • Data Proxy
  • Keyboard navigation
  • Modal
  • VxeGlobalRenderer
  • Virtual scroller
  • Virtual merger
  • CSS Variable Theme
  • (插件) Cell area selection
  • (插件) Cell copy & paste
  • (插件) Cell find and replace

Installing

Version: vue 3.x

npm install vxe-table@next

Get on unpkg and cdnjs

npm

import { createApp } from 'vue'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

createApp(App).use(VXETable).mount('#app')

CDN

Use a third-party CDN to remember to lock the version number to avoid being affected by incompatible updates.
It is not recommended to use the CDN address of a third party in a formal environment because the connection can fail at any time

<!-- Style -->
<link rel="stylesheet" href="https://unpkg.com/vxe-table@next/lib/style.css">
<!-- Script -->
<script src="https://unpkg.com/xe-utils"></script>
<script src="https://unpkg.com/vxe-table@next"></script>

Example

<template>
  <div>
    <vxe-table :data="tableData">
      <vxe-column type="seq" title="Seq" width="60"></vxe-column>
      <vxe-column field="name" title="Name"></vxe-column>
      <vxe-column field="role" title="Role"></vxe-column>
      <vxe-colgroup title="Group1">
        <vxe-column field="sex" title="Sex"></vxe-column>
        <vxe-column field="address" title="Address"></vxe-column>
      </vxe-colgroup>
    </vxe-table>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const tableData = ref([
  { 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>

Online Documents

👉 Document

Participate in document improvement and supplement detailed documents.

💡 Document source code

Run the project

Install dependencies

npm install

Start local debugging

npm run serve

Compile packaging, generated compiled directory: es,lib

npm run lib

License

MIT © 2019-present, Xu Liangzhan

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

搜索帮助