DiKongGanZhiPingTai/src/views/demo/workmanagement/workplan/actionComponents/gimbalRotate.vue

65 lines
1.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div class="params-item">
<div class="params-label">俯仰角度</div>
<div class="params-value">
<a-slider
v-model:value="props.params.gimbalPitchRotateAngle"
:min="-90" :max="30" :step="0.01"
@change="paramChagne"
/>
</div>
<div class="params-value-text">
{{ props.params.gimbalPitchRotateAngle }} °
</div>
</div>
</template>
<script lang="ts" setup>
import {defineProps,defineComponent,defineOptions} from 'vue';
const props = defineProps(["params","info"])
const emits = defineEmits(["paramChagne"])
defineComponent({
name: 'gimbalRotate'
})
const paramChagne = ()=> {
emits("paramChagne",props.info);
}
</script>
<style scoped>
.params-item{
width:100%;
display: flex;
gap:20px;
}
.params-item .params-label{
line-height:30px;
}
.params-item .params-value{
flex:1;
}
.params-item .params-value-text{
line-height:30px;
}
::v-deep .ant-input-number{
color:#fff!important;
background:#3F4150!important;
border:0px !important;
}
::v-deep .ant-input-number-input{
color:#fff!important;
border:0px !important;
}
</style>