新增样式组件-流光直线

chenxg 1 year ago
parent 8a484723d5
commit 93c5781397

@ -39,6 +39,14 @@ export const widgetDecorateFlowLine = {
],
value: 'left'
},
{
type: 'el-input-number',
label: '旋转角度',
name: 'rotationAngle',
required: false,
placeholder: '',
value: '0'
},
],
// 数据
data: [],

@ -18,7 +18,8 @@ export default ({
optionsSetup: {},
direction: 'left', // : 'left' 'right'
background: 'red', //
containerWidth: '400px'
containerWidth: '400px',
rotationAngle: 0, //
}
},
props: {
@ -66,7 +67,8 @@ export default ({
height: '4px',
position: 'relative',
overflow: 'hidden',
flexDirection: this.direction === 'left' ? 'row-reverse' : 'row' //
flexDirection: this.direction === 'left' ? 'row-reverse' : 'row', //
transform: `rotate(${this.rotationAngle}deg)` //
}
},
flowingLightStyle() {
@ -85,6 +87,7 @@ export default ({
const optionsStyle = this.optionsStyle;
this.background = optionsSetup.background;
this.direction = optionsSetup.flowDirection;
this.rotationAngle = optionsSetup.rotationAngle;
this.containerWidth = optionsStyle.width;
},
}
@ -96,7 +99,7 @@ export default ({
display: flex;
justify-content: center;
align-items: center;
background: #282c34;
background: transparent;
}
.progress-bar {

Loading…
Cancel
Save