综合办公系统
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.

props.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. export default {
  2. props: {
  3. // 是否展示骨架组件
  4. loading: {
  5. type: Boolean,
  6. default: true
  7. },
  8. // 是否开启动画效果
  9. animate: {
  10. type: Boolean,
  11. default: true
  12. },
  13. // 段落占位图行数
  14. rows: {
  15. type: [String, Number],
  16. default: 0
  17. },
  18. // 段落占位图的宽度
  19. rowsWidth: {
  20. type: [String, Number, Array],
  21. default: '100%'
  22. },
  23. // 段落占位图的高度
  24. rowsHeight: {
  25. type: [String, Number, Array],
  26. default: 18
  27. },
  28. // 段落占位图的左边距
  29. rowsLeft: {
  30. type: [String, Number, Array],
  31. default: 0
  32. },
  33. // 是否展示标题占位图
  34. title: {
  35. type: Boolean,
  36. default: true
  37. },
  38. // 段落标题的宽度
  39. titleWidth: {
  40. type: [String, Number],
  41. default: '50%'
  42. },
  43. // 段落标题的高度
  44. titleHeight: {
  45. type: [String, Number],
  46. default: 18
  47. },
  48. // 是否展示头像占位图
  49. avatar: {
  50. type: Boolean,
  51. default: false
  52. },
  53. // 头像占位图大小
  54. avatarSize: {
  55. type: [String, Number],
  56. default: 32
  57. },
  58. // 头像占位图的形状,circle-圆形,square-方形
  59. avatarShape: {
  60. type: String,
  61. default: 'circle'
  62. },
  63. ...uni.$uv?.props?.skeleton
  64. }
  65. }