25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

30 satır
822 B

  1. import { defineMixin } from '../../libs/vue'
  2. import GridDefaultProps from './grid'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(GridDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 分成几列
  8. col: {
  9. type: [String, Number],
  10. default: () => defProps.grid.col
  11. },
  12. // 是否显示边框
  13. border: {
  14. type: Boolean,
  15. default: () => defProps.grid.border
  16. },
  17. // 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右
  18. align: {
  19. type: String,
  20. default: () => defProps.grid.align
  21. },
  22. // 间隔
  23. gap: {
  24. type: String,
  25. default: '0px'
  26. }
  27. }
  28. })