xm-solid-radio-render.vue 576 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <a-radio-group
  3. v-model="$attrs.value"
  4. button-style="solid"
  5. @change="(e) => $emit('input', e.target.value)"
  6. >
  7. <a-radio-button v-for="(item, index) in $attrs.options" :key="index" :value="item.value">
  8. {{ item.label }}
  9. </a-radio-button>
  10. </a-radio-group>
  11. </template>
  12. <script>
  13. import components from './_import-components/xm-solid-radio-render-import'
  14. export default {
  15. name: 'XmSolidRadioRender',
  16. components,
  17. data() {
  18. return {}
  19. },
  20. methods: {},
  21. }
  22. </script>
  23. <style module lang="scss">
  24. @use '@/common/design' as *;
  25. </style>