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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. export default {
  2. props: {
  3. // 是否显示组件
  4. show: {
  5. type: Boolean,
  6. default: true
  7. },
  8. // 颜色
  9. color: {
  10. type: String,
  11. default: '#909193'
  12. },
  13. // 提示文字颜色
  14. textColor: {
  15. type: String,
  16. default: '#909193'
  17. },
  18. // 文字和图标是否垂直排列
  19. vertical: {
  20. type: Boolean,
  21. default: false
  22. },
  23. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  24. mode: {
  25. type: String,
  26. default: 'spinner'
  27. },
  28. // 图标大小,单位默认px
  29. size: {
  30. type: [String, Number],
  31. default: 24
  32. },
  33. // 文字大小
  34. textSize: {
  35. type: [String, Number],
  36. default: 15
  37. },
  38. // 文字样式
  39. textStyle: {
  40. type: Object,
  41. default () {
  42. return {}
  43. }
  44. },
  45. // 文字内容
  46. text: {
  47. type: [String, Number],
  48. default: ''
  49. },
  50. // 动画模式 https://www.runoob.com/cssref/css3-pr-animation-timing-function.html
  51. timingFunction: {
  52. type: String,
  53. default: 'linear'
  54. },
  55. // 动画执行周期时间
  56. duration: {
  57. type: [String, Number],
  58. default: 1200
  59. },
  60. // mode=circle时的暗边颜色
  61. inactiveColor: {
  62. type: String,
  63. default: ''
  64. },
  65. ...uni.$uv?.props?.loadingIcon
  66. }
  67. }