@wanghonggan/uv-ui
Version:
uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。
32 lines (31 loc) • 783 B
JavaScript
import { getPropsByKey } from "../../libs/config/config";
export default {
props: {
// 占父容器宽度的多少等分,总分为12份
span: {
type: [String, Number],
default: 12
},
// 指定栅格左侧的间隔数(总12栏)
offset: {
type: [String, Number],
default: 0
},
// 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
justify: {
type: String,
default: 'start'
},
// 垂直对齐方式,可选值为top、center、bottom、stretch
align: {
type: String,
default: 'stretch'
},
// 文字对齐方式
textAlign: {
type: String,
default: 'left'
},
...getPropsByKey('col')
}
}