index.vue 561 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <a-form-item>
  3. <a-radio-group v-decorator="decorator">
  4. <a-radio-button
  5. v-for="(item, key) in resourceTypesMap"
  6. :value="key"
  7. :key="key">{{ item.label }}</a-radio-button>
  8. </a-radio-group>
  9. </a-form-item>
  10. </template>
  11. <script>
  12. import { RESOURCE_TYPES_MAP } from '@Compute/constants'
  13. export default {
  14. name: 'Resource',
  15. props: {
  16. decorator: {
  17. type: Array,
  18. required: true,
  19. },
  20. },
  21. data () {
  22. return {
  23. resourceTypesMap: RESOURCE_TYPES_MAP,
  24. }
  25. },
  26. }
  27. </script>
  28. <style>
  29. </style>