props.js 1.84 KB
Newer Older
jyx's avatar
jyx committed
1
import defProps from '../../libs/config/props.js';
mengcuiguang's avatar
mengcuiguang committed
2 3 4 5 6
export default {
    props: {
        // 滑块的移动过渡时间,单位ms
        duration: {
            type: Number,
jyx's avatar
jyx committed
7
            default: () => defProps.tabs.duration
mengcuiguang's avatar
mengcuiguang committed
8 9 10 11
        },
        // tabs标签数组
        list: {
            type: Array,
jyx's avatar
jyx committed
12
            default: () => defProps.tabs.list
mengcuiguang's avatar
mengcuiguang committed
13 14 15 16
        },
        // 滑块颜色
        lineColor: {
            type: String,
jyx's avatar
jyx committed
17
            default: () => defProps.tabs.lineColor
mengcuiguang's avatar
mengcuiguang committed
18 19 20 21
        },
        // 菜单选择中时的样式
        activeStyle: {
            type: [String, Object],
jyx's avatar
jyx committed
22
            default: () => defProps.tabs.activeStyle
mengcuiguang's avatar
mengcuiguang committed
23 24 25 26
        },
        // 菜单非选中时的样式
        inactiveStyle: {
            type: [String, Object],
jyx's avatar
jyx committed
27
            default: () => defProps.tabs.inactiveStyle
mengcuiguang's avatar
mengcuiguang committed
28 29 30 31
        },
        // 滑块长度
        lineWidth: {
            type: [String, Number],
jyx's avatar
jyx committed
32
            default: () => defProps.tabs.lineWidth
mengcuiguang's avatar
mengcuiguang committed
33 34 35 36
        },
        // 滑块高度
        lineHeight: {
            type: [String, Number],
jyx's avatar
jyx committed
37
            default: () => defProps.tabs.lineHeight
mengcuiguang's avatar
mengcuiguang committed
38 39 40 41
        },
        // 滑块背景显示大小,当滑块背景设置为图片时使用
        lineBgSize: {
            type: String,
jyx's avatar
jyx committed
42
            default: () => defProps.tabs.lineBgSize
mengcuiguang's avatar
mengcuiguang committed
43 44 45 46
        },
        // 菜单item的样式
        itemStyle: {
            type: [String, Object],
jyx's avatar
jyx committed
47
            default: () => defProps.tabs.itemStyle
mengcuiguang's avatar
mengcuiguang committed
48 49 50 51
        },
        // 菜单是否可滚动
        scrollable: {
            type: Boolean,
jyx's avatar
jyx committed
52
            default: () => defProps.tabs.scrollable
mengcuiguang's avatar
mengcuiguang committed
53 54 55 56
        },
		// 当前选中标签的索引
		current: {
			type: [Number, String],
jyx's avatar
jyx committed
57
			default: () => defProps.tabs.current
mengcuiguang's avatar
mengcuiguang committed
58 59 60 61
		},
		// 默认读取的键名
		keyName: {
			type: String,
jyx's avatar
jyx committed
62
			default: () => defProps.tabs.keyName
mengcuiguang's avatar
mengcuiguang committed
63 64 65
		}
    }
}