props.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * @Author : LQ
  3. * @Description :
  4. * @version : 3.0
  5. * @LastAuthor : jry
  6. * @lastTime : 2025-08-16 10:52:35
  7. * @FilePath : /uview-plus/libs/config/props/props.js
  8. */
  9. import { defineMixin } from '../../libs/vue'
  10. import defProps from '../../libs/config/props.js'
  11. export const props = defineMixin({
  12. props: {
  13. // 操作菜单是否展示 (默认false)
  14. show: {
  15. type: Boolean,
  16. default: () => defProps.actionSheet.show
  17. },
  18. // 标题
  19. title: {
  20. type: String,
  21. default: () => defProps.actionSheet.title
  22. },
  23. // 选项上方的描述信息
  24. description: {
  25. type: String,
  26. default: () => defProps.actionSheet.description
  27. },
  28. // 数据
  29. actions: {
  30. type: Array,
  31. default: () => defProps.actionSheet.actions
  32. },
  33. // 取消按钮的文字,不为空时显示按钮
  34. cancelText: {
  35. type: String,
  36. default: () => defProps.actionSheet.cancelText
  37. },
  38. // 点击某个菜单项时是否关闭弹窗
  39. closeOnClickAction: {
  40. type: Boolean,
  41. default: () => defProps.actionSheet.closeOnClickAction
  42. },
  43. // 处理底部安全区(默认true)
  44. safeAreaInsetBottom: {
  45. type: Boolean,
  46. default: () => defProps.actionSheet.safeAreaInsetBottom
  47. },
  48. // 小程序的打开方式
  49. openType: {
  50. type: String,
  51. default: () => defProps.actionSheet.openType
  52. },
  53. // 点击遮罩是否允许关闭 (默认true)
  54. closeOnClickOverlay: {
  55. type: Boolean,
  56. default: () => defProps.actionSheet.closeOnClickOverlay
  57. },
  58. // 圆角值
  59. round: {
  60. type: [Boolean, String, Number],
  61. default: () => defProps.actionSheet.round
  62. },
  63. // 选项区域最大高度
  64. wrapMaxHeight: {
  65. type: [String],
  66. default: () => defProps.actionSheet.wrapMaxHeight
  67. },
  68. }
  69. })