1 Star 0 Fork 864

darklysea / vxe-table

forked from xuliangzhan / vxe-table 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

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, flexible configuration items, etc...

  • 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 Support modern browser and keep IE11 compatible to improve rendering performance.
    • v4.0 Based on vue3.2+, Only support modern browser, not IE.

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
  • 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
  • Form
  • Toolbar
  • Pulldown
  • Virtual list
  • Virtual tree
  • Editable CRUD
  • Validate
  • Data Proxy
  • Keyboard navigation
  • Modal
  • VxeGlobalRenderer
  • Virtual scroller
  • Virtual merger
  • (pro) Cell area selection
  • (pro) Cell copy & paste
  • (pro) Cell find and replace

Installing

Version: vue 3.x, Dependent: xe-utils

npm install xe-utils vxe-table@next

Get on unpkg and cdnjs

npm

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

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

CDN

It is not recommended to use the public CDN address for production, because the connection may fail at any time, causing the project to hang up;
Remember to lock the version number by using CDN to avoid being affected by incompatible updates.

<!-- 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">
import { defineComponent, ref } from 'vue'

export default defineComponent({
  setup () {
    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' }
    ])
    return {
      tableData
    }
  }
})
</script>

Docs

👉 Document

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

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.

About

vxe-table vue 表格解决方案 expand collapse
JavaScript
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/darklysea/vxe-table.git
git@gitee.com:darklysea/vxe-table.git
darklysea
vxe-table
vxe-table
master

Search