Servertemplate.vue 733 B

12345678910111213141516171819202122232425
  1. <template>
  2. <div>
  3. <a-divider orientation="left">{{$t('compute.text_94')}}</a-divider>
  4. <slot />
  5. <a-form-item :label="$t('compute.text_1140')" help="" :extra="$t('validator.resourceName')">
  6. <a-input v-decorator="decorators.servertemplate_name" :placeholder="$t('compute.text_220')" />
  7. </a-form-item>
  8. <a-form-item :label="$t('common.description')">
  9. <a-textarea :auto-size="{ minRows: 1, maxRows: 3 }" v-decorator="decorators.description" :placeholder="$t('common_367')" />
  10. </a-form-item>
  11. </div>
  12. </template>
  13. <script>
  14. import * as R from 'ramda'
  15. export default {
  16. props: {
  17. decorators: {
  18. type: Object,
  19. validator: val => R.is(Array, val.servertemplate_name),
  20. },
  21. },
  22. }
  23. </script>