3
0

props.js 707 B

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