uview-next
Version:
基于uView UI 2.0,110+高质量组件库,支持vue2和vue3,支持鸿蒙,支持多语言,搭配便捷工具助力,让开发更得心应手
31 lines (29 loc) • 714 B
JavaScript
import { defineProps } from '../../libs/util/props';
import theme from '../../libs/config/theme.js'
export default defineProps('indexList', {
// 右边锚点非激活的颜色
inactiveColor: {
type: String,
default: theme.contentColor
},
// 右边锚点激活的颜色
activeColor: {
type: String,
default: theme.primary
},
// 索引字符列表,数组形式
indexList: {
type: Array,
default: () => []
},
// 是否开启锚点自动吸顶
sticky: {
type: Boolean,
default: true
},
// 自定义导航栏的高度
customNavHeight: {
type: [String, Number],
default: 0
}
})