Showing
1 changed file
with
7 additions
and
43 deletions
| ... | ... | @@ -81,6 +81,7 @@ |
| 81 | 81 | |
| 82 | 82 | //type 1:上 2:右 3:下 4:左 5:暂停 |
| 83 | 83 | const handleClick = (type: number) => { |
| 84 | + console.log(type, 'type'); | |
| 84 | 85 | if (type == 5) { |
| 85 | 86 | // if (unref(isPlay)) { |
| 86 | 87 | // unref(videoPlayInstance)?.play(); |
| ... | ... | @@ -130,11 +131,6 @@ |
| 130 | 131 | <h1>云台控制</h1> |
| 131 | 132 | |
| 132 | 133 | <div class="home mt-5"> |
| 133 | - <CaretUpOutlined class="front-sty-top child-icon" @click="handleClick(1)" /> | |
| 134 | - <CaretRightOutlined class="front-sty-right child-icon" @click="handleClick(2)" /> | |
| 135 | - <CaretDownOutlined class="front-sty-bottom child-icon" @click="handleClick(4)" /> | |
| 136 | - <CaretLeftOutlined class="front-sty-left child-icon" @click="handleClick(3)" /> | |
| 137 | - | |
| 138 | 134 | <Button class="front-sty-center child center" shape="circle" @click="handleClick(5)"> |
| 139 | 135 | <!-- 暂停 --> |
| 140 | 136 | <PauseOutlined v-if="!isPlay" class="child-icon" style="color: #fffbfb" /> |
| ... | ... | @@ -145,18 +141,18 @@ |
| 145 | 141 | <div class="box"> |
| 146 | 142 | <div> |
| 147 | 143 | <Button class="left-top in-block" @click="handleClick(1)"> |
| 148 | - <i> 上</i> | |
| 144 | + <CaretUpOutlined class="icon-rotate child-icon" @click="handleClick(1)" /> | |
| 149 | 145 | </Button> |
| 150 | 146 | <Button class="right-top in-block" @click="handleClick(2)"> |
| 151 | - <i> 右</i> | |
| 147 | + <CaretRightOutlined class="icon-rotate child-icon" @click="handleClick(2)" /> | |
| 152 | 148 | </Button> |
| 153 | 149 | </div> |
| 154 | 150 | <div> |
| 155 | 151 | <Button class="left-bottom in-block" @click="handleClick(3)"> |
| 156 | - <i> 左</i> | |
| 152 | + <CaretLeftOutlined class="icon-rotate child-icon" @click="handleClick(3)" /> | |
| 157 | 153 | </Button> |
| 158 | 154 | <Button class="right-bottom in-block" @click="handleClick(4)"> |
| 159 | - <i> 下</i> | |
| 155 | + <CaretDownOutlined class="icon-rotate child-icon" @click="handleClick(4)" /> | |
| 160 | 156 | </Button> |
| 161 | 157 | </div> |
| 162 | 158 | |
| ... | ... | @@ -231,40 +227,8 @@ |
| 231 | 227 | height: 10rem; |
| 232 | 228 | } |
| 233 | 229 | |
| 234 | - .box i { | |
| 235 | - visibility: collapse; | |
| 236 | - } | |
| 237 | - | |
| 238 | - .front-sty-top { | |
| 239 | - position: absolute; | |
| 240 | - top: 1rem; | |
| 241 | - z-index: 9999; | |
| 242 | - left: 50%; | |
| 243 | - transform: translate(-50%); | |
| 244 | - } | |
| 245 | - | |
| 246 | - .front-sty-bottom { | |
| 247 | - position: absolute; | |
| 248 | - bottom: 1rem; | |
| 249 | - z-index: 9999; | |
| 250 | - left: 50%; | |
| 251 | - transform: translate(-50%); | |
| 252 | - } | |
| 253 | - | |
| 254 | - .front-sty-right { | |
| 255 | - position: absolute; | |
| 256 | - top: 50%; | |
| 257 | - z-index: 9999; | |
| 258 | - right: 1rem; | |
| 259 | - transform: translateY(-50%); | |
| 260 | - } | |
| 261 | - | |
| 262 | - .front-sty-left { | |
| 263 | - position: absolute; | |
| 264 | - top: 50%; | |
| 265 | - z-index: 9999; | |
| 266 | - left: 1rem; | |
| 267 | - transform: translateY(-50%); | |
| 230 | + .icon-rotate { | |
| 231 | + transform: rotate(315deg); | |
| 268 | 232 | } |
| 269 | 233 | |
| 270 | 234 | .front-sty-center { | ... | ... |