3
0

props.js 1.2 KB

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