界面显示优化
This commit is contained in:
@@ -150,10 +150,11 @@ export class Data_Source_Show extends enhance.Base {
|
||||
style.base_station_show = e.target.checked;
|
||||
refresh();
|
||||
}}>展示基站</Checkbox>
|
||||
{mode === "map3d" && <Checkbox checked={style.constant_screen_size} onChange={(e: CheckboxChangeEvent) => {
|
||||
style.constant_screen_size = e.target.checked;
|
||||
refresh();
|
||||
}}>固定视觉大小</Checkbox>}
|
||||
{mode === "map3d" &&
|
||||
<Checkbox checked={style.constant_screen_size} onChange={(e: CheckboxChangeEvent) => {
|
||||
style.constant_screen_size = e.target.checked;
|
||||
refresh();
|
||||
}}>固定视觉大小</Checkbox>}
|
||||
</Space>
|
||||
<Space wrap>
|
||||
<Checkbox checked={style.show_icao} onChange={(e: CheckboxChangeEvent) => {
|
||||
@@ -292,16 +293,14 @@ export class Data_Source_Show extends enhance.Base {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Space direction="vertical" style={{marginTop: 8}}>
|
||||
<Text strong>位置导航</Text>
|
||||
<Space style={{marginTop: 8}}>
|
||||
<Button onClick={() => {
|
||||
ds.locate_base_station();
|
||||
}}>回到基站</Button>
|
||||
<Button onClick={() => this.locate_current_aircraft(ds)}
|
||||
disabled={!this.current_aircraft(ds)}>回到当前飞机</Button>
|
||||
</Space>
|
||||
</div>
|
||||
<Button onClick={() => {
|
||||
ds.locate_base_station();
|
||||
}}>回到基站</Button>
|
||||
<Button onClick={() => this.locate_current_aircraft(ds)}
|
||||
disabled={!this.current_aircraft(ds)}>回到当前飞机</Button>
|
||||
</Space>
|
||||
</Space>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user