riku
2024-04-29 aef7a66e9568004d3e8bb9930db5866d82ed96c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
  <BaseCard class="map-factor-selector">
    <template #content>
      <el-radio-group v-model="radio" size="default" @change="handleChange">
        <el-radio v-for="(item, i) in options" :key="i" :value="item.value">{{
          item.label
        }}</el-radio>
      </el-radio-group>
    </template>
  </BaseCard>
</template>
 
<script>
// 监测因子单选框
import { radioOptions } from '@/constant/radio-options';
export default {
  emits:['change'],
  data() {
    return {
      radio: radioOptions.type0[0].value,
      options: radioOptions.type0
    };
  },
  method:{
    handleChange(value) {
      this.$emit('change', value)
      // todo 地图3d图像切换展示监测因子
    }
  }
};
</script>
<style scoped>
.el-radio {
  --el-radio-text-color: white;
  margin-right: 10px;
  height: initial;
}
</style>