WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface ScrollListProps {
  /**
   * 指示器的整体宽度
   * @default 50
   */
  indicatorWidth?: string | number
  /**
   * 滑块的宽度
   * @default 20
   */
  indicatorBarWidth?: string | number
  /**
   * 是否显示面板指示器
   * @default true
   */
  indicator?: boolean
  /**
   * 指示器非激活颜色
   * @default "#f2f2f2"
   */
  indicatorColor?: string
  /**
   * 指示器滑块颜色
   * @default "#3c9cff"
   */
  indicatorActiveColor?: string
  /**
   * 指示器样式,可通过bottom,left,right进行定位
   */
  indicatorStyle: string | Record<string, any>
  /**
   * 滑动到左边时触发
   */
  onLeft?: () => any
  /**
   * 滑动到右边时触发
   */
  onRight?: () => any
}
 
declare interface _ScrollList {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      ScrollListProps
  }
}
 
export declare const ScrollList: _ScrollList