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.
 
 
 

45 lines
1.3 KiB

  1. import { defineMixin } from '../../libs/vue'
  2. import LinkDefaultProps from './link'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(LinkDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 文字颜色
  8. color: {
  9. type: String,
  10. default: () => defProps.link.color
  11. },
  12. // 字体大小,单位px
  13. fontSize: {
  14. type: [String, Number],
  15. default: () => defProps.link.fontSize
  16. },
  17. // 是否显示下划线
  18. underLine: {
  19. type: Boolean,
  20. default: () => defProps.link.underLine
  21. },
  22. // 要跳转的链接
  23. href: {
  24. type: String,
  25. default: () => defProps.link.href
  26. },
  27. // 小程序中复制到粘贴板的提示语
  28. mpTips: {
  29. type: String,
  30. default: () => defProps.link.mpTips
  31. },
  32. // 下划线颜色
  33. lineColor: {
  34. type: String,
  35. default: () => defProps.link.lineColor
  36. },
  37. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  38. text: {
  39. type: String,
  40. default: () => defProps.link.text
  41. }
  42. }
  43. })