You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
956 B

import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// 右边锚点非激活的颜色
inactiveColor: {
type: String,
default: () => defProps.indexList.inactiveColor
},
// 右边锚点激活的颜色
activeColor: {
type: String,
default: () => defProps.indexList.activeColor
},
// 索引字符列表,数组形式
indexList: {
type: Array,
default: () => defProps.indexList.indexList
},
// 是否开启锚点自动吸顶
sticky: {
type: Boolean,
default: () => defProps.indexList.sticky
},
// 自定义导航栏的高度
customNavHeight: {
type: [String, Number],
default: () => defProps.indexList.customNavHeight
}
}
})