为星位视图添加颜色
parent
7045f10960
commit
a2413e104f
|
@ -22,13 +22,17 @@ use([
|
|||
]);
|
||||
|
||||
const props = defineProps({
|
||||
title: String
|
||||
title: String,
|
||||
color: String
|
||||
})
|
||||
|
||||
const option = reactive({
|
||||
title: {
|
||||
text: props.title,
|
||||
left: 'center'
|
||||
left: 'center',
|
||||
textStyle: {
|
||||
color: 'white'
|
||||
}
|
||||
},
|
||||
polar: {
|
||||
radius: '72%'
|
||||
|
@ -77,8 +81,8 @@ const option = reactive({
|
|||
formatter: '{@[2]}'
|
||||
},
|
||||
itemStyle: {
|
||||
color: '#9ca3af'
|
||||
}
|
||||
color: props.color
|
||||
},
|
||||
}, {
|
||||
nmea: 'in-positioning',
|
||||
coordinateSystem: 'polar',
|
||||
|
@ -89,8 +93,8 @@ const option = reactive({
|
|||
formatter: '{@[2]}'
|
||||
},
|
||||
itemStyle: {
|
||||
color: '#e5323e'
|
||||
}
|
||||
color: props.color
|
||||
},
|
||||
}]
|
||||
})
|
||||
|
||||
|
|
|
@ -4,16 +4,16 @@
|
|||
|
||||
<div class="main-content flex-1 grid grid-cols-2 grid-rows-2">
|
||||
<div>
|
||||
<PlanisphereView ref="BDPlanisphereView" title="北斗" />
|
||||
<PlanisphereView ref="BDPlanisphereView" color="rgb(0,204,255)" title="北斗" />
|
||||
</div>
|
||||
<div>
|
||||
<PlanisphereView ref="GPPlanisphereView" title="GPS" />
|
||||
<PlanisphereView ref="GPPlanisphereView" color="rgb(255,255,0)" title="GPS" />
|
||||
</div>
|
||||
<div>
|
||||
<PlanisphereView ref="GLPlanisphereView" title="格洛纳斯" />
|
||||
<PlanisphereView ref="GLPlanisphereView" color="rgb(102,0,255)" title="格洛纳斯" />
|
||||
</div>
|
||||
<div>
|
||||
<PlanisphereView ref="GAPlanisphereView" title="伽利略" />
|
||||
<PlanisphereView ref="GAPlanisphereView" color="rgb(0,204,102)" title="伽利略" />
|
||||
</div>
|
||||
</div>
|
||||
</full-screen-container>
|
||||
|
|
Loading…
Reference in New Issue