Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

83 righe
2.5 KiB

  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 ActionSheetDefaultProps from './actionSheet'
  11. import { registerComponentProps } from '../../libs/config/props.js'
  12. const defProps = registerComponentProps(ActionSheetDefaultProps)
  13. export const props = defineMixin({
  14. props: {
  15. // 操作菜单是否展示 (默认false)
  16. show: {
  17. type: Boolean,
  18. default: () => defProps.actionSheet.show
  19. },
  20. // 标题
  21. title: {
  22. type: String,
  23. default: () => defProps.actionSheet.title
  24. },
  25. // 选项上方的描述信息
  26. description: {
  27. type: String,
  28. default: () => defProps.actionSheet.description
  29. },
  30. // 数据
  31. actions: {
  32. type: Array,
  33. default: () => defProps.actionSheet.actions
  34. },
  35. // 选项名称key
  36. nameKey: {
  37. type: String,
  38. default: () => defProps.actionSheet.nameKey
  39. },
  40. // 选项子名称key
  41. subnameKey: {
  42. type: String,
  43. default: () => defProps.actionSheet.subnameKey
  44. },
  45. // 取消按钮的文字,不为空时显示按钮
  46. cancelText: {
  47. type: String,
  48. default: () => defProps.actionSheet.cancelText
  49. },
  50. // 点击某个菜单项时是否关闭弹窗
  51. closeOnClickAction: {
  52. type: Boolean,
  53. default: () => defProps.actionSheet.closeOnClickAction
  54. },
  55. // 处理底部安全区(默认true)
  56. safeAreaInsetBottom: {
  57. type: Boolean,
  58. default: () => defProps.actionSheet.safeAreaInsetBottom
  59. },
  60. // 小程序的打开方式
  61. openType: {
  62. type: String,
  63. default: () => defProps.actionSheet.openType
  64. },
  65. // 点击遮罩是否允许关闭 (默认true)
  66. closeOnClickOverlay: {
  67. type: Boolean,
  68. default: () => defProps.actionSheet.closeOnClickOverlay
  69. },
  70. // 圆角值
  71. round: {
  72. type: [Boolean, String, Number],
  73. default: () => defProps.actionSheet.round
  74. },
  75. // 选项区域最大高度
  76. wrapMaxHeight: {
  77. type: [String],
  78. default: () => defProps.actionSheet.wrapMaxHeight
  79. },
  80. }
  81. })