dion-vue-table
v1.0.19
Published
Vue table component
Downloads
8
Maintainers
Readme
dion-vue-table
English | 中文
Sponsors
Support this project by becoming a sponsor. Your logo or name will show up here with a link you provided. Become a sponsor
Introduction
Based on vue2.x flexible table components.
API & Examples
Features
Base components
- [x] Loading component
- [x] Pagination component
- [x] Contextmenu component
- [x] Icon component
- [x] Locale component
Table component
- [x] Internationalization
- [x] Theme Custom & Built in theme
- [x] Virtual Scroll
- [x] Column Fixed
- [x] Column Hidden
- [x] Header Fixed
- [x] Header Grouping
- [x] Filter
- [x] Sort
- [x] Cell Style
- [x] Cell Custom
- [x] Cell Span
- [x] Cell Selection(keyboard operation)
- [x] Cell Edit
- [x] Contextmenu
- [x] Cell Ellipsis
- [x] Row Radio
- [x] Row Checkbox
- [x] Row Expand
- [x] Row Style
- [x] Footer Summary
- [x] Event Custom
- More
If there is no feature you want, Please Tell Us
Install
npm install dion-vue-table
or
yarn add dion-vue-table
Usage
Write the following in mian.js:
import Vue from "vue";
import "dion-vue-table/libs/theme-default/index.css";
import VueEasytable from "dion-vue-table";
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
Contributors
Thanks to the following friends for their contributions 🙏
Discussion group
License
http://www.opensource.org/licenses/mit-license.php