1
This commit is contained in:
19
uview-plus/components/u-line-progress/lineProgress.js
Normal file
19
uview-plus/components/u-line-progress/lineProgress.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 17:14:11
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
|
||||
*/
|
||||
export default {
|
||||
// lineProgress 组件
|
||||
lineProgress: {
|
||||
activeColor: '#19be6b',
|
||||
inactiveColor: '#ececec',
|
||||
percentage: 0,
|
||||
showText: true,
|
||||
height: 12
|
||||
}
|
||||
}
|
||||
30
uview-plus/components/u-line-progress/props.js
Normal file
30
uview-plus/components/u-line-progress/props.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import { defineMixin } from '../../libs/vue'
|
||||
import defProps from '../../libs/config/props.js'
|
||||
export const props = defineMixin({
|
||||
props: {
|
||||
// 激活部分的颜色
|
||||
activeColor: {
|
||||
type: String,
|
||||
default: () => defProps.lineProgress.activeColor
|
||||
},
|
||||
inactiveColor: {
|
||||
type: String,
|
||||
default: () => defProps.lineProgress.color
|
||||
},
|
||||
// 进度百分比,数值
|
||||
percentage: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.lineProgress.inactiveColor
|
||||
},
|
||||
// 是否在进度条内部显示百分比的值
|
||||
showText: {
|
||||
type: Boolean,
|
||||
default: () => defProps.lineProgress.showText
|
||||
},
|
||||
// 进度条的高度,单位px
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.lineProgress.height
|
||||
}
|
||||
}
|
||||
})
|
||||
149
uview-plus/components/u-line-progress/u-line-progress.vue
Normal file
149
uview-plus/components/u-line-progress/u-line-progress.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user