# edit-excel
**Repository Path**: easy_and_easy/edit-excel
## Basic Information
- **Project Name**: edit-excel
- **Description**: 本地添加excel,实现表格编辑、表格列的字段绑定。
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-01-27
- **Last Updated**: 2021-01-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# edit-excel
> 这是一个用excel批量上传并且编辑数据的组件,可以实现纯前端导入excel不限制excel格式,在表格中编辑导入的数据、删除行列,在表头绑定自定义字段,上传编辑后的表格数据。
[在线Demo](https://www.chidict.com/demos/table/)
### 使用说明
使用时直接把[本git项目](https://github.com/sivanZhang/edit-excel)中components文件夹下的edit-excel文件夹复制到需要引用的项目中,然后引入组件使用:
**template**:
```html
```
**js**:
```js
```
# DEMO
> 本项目可下载到本地,作为demo参考。
### 项目结构
``` bash
│
├── App.vue # 引入了edit-excel组件,并在该页面有使用demo
└── components
└── edit-excel # 封装edit-excel组件文件夹
```
### 启动项目
```bash
# 克隆项目
git clone https://github.com/sivanZhang/edit-excel.git
# 进入项目目录
cd 项目目录
# 安装依赖
npm install
# 启动服务
npm run serve
```
### 视频预览
[](https://zjwvedio.oss-cn-beijing.aliyuncs.com/vbz.mp4)
# 组件说明
### Attribute
| 属性名 | 说明 | 类型 | 默认值 |
| --------------------------- | --------- | --------- | ------------------ |
| required-keys| 上传表格时必填字段,如果在表格编辑期间未绑定所有必填字段则无法通过提交验证| Object| — |
| not-required-keys | 非必填字段 | Object | {} |
| uploadLoading | “上传”按钮的loading状态 | Boolean | false |
### Events
| 事件名称 | 说明 | 回调参数 |
| --------------------------- | --------- | --------- |
| submit-table| 点击组件中“上传”按钮触发| submitTable:编辑完后的表格数据|