# el-table-horizontal-scroll

> > let el-table show horizontal scroll-bar at bottom

Latest version **1.2.5** (published 2023-06-02) · 0 weekly downloads

## Install

```sh
npm install el-table-horizontal-scroll
pnpm add el-table-horizontal-scroll
yarn add el-table-horizontal-scroll
bun add el-table-horizontal-scroll
```

## 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.2.5 |
| Published | 2023-06-02 |
| First published | 2022-02-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 992.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 82 |
| Author | mizuka |
| Maintainers | mizuka |
| Keywords | vue, vue, vue2, element-ui, el-scroller, el-table, horizontal-scroll |

## Links

- npm: https://www.npmjs.com/package/el-table-horizontal-scroll
- Repository: https://github.com/mizuka-wu/el-table-horizontal-scroll
- Homepage: https://github.com/mizuka-wu/el-table-horizontal-scroll#readme
- Issues: https://github.com/mizuka-wu/el-table-horizontal-scroll/issues
- npm.io page: https://npm.io/package/el-table-horizontal-scroll

## Dependencies (7)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [vue-route](https://npm.io/package/vue-route.md) ^1.5.1
- [element-ui](https://npm.io/package/element-ui.md) ^2.15.6
- [vue-router](https://npm.io/package/vue-router.md) ^3.5.3
- [throttle-debounce](https://npm.io/package/throttle-debounce.md) ^5.0.0

## 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

- 1.2.5 (latest) — 2023-06-02
- 1.2.4 — 2023-03-25
- 1.2.3 — 2023-03-25
- 1.2.2 — 2023-03-20
- 1.2.1 — 2023-03-17
- 1.1.1 — 2023-03-12
- 1.1.0 — 2023-03-12
- 1.0.2 — 2022-08-28
- 1.0.0 — 2022-08-28
- 0.2.2 — 2022-04-13
- 0.2.0 — 2022-04-13
- 0.1.5 — 2022-04-12
- 0.1.4 — 2022-02-09
- 0.1.0 — 2022-02-09

## README

# el-table-horizontal-scroll

> let el-table show horizontal scroll-bar at bottom

support vue2 and vue3

[中文文档]('./README_CN.md')

## How to use

![](./res.gif)

### install

```
npm install el-table-horizontal-scroll
```

### register directive

```
import horizontalScroll from 'el-table-horizontal-scroll'

# vue2
Vue.use(horizontalScroll)

# vue3
app.use(horizontalScroll)
```

or

```
import horizontalScroll from 'el-table-horizontal-scroll'

export default {
    directives: {
        horizontalScroll
    }
}
```

### use

```
<el-table
  :data="data"
  v-horizontal-scroll
>
  <el-table-column
    fixed="left"
    label="a"
    prop="a"
  ></el-table-column>
  <el-table-column
    label="b"
    prop="b"
  ></el-table-column>
  <el-table-column
    label="c"
    prop="c"
  ></el-table-column>
  <el-table-column
    label="d"
    prop="d"
    width="1600"
  ></el-table-column>
</el-table>
```

## props

you can use `always` or `hover`

default is `hover`, the bar will show when your mouse over the table

or you can change it to always, and make the bar always show

example

```
<el-table
  :data="data"
  v-horizontal-scroll="'always'"
>
  <el-table-column
    fixed="left"
    label="a"
    prop="a"
  ></el-table-column>
  <el-table-column
    label="b"
    prop="b"
  ></el-table-column>
  <el-table-column
    label="c"
    prop="c"
  ></el-table-column>
  <el-table-column
    label="d"
    prop="d"
    width="1600"
  ></el-table-column>
</el-table>
```

## How to change scrollbar‘s height

`.el-table-horizontal-scrollbarl`

manual add style to this class

if you think the scroller is so small when hover,
you can add this to the style

```css
.el-table-horizontal-scrollbar:hover {
  transform: scaleY(1.5);
  filter: brightness(0.1);
  transform: scaleY(1.75) translateY(-10%);
}
```

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