1
This commit is contained in:
23
uview-plus/components/u-divider/divider.js
Normal file
23
uview-plus/components/u-divider/divider.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 16:58:03
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
|
||||
*/
|
||||
export default {
|
||||
// divider组件
|
||||
divider: {
|
||||
dashed: false,
|
||||
hairline: true,
|
||||
dot: false,
|
||||
textPosition: 'center',
|
||||
text: '',
|
||||
textSize: 14,
|
||||
textColor: '#909399',
|
||||
lineColor: '#dcdfe6'
|
||||
}
|
||||
|
||||
}
|
||||
46
uview-plus/components/u-divider/props.js
Normal file
46
uview-plus/components/u-divider/props.js
Normal file
@@ -0,0 +1,46 @@
|
||||
import { defineMixin } from '../../libs/vue'
|
||||
import defProps from '../../libs/config/props.js'
|
||||
export const props = defineMixin({
|
||||
props: {
|
||||
// 是否虚线
|
||||
dashed: {
|
||||
type: Boolean,
|
||||
default: () => defProps.divider.dashed
|
||||
},
|
||||
// 是否细线
|
||||
hairline: {
|
||||
type: Boolean,
|
||||
default: () => defProps.divider.hairline
|
||||
},
|
||||
// 是否以点替代文字,优先于text字段起作用
|
||||
dot: {
|
||||
type: Boolean,
|
||||
default: () => defProps.divider.dot
|
||||
},
|
||||
// 内容文本的位置,left-左边,center-中间,right-右边
|
||||
textPosition: {
|
||||
type: String,
|
||||
default: () => defProps.divider.textPosition
|
||||
},
|
||||
// 文本内容
|
||||
text: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.divider.text
|
||||
},
|
||||
// 文本大小
|
||||
textSize: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.divider.textSize
|
||||
},
|
||||
// 文本颜色
|
||||
textColor: {
|
||||
type: String,
|
||||
default: () => defProps.divider.textColor
|
||||
},
|
||||
// 线条颜色
|
||||
lineColor: {
|
||||
type: String,
|
||||
default: () => defProps.divider.lineColor
|
||||
}
|
||||
}
|
||||
})
|
||||
121
uview-plus/components/u-divider/u-divider.vue
Normal file
121
uview-plus/components/u-divider/u-divider.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user