props.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. actionName : {
  20. type : String,
  21. default : "name"
  22. },
  23. // 数据
  24. actions: {
  25. type: Array,
  26. default: uni.$u.props.actionSheet.actions
  27. },
  28. // 取消按钮的文字,不为空时显示按钮
  29. cancelText: {
  30. type: String,
  31. default: uni.$u.props.actionSheet.cancelText
  32. },
  33. // 点击某个菜单项时是否关闭弹窗
  34. closeOnClickAction: {
  35. type: Boolean,
  36. default: uni.$u.props.actionSheet.closeOnClickAction
  37. },
  38. // 处理底部安全区(默认true)
  39. safeAreaInsetBottom: {
  40. type: Boolean,
  41. default: uni.$u.props.actionSheet.safeAreaInsetBottom
  42. },
  43. // 小程序的打开方式
  44. openType: {
  45. type: String,
  46. default: uni.$u.props.actionSheet.openType
  47. },
  48. // 点击遮罩是否允许关闭 (默认true)
  49. closeOnClickOverlay: {
  50. type: Boolean,
  51. default: uni.$u.props.actionSheet.closeOnClickOverlay
  52. },
  53. // 圆角值
  54. round: {
  55. type: [Boolean, String, Number],
  56. default: uni.$u.props.actionSheet.round
  57. }
  58. }
  59. }