1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import defprops from '../../libs/config/props';
- export default {
- 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
- }
- }
- }
|