# vue3-seamless-scroll
**Repository Path**: twoke/vue3-seamless-scroll
## Basic Information
- **Project Name**: vue3-seamless-scroll
- **Description**: 基于Vue3.x TypeScript的无缝滚动组件
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 4
- **Forks**: 1
- **Created**: 2022-04-06
- **Last Updated**: 2024-06-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# SeamlessScroll
> The component is a scrollable container that can be used to scroll through a list of items.
Demo: https://vuescroll-container.netlify.app/
# SeamlessScroll
| **属性名** | **描述** | **默认值** | **类型** |
|:---|:---|:---|:---|
| to | 滚动方向 | top | 'top'\|'bottom'\|'left'\|'right' |
| duration | 动画时间: | 17 (1秒 60次) | Number |
| dishover | 是否启用悬停(鼠标悬停停止滚动) | true | Number |
| width | 可视区宽度 | auto | Number |
| height | 可视区高度 | auto | Number |
# 快速使用
> 暂时不支持npm, yarn安装
```html
```
**ImageList.vue**
```html
```
# MessageScroll
| **属性名** | **描述** | **默认值** | **类型** |
|:---|:---|:---|:---|
| messages | 展示的消息 | [] (必填项) | Array |
| messageFormat | 单条信息格式化 | (message: string) => message`, | Function<(string) => string > |
> 注:这是由SeamlessScroll封装的组件,支持SeamlessScroll的所有属性
```html
```
# TableScroll
| **属性名** | **描述** | **默认值** | **类型** |
|:---|:---|:---|:---|
| data | 展示的数据 | [] (必填项) | Array |
> 注:这是由SeamlessScroll封装的组件,支持SeamlessScroll的所有属性
> 快速开始
```html
```
> defineTableScroll 定义表格组件
```ts
function defineTableScroll(
columns: readonly Column[], // 表格
formatStyle?: (key: string, value: any) => any, // 格式化某个数据项的样式
tableClass = 'table-scroll', // 可自定义的表格样式
headerClass = 'table-scroll-header', // 可自定义的表头样式
bodyClass = 'table-scroll-body', // 可自定义内容样式
bodyRowClass = 'table-scroll-row') // 可自定义的单行样式
```
> 针对数据样式定制

# fix
- 优化使用组件时需要自己绑定id
- 修改组件渲染使用render函数