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.

36 lines
864 B

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