uview-plus
Version:
零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。
42 lines (41 loc) • 1.27 kB
JavaScript
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
},
// 是否开启底部安全距离适配
safeBottomFix: {
type: Boolean,
default: () => defProps.indexList.safeBottomFix
},
//自定义下边距
itemMargin: {
type: String,
default: () => defProps.indexList.itemMargin
},
}
})