props.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import defprops from '../../libs/config/props';
  2. export default {
  3. props: {
  4. // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
  5. status: {
  6. type: String,
  7. default: defprops.loadmore.status
  8. },
  9. // 组件背景色
  10. bgColor: {
  11. type: String,
  12. default: defprops.loadmore.bgColor
  13. },
  14. // 是否显示加载中的图标
  15. icon: {
  16. type: Boolean,
  17. default: defprops.loadmore.icon
  18. },
  19. // 字体大小
  20. fontSize: {
  21. type: [String, Number],
  22. default: defprops.loadmore.fontSize
  23. },
  24. // 图标大小
  25. iconSize: {
  26. type: [String, Number],
  27. default: defprops.loadmore.iconSize
  28. },
  29. // 字体颜色
  30. color: {
  31. type: String,
  32. default: defprops.loadmore.color
  33. },
  34. // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
  35. loadingIcon: {
  36. type: String,
  37. default: defprops.loadmore.loadingIcon
  38. },
  39. // 加载前的提示语
  40. loadmoreText: {
  41. type: String,
  42. default: defprops.loadmore.loadmoreText
  43. },
  44. // 加载中提示语
  45. loadingText: {
  46. type: String,
  47. default: defprops.loadmore.loadingText
  48. },
  49. // 没有更多的提示语
  50. nomoreText: {
  51. type: String,
  52. default: defprops.loadmore.nomoreText
  53. },
  54. // 在“没有更多”状态下,是否显示粗点
  55. isDot: {
  56. type: Boolean,
  57. default: defprops.loadmore.isDot
  58. },
  59. // 加载中图标的颜色
  60. iconColor: {
  61. type: String,
  62. default: defprops.loadmore.iconColor
  63. },
  64. // 上边距
  65. marginTop: {
  66. type: [String, Number],
  67. default: defprops.loadmore.marginTop
  68. },
  69. // 下边距
  70. marginBottom: {
  71. type: [String, Number],
  72. default: defprops.loadmore.marginBottom
  73. },
  74. // 高度,单位px
  75. height: {
  76. type: [String, Number],
  77. default: defprops.loadmore.height
  78. },
  79. // 是否显示左边分割线
  80. line: {
  81. type: Boolean,
  82. default: defprops.loadmore.line
  83. },
  84. // 线条颜色
  85. lineColor: {
  86. type: String,
  87. default: defprops.loadmore.lineColor
  88. },
  89. // 是否虚线,true-虚线,false-实线
  90. dashed: {
  91. type: Boolean,
  92. default: defprops.loadmore.dashed
  93. }
  94. }
  95. }