@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
36 lines (35 loc) • 791 B
TypeScript
import { default as React } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface BarrageProps extends BasicComponent {
/**
* 弹幕列表数据
* @default []
*/
list: Array<string>
/**
* 可视区域内每个弹幕出现的时间间隔
* @default 500
*/
interval: number
/**
* 是否循环播放
* @default true
*/
loop: boolean
/**
* 每个弹幕的滚动时间
* @default 3000
*/
duration: number
/**
* 弹幕行数,分几行展示
* @default 1
*/
rows: number
/**
* 弹幕垂直距离
* @default 10
*/
gapY: number
}
export declare const Barrage: React.ForwardRefExoticComponent<Partial<BarrageProps> & React.RefAttributes<unknown>>;