vue-easytable

表组件/数据网格/数据表。支持虚拟滚动,列固定,标题固定,标题分组,过滤,排序,单元格椭圆,行展开,行复选框...「🍉 Table Component/ Data Grid / Data Table.Support Virtual Scroll,Column Fixed,Header Fixed,Header Grouping,Filter,Sort,Cell Ellipsis,Row Expand,Row Checkbox ...」

Github星跟踪图

npm
vue2
NPM downloads
codecov
license
Discord
Gitter

vue-easytable

English | 中文

Sponsors

Introduction

Based on vue2.x flexible table components.

API & Examples

Features

Base components

Table component

If there is no feature you want,
Please Tell Us

Install

npm install vue-easytable

or

yarn add vue-easytable

Usage

Write the following in mian.js:

import Vue from "vue";
import "vue-easytable/libs/theme-default/index.css";
import VueEasytable from "vue-easytable";

Vue.use(VueEasytable);

new Vue({
  el: "#app",
  render: (h) => h(App),
});

Example:

<template>
  <ve-table :columns="columns" :table-data="tableData" />
</template>

<script>
  export default {
    data() {
      return {
        columns: [
          { field: "name", key: "a", title: "Name", align: "center" },
          { field: "date", key: "b", title: "Date", align: "left" },
          { field: "hobby", key: "c", title: "Hobby", align: "right" },
          { field: "address", key: "d", title: "Address" },
        ],
        tableData: [
          {
            name: "John",
            date: "1900-05-20",
            hobby: "coding and coding repeat",
            address: "No.1 Century Avenue, Shanghai",
          },
          {
            name: "Dickerson",
            date: "1910-06-20",
            hobby: "coding and coding repeat",
            address: "No.1 Century Avenue, Beijing",
          },
          {
            name: "Larsen",
            date: "2000-07-20",
            hobby: "coding and coding repeat",
            address: "No.1 Century Avenue, Chongqing",
          },
          {
            name: "Geneva",
            date: "2010-08-20",
            hobby: "coding and coding repeat",
            address: "No.1 Century Avenue, Xiamen",
          },
          {
            name: "Jami",
            date: "2020-09-20",
            hobby: "coding and coding repeat",
            address: "No.1 Century Avenue, Shenzhen",
          },
        ],
      };
    },
  };
</script>

Todo List

What are we doing

Environment Support

  • Modern browser and ie11 and above
IE / Edge Firefox Chrome Safari Opera
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

How to contribute

If you want to contribute,just create a
Pull Request

Contributors

Thanks to the following friends for their contributions 🙏

Discussion group

License

http://www.opensource.org/licenses/mit-license.php

主要指标

概览
名称与所有者Happy-Coding-Clans/vue-easytable
主编程语言JavaScript
编程语言CSS (语言数: 4)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-12-02 03:21:11
推送于2024-06-26 06:39:36
最后一次提交2024-06-21 10:41:09
发布数120
最新版本名称v2.27.1 (发布于 )
第一版名称1.0.1 (发布于 )
用户参与
星数3.8k
关注者数86
派生数760
提交数2.1k
已启用问题?
问题数568
打开的问题数96
拉请求数27
打开的拉请求数1
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?