englishRight.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="englishBox">
  3. <div class="themeTitle">
  4. <div>作文题目<span style="color: red;">*</span></div>
  5. <div>
  6. <el-input
  7. v-model="engList.engTitle"
  8. placeholder="请填写作文题目"
  9. @change="setEngList"
  10. ></el-input>
  11. </div>
  12. </div>
  13. <div class="themeText">
  14. <div>作文要求<span style="color: red;">*</span></div>
  15. <div>
  16. <editor-bar
  17. placeholder="请填写作文要求"
  18. v-model="engList.englishText"
  19. @change="setEngList"
  20. ></editor-bar>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import EditorBar from "../../../../components/tools/wangEnduit";
  27. export default {
  28. components: {
  29. EditorBar,
  30. },
  31. props: ["englishList"],
  32. data() {
  33. return {
  34. engList: {
  35. engTitle: "",
  36. englishText: "",
  37. },
  38. };
  39. },
  40. methods: {
  41. setEngList() {
  42. this.$emit("setEnglish", this.engList);
  43. },
  44. },
  45. created() {
  46. this.engList = this.englishList;
  47. },
  48. };
  49. </script>
  50. <style scoped>
  51. .englishBox {
  52. width: 50%;
  53. margin: 50px auto 0;
  54. }
  55. .themeTitle {
  56. display: flex;
  57. flex-direction: row;
  58. flex-wrap: nowrap;
  59. align-items: center;
  60. }
  61. .themeTitle > div:first-child {
  62. min-width: 65px;
  63. font-weight: bold;
  64. }
  65. .themeTitle > div:last-child {
  66. width: calc(100% - 75px);
  67. margin-left: 10px;
  68. }
  69. .themeText {
  70. display: flex;
  71. flex-direction: row;
  72. flex-wrap: nowrap;
  73. align-items: flex-start;
  74. margin-top: 20px;
  75. }
  76. .themeText > div:first-child {
  77. min-width: 65px;
  78. margin-top: 10px;
  79. font-weight: bold;
  80. }
  81. .themeText > div:last-child {
  82. width: calc(100% - 75px);
  83. margin-left: 10px;
  84. }
  85. .themeText > div:last-child >>> .text {
  86. min-height: 400px !important;
  87. }
  88. </style>