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.
 
 
 

30 wiersze
898 B

  1. import { defineMixin } from '../../libs/vue'
  2. import GapDefaultProps from './gap'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(GapDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 背景颜色(默认transparent)
  8. bgColor: {
  9. type: String,
  10. default: () => defProps.gap.bgColor
  11. },
  12. // 分割槽高度,单位px(默认30)
  13. height: {
  14. type: [String, Number],
  15. default: () => defProps.gap.height
  16. },
  17. // 与上一个组件的距离
  18. marginTop: {
  19. type: [String, Number],
  20. default: () => defProps.gap.marginTop
  21. },
  22. // 与下一个组件的距离
  23. marginBottom: {
  24. type: [String, Number],
  25. default: () => defProps.gap.marginBottom
  26. }
  27. }
  28. })