1
This commit is contained in:
19
uview-plus/components/u-col/col.js
Normal file
19
uview-plus/components/u-col/col.js
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 16:56:12
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
|
||||
*/
|
||||
export default {
|
||||
// col 组件
|
||||
col: {
|
||||
span: 12,
|
||||
offset: 0,
|
||||
justify: 'start',
|
||||
align: 'stretch',
|
||||
textAlign: 'left'
|
||||
}
|
||||
}
|
||||
31
uview-plus/components/u-col/props.js
Normal file
31
uview-plus/components/u-col/props.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import { defineMixin } from '../../libs/vue'
|
||||
import defProps from '../../libs/config/props.js'
|
||||
export const props = defineMixin({
|
||||
props: {
|
||||
// 占父容器宽度的多少等分,总分为12份
|
||||
span: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.col.span
|
||||
},
|
||||
// 指定栅格左侧的间隔数(总12栏)
|
||||
offset: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.col.offset
|
||||
},
|
||||
// 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
|
||||
justify: {
|
||||
type: String,
|
||||
default: () => defProps.col.justify
|
||||
},
|
||||
// 垂直对齐方式,可选值为top、center、bottom、stretch
|
||||
align: {
|
||||
type: String,
|
||||
default: () => defProps.col.align
|
||||
},
|
||||
// 文字对齐方式
|
||||
textAlign: {
|
||||
type: String,
|
||||
default: () => defProps.col.textAlign
|
||||
}
|
||||
}
|
||||
})
|
||||
170
uview-plus/components/u-col/u-col.vue
Normal file
170
uview-plus/components/u-col/u-col.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user