<!-- 
 * @description: 
 * @fileName: index.vue 
 * @author: lh 
 * @date: 2021-08-05 19:11:55 
 * @后台人员:  
 * @path:  
 * @version: V1.0.5 
!-->
<template>
  <div class="page-container">
      <div class="button-item">
          <p>Radio 01</p>
          <el-rrf-radio v-model="radio1" label="1" @change="radioChange">已选</el-rrf-radio>
          <el-rrf-radio v-model="radio1" label="2">未选</el-rrf-radio>
          <el-rrf-radio v-model="radio2" label="1" disabled>已选-禁用</el-rrf-radio>
          <el-rrf-radio v-model="radio2" label="2" disabled>未选-禁用</el-rrf-radio>
      </div>
      <div class-rrfass="button-item" style="padding-left:50px;">
          <el-rrf-radio v-model="radio5" label="1" border>已选</el-rrf-radio>
          <el-rrf-radio v-model="radio5" label="2" border>未选</el-rrf-radio>
          <el-rrf-radio v-model="radio4" label="1" disabled border>已选-禁用</el-rrf-radio>
          <el-rrf-radio v-model="radio4" label="2" disabled border>未选-禁用</el-rrf-radio>
      </div>
      <div class="button-item" style="padding-left:30px;">
          <el-rrf-radio-group v-model="radio3" @change="groupChange">
            <el-rrf-radio-button label="上海"></el-rrf-radio-button>
            <el-rrf-radio-button label="北京"></el-rrf-radio-button>
            <el-rrf-radio-button label="广州"></el-rrf-radio-button>
            <el-rrf-radio-button label="深圳"></el-rrf-radio-button>
         </el-rrf-radio-group>
      </div>
  </div>
</template>

<script>
import ElRrfRadio from "pkgs/RfRadio/src";
import ElRrfRadioButton from "pkgs/RfRadioButton/src";
import ElRrfRadioGroup from "pkgs/RfRadioGroup/src";
export default {
    components: {
        ElRrfRadio,
        ElRrfRadioButton,
        ElRrfRadioGroup
    },
    data() {
        return {
            radio1: "1",
            radio2: "1",
            radio4: "1",
            radio5: "1",
            radio3: "上海"
        }
    },
    methods: {
        radioChange(e) {
            console.log("e========",e)
        },
        groupChange(e) {
            console.log("e2======",e)
        }
    }
}
</script>

<style lang="css" scoped>
    .page-container{
        display: flex;
        flex-direction: column;
    }
    .page-container .button-item{
        margin: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
</style>