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.
 
 
 

35 lines
1.0 KiB

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