props.js 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. export default {
  2. props: {
  3. // 标题,有值则显示,同时会显示关闭按钮
  4. title: {
  5. type: String,
  6. default: ''
  7. },
  8. // 选项上方的描述信息
  9. description: {
  10. type: String,
  11. default: ''
  12. },
  13. // 数据
  14. actions: {
  15. type: Array,
  16. default: () => []
  17. },
  18. // 取消按钮的文字,不为空时显示按钮
  19. cancelText: {
  20. type: String,
  21. default: ''
  22. },
  23. // 点击某个菜单项时是否关闭弹窗
  24. closeOnClickAction: {
  25. type: Boolean,
  26. default: true
  27. },
  28. // 处理底部安全区(默认true)
  29. safeAreaInsetBottom: {
  30. type: Boolean,
  31. default: true
  32. },
  33. // 小程序的打开方式
  34. openType: {
  35. type: String,
  36. default: ''
  37. },
  38. // 点击遮罩是否允许关闭 (默认true)
  39. closeOnClickOverlay: {
  40. type: Boolean,
  41. default: true
  42. },
  43. // 圆角值
  44. round: {
  45. type: [Boolean, String, Number],
  46. default: 0
  47. },
  48. ...uni.$uv?.props?.actionSheet
  49. }
  50. }