Blame view

uni_modules/uview-plus/components/u-tabs/props.js 1.99 KB
a2702f6d   刘淇   巡查计划
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
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 滑块的移动过渡时间,单位ms
          duration: {
              type: Number,
              default: () => defProps.tabs.duration
          },
          // tabs标签数组
          list: {
              type: Array,
              default: () => defProps.tabs.list
          },
          // 滑块颜色
          lineColor: {
              type: String,
              default: () => defProps.tabs.lineColor
          },
          // 菜单选择中时的样式
          activeStyle: {
              type: [String, Object],
              default: () => defProps.tabs.activeStyle
          },
          // 菜单非选中时的样式
          inactiveStyle: {
              type: [String, Object],
              default: () => defProps.tabs.inactiveStyle
          },
          // 滑块长度
          lineWidth: {
              type: [String, Number],
              default: () => defProps.tabs.lineWidth
          },
          // 滑块高度
          lineHeight: {
              type: [String, Number],
              default: () => defProps.tabs.lineHeight
          },
          // 滑块背景显示大小,当滑块背景设置为图片时使用
          lineBgSize: {
              type: String,
              default: () => defProps.tabs.lineBgSize
          },
          // 菜单item的样式
          itemStyle: {
              type: [String, Object],
              default: () => defProps.tabs.itemStyle
          },
          // 菜单是否可滚动
          scrollable: {
              type: Boolean,
              default: () => defProps.tabs.scrollable
          },
  		// 当前选中标签的索引
  		current: {
  			type: [Number, String],
  			default: () => defProps.tabs.current
  		},
  		// 默认读取的键名
  		keyName: {
  			type: String,
  			default: () => defProps.tabs.keyName
  		},
          // 左侧图标样式
          iconStyle: {
              type: [String, Object],
              default: () => defProps.tabs.iconStyle
          }
      }
  })