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

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export default {
  2. props: {
  3. // 到顶部的距离
  4. top: {
  5. type: [String, Number],
  6. default: 0
  7. },
  8. // type主题,primary,success,warning,error
  9. type: {
  10. type: String,
  11. default: 'primary'
  12. },
  13. // 字体颜色
  14. color: {
  15. type: String,
  16. default: '#ffffff'
  17. },
  18. // 背景颜色
  19. bgColor: {
  20. type: String,
  21. default: ''
  22. },
  23. // 展示的文字内容
  24. message: {
  25. type: String,
  26. default: ''
  27. },
  28. // 展示时长,为0时不消失,单位ms
  29. duration: {
  30. type: [String, Number],
  31. default: 3000
  32. },
  33. // 字体大小
  34. fontSize: {
  35. type: [String, Number],
  36. default: 15
  37. },
  38. // 是否留出顶部安全距离(状态栏高度)
  39. safeAreaInsetTop: {
  40. type: Boolean,
  41. default: false
  42. },
  43. ...uni.$uv?.props?.notify
  44. }
  45. }