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
931 B

2 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 列表锚点文本内容
  6. text: {
  7. type: [String, Number],
  8. default: () => defProps.indexAnchor.text
  9. },
  10. // 列表锚点文字颜色
  11. color: {
  12. type: String,
  13. default: () => defProps.indexAnchor.color
  14. },
  15. // 列表锚点文字大小,单位默认px
  16. size: {
  17. type: [String, Number],
  18. default: () => defProps.indexAnchor.size
  19. },
  20. // 列表锚点背景颜色
  21. bgColor: {
  22. type: String,
  23. default: () => defProps.indexAnchor.bgColor
  24. },
  25. // 列表锚点高度,单位默认px
  26. height: {
  27. type: [String, Number],
  28. default: () => defProps.indexAnchor.height
  29. }
  30. }
  31. })