Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

50 wiersze
1.2 KiB

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