# vue-vertical-table

> vertical-table of vue.js https://frank.shellwe.me/vue-vertical-table

Latest version **0.3.0** (published 2019-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-vertical-table
pnpm add vue-vertical-table
yarn add vue-vertical-table
bun add vue-vertical-table
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2019-12-05 |
| First published | 2019-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 70.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Frank Sung |
| Maintainers | ysya |
| Keywords | Vue, cross table, vertical table, vertical, cross, table |

## Links

- npm: https://www.npmjs.com/package/vue-vertical-table
- Repository: https://github.com/ysya/vue-vertical-table
- Homepage: https://github.com/ysya/vue-vertical-table#readme
- Issues: https://github.com/ysya/vue-vertical-table/issues
- npm.io page: https://npm.io/package/vue-vertical-table

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [core-js](https://npm.io/package/core-js.md) ^2.6.9
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.3

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2019-12-05
- 0.2.4 — 2019-12-02
- 0.2.3 — 2019-12-02
- 0.2.1 — 2019-12-02
- 0.2.0 — 2019-12-02

## README

# vue-vertical-table

## Install

```
npm i vue-vertical-table
```

## Use
```
import VerticalTable from 'vue-vertical-table'
import 'vue-vertical-table/lib/vertical-table.css'
```

```
<VerticalTable v-model="data" :table-data="vTableData" :table-style="tableStyle" />
<CrossTable v-model="data" :table-data="crossTableData" :table-style="tableStyle" />
```

### tableData

```
vTableData: [
  {
    name: 'row1',
    children: [
      { isEdit: false, key: 'Order No.', value: '1001' },
      { isEdit: true, type: 'input', key: 'Product Name', value: 'Basketball' },
      { isEdit: true, type: 'checkbox', key: 'Checked', value: false }
    ]
  },
  ...
]
crossTableData: [
  {
    title: 'John',
    children: [
      { name: 'love me?', value: false, isEdit: true, type: 'checkbox' },
      { name: 'Gender', value: 'M', isEdit: true, type: 'input' },
      { name: 'Age', value: '18', isEdit: true, type: 'input' },
      { name: 'Height', value: '200', isEdit: true, type: 'input' },
      { name: 'Weight', value: '60', isEdit: true, type: 'input' }
    ]
  },
  {
    title: 'Amy',
    children: [
      { name: 'love me?', value: true, isEdit: true, type: 'checkbox' },
      { name: 'Gender', value: 'F', isEdit: true, type: 'input' },
      { name: 'Age', value: '22', isEdit: true, type: 'input' },
      { name: 'Height', value: '160', isEdit: true, type: 'input'},
      { name: 'Weight', value: '45', isEdit: true, type: 'input' }
    ]
  },
  ...
]
```

#### Input

| prop   | type     | value |
| ------ | -------- | ----- |
| isEdit | boolean  | -     |
| type   | String   | input |
| key    | String   | -     |
| value  | String   | -     |

#### Checkbox

| prop   | type     | value |
| ------ | -------- | ----- |
| isEdit | boolean  | -     |
| type   | String   | checkbox |
| key    | String   | -     |
| value  | boolean  | -     |

## Demo

[Click here](https://frank.shellwe.me/vue-vertical-table)

## License

[MIT](https://github.com/ysya/vue-vertical-table/blob/master/LICENSE)

Copyright (c) 2019-present ysya

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