Blame view

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