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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. export default {
  2. props: {
  3. // 标题
  4. title: {
  5. type: [String],
  6. default: ''
  7. },
  8. // 弹窗内容
  9. content: {
  10. type: String,
  11. default: ''
  12. },
  13. // 确认文案
  14. confirmText: {
  15. type: String,
  16. default: '确认'
  17. },
  18. // 取消文案
  19. cancelText: {
  20. type: String,
  21. default: '取消'
  22. },
  23. // 是否显示确认按钮
  24. showConfirmButton: {
  25. type: Boolean,
  26. default: true
  27. },
  28. // 是否显示取消按钮
  29. showCancelButton: {
  30. type: Boolean,
  31. default: false
  32. },
  33. // 确认按钮颜色
  34. confirmColor: {
  35. type: String,
  36. default: '#2979ff'
  37. },
  38. // 取消文字颜色
  39. cancelColor: {
  40. type: String,
  41. default: '#606266'
  42. },
  43. // 对调确认和取消的位置
  44. buttonReverse: {
  45. type: Boolean,
  46. default: false
  47. },
  48. // 是否开启缩放效果
  49. zoom: {
  50. type: Boolean,
  51. default: true
  52. },
  53. // 层级
  54. zIndex: {
  55. type: [String, Number],
  56. default: 10075
  57. },
  58. // 是否异步关闭,只对确定按钮有效
  59. asyncClose: {
  60. type: Boolean,
  61. default: false
  62. },
  63. // 是否允许点击遮罩关闭modal
  64. closeOnClickOverlay: {
  65. type: Boolean,
  66. default: true
  67. },
  68. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  69. negativeTop: {
  70. type: [String, Number],
  71. default: 0
  72. },
  73. // modal宽度,不支持百分比,可以数值,px,rpx单位
  74. width: {
  75. type: [String, Number],
  76. default: '650rpx'
  77. },
  78. // 文本对齐方式,默认left
  79. align: {
  80. type: String,
  81. default: 'left'
  82. },
  83. // 文本自定义样式
  84. textStyle: {
  85. type: [Object, String],
  86. default: ''
  87. },
  88. ...uni.$uv?.props?.modal
  89. }
  90. }