1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<div id="case-edit">
<div class="operation-btn">
<div>取消</div>
<div>预览</div>
<div>发布</div>
</div>
<input class="title" type="text" placeholder="请输入标题" />
<quill-editor ref="editor" :options="editorOption" @change="onEditorChange($event)"></quill-editor>
</div>
</template>
<script>
import quillEditor from "@/components/quill";
export default {
name: "case-edit",
components: {
quillEditor
},
data() {
return {
editorOption: {
placeholder: '请输入内容',
modules: {
toolBar: {
}
}
}
};
}
};
</script>
<style lang="scss">
#case-edit {
.operation-btn {
display: flex;
justify-content: space-between;
width: 100%;
padding: 14px;
font-size: 18px;
}
.title {
margin: 10px;
border-left: none;
border-top: none;
border-right: none;
border-bottom: 0.5px solid #000;
font-size: 18px;
}
}
</style>