Sign in

简柏林 / thingskit-app · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit-app
  • uni_modules
  • uview-ui
  • components
  • u-grid
  • props.js
  • Initial commit
    5a10304e
    黄 x authored
    2022-03-31 12:12:12 +0800  
    Browse Files »
props.js 490 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
export default {
    props: {
        // 分成几列
        col: {
            type: [String, Number],
            default: uni.$u.props.grid.col
        },
        // 是否显示边框
        border: {
            type: Boolean,
            default: uni.$u.props.grid.border
        },
        // 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右
        align: {
            type: String,
            default: uni.$u.props.grid.align
        }
    }
}