jiangping
2023-10-26 627c3e0a6920131d75eafa4646db373ccc936546
minipro_standard/uni_modules/uview-ui/components/u-tabs/props.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,64 @@
export default {
    props: {
        // æ»‘块的移动过渡时间,单位ms
        duration: {
            type: Number,
            default: uni.$u.props.tabs.duration
        },
        // tabs标签数组
        list: {
            type: Array,
            default: uni.$u.props.tabs.list
        },
        // æ»‘块颜色
        lineColor: {
            type: String,
            default: uni.$u.props.tabs.lineColor
        },
        // èœå•选择中时的样式
        activeStyle: {
            type: [String, Object],
            default: uni.$u.props.tabs.activeStyle
        },
        // èœå•非选中时的样式
        inactiveStyle: {
            type: [String, Object],
            default: uni.$u.props.tabs.inactiveStyle
        },
        // æ»‘块长度
        lineWidth: {
            type: [String, Number],
            default: uni.$u.props.tabs.lineWidth
        },
        // æ»‘块高度
        lineHeight: {
            type: [String, Number],
            default: uni.$u.props.tabs.lineHeight
        },
        // æ»‘块背景显示大小,当滑块背景设置为图片时使用
        lineBgSize: {
            type: String,
            default: uni.$u.props.tabs.lineBgSize
        },
        // èœå•item的样式
        itemStyle: {
            type: [String, Object],
            default: uni.$u.props.tabs.itemStyle
        },
        // èœå•是否可滚动
        scrollable: {
            type: Boolean,
            default: uni.$u.props.tabs.scrollable
        },
      // å½“前选中标签的索引
      current: {
         type: [Number, String],
         default: uni.$u.props.tabs.current
      },
      // é»˜è®¤è¯»å–的键名
      keyName: {
         type: String,
         default: uni.$u.props.tabs.keyName
      }
    }
}