props.js 714 B

123456789101112131415161718192021222324252627282930
  1. import { defineProps } from '../../libs/util/props';
  2. import theme from '../../libs/config/theme.js'
  3. export default defineProps('indexList', {
  4. // 右边锚点非激活的颜色
  5. inactiveColor: {
  6. type: String,
  7. default: theme.contentColor
  8. },
  9. // 右边锚点激活的颜色
  10. activeColor: {
  11. type: String,
  12. default: theme.primary
  13. },
  14. // 索引字符列表,数组形式
  15. indexList: {
  16. type: Array,
  17. default: () => []
  18. },
  19. // 是否开启锚点自动吸顶
  20. sticky: {
  21. type: Boolean,
  22. default: true
  23. },
  24. // 自定义导航栏的高度
  25. customNavHeight: {
  26. type: [String, Number],
  27. default: 0
  28. }
  29. })