Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

35 linhas
1.2 KiB

  1. import { defineMixin } from '../../libs/vue'
  2. import ColDefaultProps from './col'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(ColDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 占父容器宽度的多少等分,总分为12份
  8. span: {
  9. type: [String, Number],
  10. default: () => defProps.col.span
  11. },
  12. // 指定栅格左侧的间隔数(总12栏)
  13. offset: {
  14. type: [String, Number],
  15. default: () => defProps.col.offset
  16. },
  17. // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
  18. justify: {
  19. type: String,
  20. default: () => defProps.col.justify
  21. },
  22. // 垂直对齐方式,可选值为top、center、bottom、stretch
  23. align: {
  24. type: String,
  25. default: () => defProps.col.align
  26. },
  27. // 文字对齐方式
  28. textAlign: {
  29. type: String,
  30. default: () => defProps.col.textAlign
  31. }
  32. }
  33. })