vue-table-easy
v0.0.2
Published
[](https://www.npmjs.com/package/@vue-table-easy/vue) [](https://vuejs.org/) [
- [x] 单元格自动填充
- [x] 单元格编辑
- [x] 剪贴板
- [x] 右键菜单
- [x] 单元格省略
- [x] 行单选
- [x] 行多选
- [x] 行展开
- [x] 行样式
- [x] footer 汇总
- [x] 自定义事件
- 更多
如果没有你想要的的功能 ,请告诉我们
安装
pnpm install @vue-table-easy/vueor
yarn add @vue-table-easy/vue使用
Write the following in main.js:
import { createApp } from 'vue';
import '@vue-table-easy/vue/libs/theme-default/index.css';
import { useVeTable } from '@vue-table-easy/vue';
createApp({
render: (h) => h(App),
})
.use(useVeTable())
.mount('#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>开发计划
支持环境
- 现代浏览器和 IE11 及以上
| IE / Edge | Firefox | Chrome | Safari | Opera | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
如何贡献
如果你希望参与贡献,欢迎 Pull Request
Star History
贡献者们
感谢原组件库作者 huangshuwei
同时感谢以下小伙伴们做出的贡献 🙏
License
http://www.opensource.org/licenses/mit-license.php
