Package Exports
- vue-easytable
- vue-easytable/libs/locale/lang/en-US
- vue-easytable/libs/main.js
- vue-easytable/libs/ve-checkbox
- vue-easytable/libs/ve-dropdown
- vue-easytable/libs/ve-icon
- vue-easytable/libs/ve-locale
- vue-easytable/libs/ve-radio
- vue-easytable/libs/ve-select
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-easytable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-easytable
English | 中文
Sponsors
Gold Sponsor
Silver Sponsor
Generous Sponsor
Introduction
Based on vue2.x flexible table components.
Features
- Easy to use
- Powerful
- Unit test coverage greater than 85%
API & Examples
Supports
- Internationalization
- Theme Custom & Built in theme
- Virtual Scroll
- Column Fixed
- Header Fixed
- Header Grouping
- Filter
- Sort
- Cell Style
- Cell Custom
- Cell Span
- Cell Selection(keyboard operation)
- Cell Edit
- Cell Ellipsis
- Row Radio
- Row Checkbox
- Row Expand
- Row Style
- Footer Summary
- Event Custom
- Loading component
- Pagination component
- More
If there is no feature you want, Please Tell Us
Install
npm install vue-easytableor
yarn add vue-easytableUsage
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
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




