0.0.9 • Published 6 years ago

mali-vue-radio v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

mali-vue-radio

mali-vue-radio

# install 
npm i mali-vue-radio -S
//main.js
import maVueRadio from 'mali-vue-radio'

Vue.use(maVueRadio)
<template>
  <div id="app">
    <h2>Essential Linksss</h2>
    <h2 @click="toggleRadio">showVueRadio {{radioTextVal}}</h2>
    <mali-vue-radio :isShow="isRadioPickerShow" :val="radioTextVal" title="请选择" @closeRadio="toggleRadio" @getRadioVal="getRadioVal"></mali-vue-radio> 
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      isRadioPickerShow:false,
      radioTextVal:0
    }
  },
  methods:{
    toggleRadio(){
      this.isRadioPickerShow=!this.isRadioPickerShow
    },
    getRadioVal(val){
      this.radioTextVal = val;
    }
  }
}
</script>
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago