jp-radio-group.vue 392 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view>
  3. <radio-group @change="radioChange">
  4. <slot></slot>
  5. </radio-group>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. };
  13. },
  14. props: {
  15. value: String,
  16. disabled: {
  17. type: Boolean,
  18. default: false
  19. }
  20. },
  21. methods:{
  22. radioChange (evt) {
  23. this.$emit('input', evt.detail.value)
  24. }
  25. }
  26. }
  27. </script>
  28. <style>
  29. </style>