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.

47 lines
1.1 KiB

5 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // #ifdef VUE3
  6. // 当前选中项的value值
  7. modelValue: {
  8. type: [Number, String, Array],
  9. default: ''
  10. },
  11. // #endif
  12. // #ifdef VUE2
  13. // 当前选中项的value值
  14. value: {
  15. type: [Number, String, Array],
  16. default: ''
  17. },
  18. // #endif
  19. // 菜单项标题
  20. title: {
  21. type: [String, Number],
  22. default: ''
  23. },
  24. // 选项数据,如果传入了默认slot,此参数无效
  25. options: {
  26. type: Array,
  27. default() {
  28. return []
  29. }
  30. },
  31. // 是否禁用此菜单项
  32. disabled: {
  33. type: Boolean,
  34. default: false
  35. },
  36. // 下拉弹窗的高度
  37. height: {
  38. type: [Number, String],
  39. default: 'auto'
  40. },
  41. // 点击遮罩是否可以收起弹窗
  42. closeOnClickOverlay: {
  43. type: Boolean,
  44. default: true
  45. }
  46. }
  47. })