# table-edit

> ```js

Latest version **1.1.0** (published 2017-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install table-edit
pnpm add table-edit
yarn add table-edit
bun add table-edit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-09-22 |
| First published | 2017-09-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | alice |
| Maintainers | a375898312 |

## Links

- npm: https://www.npmjs.com/package/table-edit
- npm.io page: https://npm.io/package/table-edit

## Recent versions

- 1.1.0 (latest) — 2017-09-22
- 3.0.0 — 2017-09-22
- 2.0.0 — 2017-09-22

## README

## 安装 
## vue-cli element-ui
## npm i table-edit --save

## how to use
```js
<template>
  <edit :title="title" :list="list" :edit="save" />
</template>

<script>
import edit from 'table-edit'
export default {
  components: { edit },
  data() {
    /**
     * @param {Array} title 表格标题
     * @param {Object} list 单元格数据数据
     * @param {Object} row  当前行的数据
     */
    return {
      title: {
        name: '姓名',
        date: '时间',
        address: '地址'
       },
      list: [
        {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }]
       }
  },
  methods: {
    save(row) { 
      console.log(row)
    }
  }
}
</script>

---
_Source: https://npm.io/package/table-edit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
