uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改
This commit is contained in:
@@ -14,6 +14,7 @@ export default {
|
||||
inactiveColor: '#ececec',
|
||||
percentage: 0,
|
||||
showText: true,
|
||||
height: 12
|
||||
height: 12,
|
||||
fromRight: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,11 @@ export const props = defineMixin({
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.lineProgress.height
|
||||
},
|
||||
// 是否从右往左加载
|
||||
fromRight: {
|
||||
type: Boolean,
|
||||
default: () => defProps.lineProgress.fromRight
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -62,6 +62,11 @@
|
||||
style.width = this.lineWidth
|
||||
style.backgroundColor = this.activeColor
|
||||
style.height = addUnit(this.height)
|
||||
if (this.fromRight) {
|
||||
style.right = 0;
|
||||
} else {
|
||||
style.left = 0;
|
||||
}
|
||||
return style
|
||||
},
|
||||
innserPercentage() {
|
||||
@@ -108,7 +113,6 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "../../libs/css/components.scss";
|
||||
|
||||
.u-line-progress {
|
||||
align-items: stretch;
|
||||
@@ -127,7 +131,6 @@
|
||||
&__line {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
align-items: center;
|
||||
@include flex(row);
|
||||
|
||||
Reference in New Issue
Block a user