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.

26 lines
786 B

4 months ago
  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. })