3
0

props.js 786 B

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