props.js 1.6 KB

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