caseEdit.vue 995 Bytes
Newer Older
1 2 3 4 5 6 7
<template>
  <div id="case-edit">
    <div class="operation-btn">
      <div>取消</div>
      <div>预览</div>
      <div>发布</div>
    </div>
leiqingsong's avatar
leiqingsong committed
8 9
    <input class="title" type="text" placeholder="请输入标题" />
    <quill-editor ref="editor" :options="editorOption" @change="onEditorChange($event)"></quill-editor>
10 11 12 13
  </div>
</template>

<script>
leiqingsong's avatar
leiqingsong committed
14
import quillEditor from "@/components/quill";
15
export default {
leiqingsong's avatar
leiqingsong committed
16 17 18 19
  name: "case-edit",
  components: {
    quillEditor
  },
20 21
  data() {
    return {
leiqingsong's avatar
leiqingsong committed
22 23 24 25 26 27 28 29
      editorOption: {
        placeholder: '请输入内容',
        modules: {
          toolBar: {
          }
        }
      }
    };
30
  }
leiqingsong's avatar
leiqingsong committed
31
};
32 33 34 35 36 37 38 39 40 41 42
</script>

<style lang="scss">
#case-edit {
  .operation-btn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px;
    font-size: 18px;
  }
leiqingsong's avatar
leiqingsong committed
43 44 45 46 47 48 49 50
  .title {
    margin: 10px;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 0.5px solid #000;
    font-size: 18px;
  }
51 52
}
</style>