光伏功能逻辑代码及BUG修改
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svgBoxss" style="height: 100%;width: 100%;"
|
||||
viewBox="0 0 1280 1680">
|
||||
viewBox="0 0 1280 1680" ref="svgBoxss">
|
||||
|
||||
<path d="M 1092,93L 1080,93L 1080,94L 1092,94Z" style="fill:rgb(0,128,0);" />
|
||||
<path d="M 173,854L 174,853L 174,851L 174.5,848L 175,847L 175,846L 174,843L 168,843L 168,853L 170,854Z"
|
||||
@ -1209,7 +1209,7 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
document.getElementById('svgBoxss')?.appendChild(this.createSvgText(this.tags))
|
||||
this.$refs.svgBoxss?.appendChild(this.createSvgText(this.tags))
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<svg style="width:100%; height:100%;" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" id="svgBox" viewBox="0 0 1280 1360">
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" id="svgBox" ref="svgBox" viewBox="0 0 1280 1360">
|
||||
|
||||
<!-- 图片相关,不用管 -->
|
||||
<path
|
||||
@ -562,9 +562,8 @@
|
||||
<!-- <circle cx="573" cy="500" r="16" fill="#58D86B" /> -->
|
||||
<circle class="anim-topright anim-boxele" cx="573" cy="500" r="16" fill="#58D86B" />
|
||||
<!-- 动画元素 -->
|
||||
<circle id="myCircle" cx="280" cy="67" r="15" fill="#0DA17D">
|
||||
<animate attributeName="cx" from="280" to="1000" dur="3000ms" fill="freeze" repeatCount="indefinite" />
|
||||
</circle>
|
||||
<circle class="myCircle" cx="280" cy="67" r="15" fill="#0DA17D"/>
|
||||
|
||||
</svg>
|
||||
</view>
|
||||
|
||||
@ -664,7 +663,7 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
document.getElementById('svgBox')?.appendChild(this.createSvgText(this.tags))
|
||||
this.$refs.svgBox?.appendChild(this.createSvgText(this.tags))
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@ -674,6 +673,24 @@
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 40px;
|
||||
fill: #7F7F7F;
|
||||
}
|
||||
.myCircle {
|
||||
r: 15;
|
||||
fill: #0DA17D;
|
||||
animation: moveRight 3s linear 0s infinite both;
|
||||
}
|
||||
/* 关键帧:定义运动轨迹(向右→向下→复位) */
|
||||
@keyframes moveRight {
|
||||
/* 0%:初始位置(cx=280, cy=67) */
|
||||
0% {
|
||||
cx: 280;
|
||||
cy: 67;
|
||||
}
|
||||
/* 100%:瞬间复位(避免卡顿) */
|
||||
100% {
|
||||
cx: 1000;
|
||||
cy: 67;
|
||||
}
|
||||
}
|
||||
/* 通用动画点样式 */
|
||||
.anim-pv1 {
|
||||
|
||||
1171
pages/tabbar/components/topology/pv2first.vue
Normal file
1171
pages/tabbar/components/topology/pv2first.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user