props.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. // 选项名称key
  34. nameKey: {
  35. type: String,
  36. default: () => defProps.actionSheet.nameKey
  37. },
  38. // 选项子名称key
  39. subnameKey: {
  40. type: String,
  41. default: () => defProps.actionSheet.subnameKey
  42. },
  43. // 取消按钮的文字,不为空时显示按钮
  44. cancelText: {
  45. type: String,
  46. default: () => defProps.actionSheet.cancelText
  47. },
  48. // 点击某个菜单项时是否关闭弹窗
  49. closeOnClickAction: {
  50. type: Boolean,
  51. default: () => defProps.actionSheet.closeOnClickAction
  52. },
  53. // 处理底部安全区(默认true)
  54. safeAreaInsetBottom: {
  55. type: Boolean,
  56. default: () => defProps.actionSheet.safeAreaInsetBottom
  57. },
  58. // 小程序的打开方式
  59. openType: {
  60. type: String,
  61. default: () => defProps.actionSheet.openType
  62. },
  63. // 点击遮罩是否允许关闭 (默认true)
  64. closeOnClickOverlay: {
  65. type: Boolean,
  66. default: () => defProps.actionSheet.closeOnClickOverlay
  67. },
  68. // 圆角值
  69. round: {
  70. type: [Boolean, String, Number],
  71. default: () => defProps.actionSheet.round
  72. },
  73. // 选项区域最大高度
  74. wrapMaxHeight: {
  75. type: [String],
  76. default: () => defProps.actionSheet.wrapMaxHeight
  77. },
  78. }
  79. })