props.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import config from '@/config/config';
  2. export default {
  3. statusBarHeight: {
  4. type: Number,
  5. default: config.system.statusBarHeight
  6. },
  7. border: {
  8. type: Boolean,
  9. default: false
  10. },
  11. scroll: {
  12. type: Boolean,
  13. default: false
  14. },
  15. transitionScroll:{
  16. type: Boolean,
  17. default: false
  18. },
  19. transitionAdd:{
  20. type:Number,
  21. default:0
  22. },
  23. transitionBackgroundColor: {
  24. type: String,
  25. default: "#FE4431"
  26. },
  27. transitionDistance: {
  28. type: Number
  29. },
  30. backgroundColor: {
  31. type: String,
  32. default: '#F7F7F7'
  33. },
  34. headerHeight: {
  35. type: Number,
  36. default: config.headerHeight
  37. },
  38. headerBackgroundColor: {
  39. type: String,
  40. default: "#fff"
  41. },
  42. immersion: {
  43. type: Boolean,
  44. default: false
  45. },
  46. immersionFixed:{
  47. type: Boolean,
  48. default: false
  49. },
  50. headerStyle: {
  51. type: String,
  52. default: 'black'
  53. },
  54. title: {
  55. type: String,
  56. default: '首页'
  57. },
  58. mode: {
  59. type: String,
  60. default: 'back'
  61. },
  62. alignCenter: {
  63. type: Boolean,
  64. default: true
  65. },
  66. control: {
  67. type: Boolean,
  68. default: true
  69. },
  70. async: {
  71. type: Boolean,
  72. default: false
  73. },
  74. asyncTime: {
  75. type: Number,
  76. default: 3000
  77. },
  78. timeout: {
  79. type: Number,
  80. default: 1200
  81. },
  82. phoneX: {
  83. type: Boolean,
  84. default: true
  85. },
  86. footerHeight: {
  87. type: Number,
  88. default: 0
  89. },
  90. modal: {
  91. type: Array,
  92. default: []
  93. }
  94. }