# tc-waterfall

> ```shell npm i tc-waterfall ```

Latest version **1.0.0** (published 2022-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install tc-waterfall
pnpm add tc-waterfall
yarn add tc-waterfall
bun add tc-waterfall
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-07-04 |
| First published | 2022-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bruce.yu |
| Keywords | vue3 |

## Links

- npm: https://www.npmjs.com/package/tc-waterfall
- npm.io page: https://npm.io/package/tc-waterfall

## Recent versions

- 1.0.0 (latest) — 2022-07-04

## README

#### 2.1 安装

```shell
npm i tc-waterfall
```

#### 2.2 注册

```typescript
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import V3waterfall from 'tc-waterfall'
import 'tc-waterfall/dist/style.css'


createApp(App)
  .use(V3waterfall)
  .mount('#app')

```

#### 2.3 使用

```vue
<tc-waterfall class="waterfall" :list="list" srcKey="cover" :gap="20" :colWidth="200"
              :distanceToScroll="300" :isLoading="loading" :isOver="over" @scrollReachBottom="loadMore">
  <template v-slot:default="slotScope">
    <div class="list-item">
      <a :href="'https://www.baidu.com' + slotScope.id">
        <div class="cover-wrapper">
          <img v-if="slotScope.item.cover" :src="slotScope.item.cover" class="cover" />
        </div>
        <div class="brief">
          <h3>{{ slotScope.item.title }}</h3>
          <p>{{ slotScope.item.outline }}</p>
        </div>
      </a>
    </div>
  </template>
</tc-waterfall>
```

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