@wanghonggan/uv-ui
Version:
uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。
32 lines (31 loc) • 630 B
JavaScript
import { getPropsByKey } from "../../libs/config/config";
export default {
props: {
// 右边锚点非激活的颜色
inactiveColor: {
type: String,
default: '#606266'
},
// 右边锚点激活的颜色
activeColor: {
type: String,
default: '#5677fc'
},
// 索引字符列表,数组形式
indexList: {
type: Array,
default: () => []
},
// 是否开启锚点自动吸顶
sticky: {
type: Boolean,
default: true
},
// 自定义导航栏的高度
customNavHeight: {
type: [String, Number],
default: 0
},
...getPropsByKey('indexList')
}
}