You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
670 B

4 years ago
  1. <template>
  2. <base-card
  3. title="Annotation Guideline"
  4. cancel-text="Close"
  5. @cancel="close"
  6. >
  7. <template #content>
  8. <viewer
  9. :value="guidelineText"
  10. />
  11. </template>
  12. </base-card>
  13. </template>
  14. <script>
  15. import 'tui-editor/dist/tui-editor-contents.css'
  16. import 'highlight.js/styles/github.css'
  17. import { Viewer } from '@toast-ui/vue-editor'
  18. import BaseCard from '@/components/molecules/BaseCard'
  19. export default {
  20. components: {
  21. Viewer,
  22. BaseCard
  23. },
  24. props: {
  25. guidelineText: {
  26. type: String,
  27. default: '',
  28. required: true
  29. }
  30. },
  31. methods: {
  32. close() {
  33. this.$emit('close')
  34. }
  35. }
  36. }
  37. </script>