1
This commit is contained in:
17
uview-plus/components/u-grid/grid.js
Normal file
17
uview-plus/components/u-grid/grid.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 17:05:57
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
|
||||
*/
|
||||
export default {
|
||||
// grid组件
|
||||
grid: {
|
||||
col: 3,
|
||||
border: false,
|
||||
align: 'left'
|
||||
}
|
||||
}
|
||||
26
uview-plus/components/u-grid/props.js
Normal file
26
uview-plus/components/u-grid/props.js
Normal file
@@ -0,0 +1,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'
|
||||
}
|
||||
}
|
||||
})
|
||||
114
uview-plus/components/u-grid/u-grid.vue
Normal file
114
uview-plus/components/u-grid/u-grid.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user