-
zhangwei
2025-03-05 16213c0f85aa3ac8317797bf4a05fd12940e16d3
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface TabsProps {
  /**
   * 滑块移动一次所需的时间,单位ms
   * @default 300
   */
  duration?: string | number
  /**
   * 标签数组,元素为对象
   */
  list?: any[]
  /**
   * 滑块颜色
   * @default "#3c9cff"
   */
  lineColor?: string
  /**
   * 菜单选择中时的样式
   * @default "{ color: '#303133' }"
   */
  activeStyle?: unknown
  /**
   * 菜单非选中时的样式
   * @default "{ color: '#606266' }"
   */
  inactiveStyle?: unknown
  /**
   * 滑块长度
   * @default 20
   */
  lineWidth?: string | number
  /**
   * 滑块高度
   * @default 3
   */
  lineHeight?: string | number
  /**
   * 滑块背景显示大小
   * @default "cover"
   */
  lineBgSize?: string
  /**
   * 菜单item的样式
   * @default "{ height: '44px' }"
   */
  itemStyle?: unknown
  /**
   * 菜单是否可滚动
   * @default true
   */
  scrollable?: boolean
  /**
   * 当前选中标签的索引
   * @default 0
   */
  current?: string | number
  /**
   * 从`list`元素对象中读取的键名
   * @default "name"
   */
  keyName?: string
  /**
   * 点击标签时触发
   * @param item 传入的其他值
   * @param index 标签索引值
   */
  onClick?: (item: any, index: number) => any
  /**
   * 标签索引改变时触发(`disalbed`时不会触发)
   * @param item 传入的其他值
   * @param index 标签索引值
   */
  onChange?: (item: any, index: number) => any
}
 
declare interface _Tabs {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      TabsProps
  }
}
 
export declare const Tabs: _Tabs