riku
2023-10-31 1f96f089eb3546c682313d29513be04ac72e2de5
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
39
40
41
42
43
44
<template>
  <el-row class="fy-head">
    <div>
      <el-radio-group
        class="container"
        v-model="radio1"
        size="large"
        @change="onChange"
      >
        <el-radio-button
          v-for="item in radioOptions"
          :key="item.label"
          :label="item.label"
          >{{ item.name }}</el-radio-button
        >
      </el-radio-group>
    </div>
  </el-row>
</template>
 
<script>
export default {
  emits: ['onChange'],
  data() {
    return {
      radioOptions: [
        { name: '线索管理', label: 0 },
        { name: '网格管理', label: 1 }
      ],
      radio1: 0
    };
  },
  methods: {
    onChange(e) {
      this.$emit('onChange', e);
    }
  }
};
</script>
<style scoped>
.container {
  pointer-events: auto;
}
</style>