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.

54 lines
1.6 KiB

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