Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

61 Zeilen
1.4 KiB

  1. import { defineMixin } from '../../libs/vue'
  2. import { registerComponentProps } from '../../libs/config/props.js'
  3. const defProps = registerComponentProps({ popover: {} })
  4. export const props = defineMixin({
  5. props: {
  6. // 显示的文字内容
  7. text: {
  8. type: [String, Number],
  9. default: ''
  10. },
  11. // 文字颜色
  12. color: {
  13. type: String,
  14. default: '#333'
  15. },
  16. // 背景颜色
  17. bgColor: {
  18. type: String,
  19. default: '#f7f7f7'
  20. },
  21. // 弹出框背景颜色
  22. popupBgColor: {
  23. type: String,
  24. default: '#f7f7f7'
  25. },
  26. // 弹出框位置
  27. placement: {
  28. type: String,
  29. default: 'top'
  30. },
  31. // 触发方式
  32. triggerMode: {
  33. type: String,
  34. default: 'click'
  35. },
  36. // 是否显示 (manual模式下使用)
  37. show: {
  38. type: Boolean,
  39. default: false
  40. },
  41. // z-index值
  42. zIndex: {
  43. type: [Number, String],
  44. default: 10070
  45. },
  46. // 强制定位
  47. forcePosition: {
  48. type: Object,
  49. default() {
  50. return {}
  51. }
  52. },
  53. // 弹出方向
  54. direction: {
  55. type: String,
  56. default: 'top'
  57. }
  58. }
  59. })