Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 3b0cbb1

Browse files
author
Sohee Lee
committed
refactor: vue wrapper don't have default option
1 parent 3bc692e commit 3b0cbb1

File tree

2 files changed

+6
-45
lines changed

2 files changed

+6
-45
lines changed

src/Editor.vue

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,26 @@
33
</template>
44
<script>
55
import Editor from "tui-editor";
6-
76
import editorEvents from "./editorEvents";
8-
import editorDefaultOptions from "./editorDefaultOptions";
97
import valueUpdateMethod from "./valueUpdateMethod";
108
119
export default {
1210
name: "TuiEditor",
1311
props: {
1412
previewStyle: {
15-
type: String,
16-
default: "tab"
13+
type: String
1714
},
1815
height: {
19-
type: String,
20-
default: "300px"
16+
type: String
2117
},
2218
value: {
23-
type: String,
24-
default: ""
19+
type: String
2520
},
2621
mode: {
27-
type: String,
28-
default: "markdown"
22+
type: String
2923
},
3024
options: {
31-
type: Object,
32-
default() {
33-
return editorDefaultOptions;
34-
}
25+
type: Object
3526
},
3627
html: {
3728
type: String
@@ -48,7 +39,7 @@ export default {
4839
},
4940
computed: {
5041
editorOptions() {
51-
const options = Object.assign({}, editorDefaultOptions, this.options);
42+
const options = Object.assign({}, this.options);
5243
options.initialValue = this.value;
5344
options.initialEditType = this.mode;
5445
options.height = this.height;

src/editorDefaultOptions.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)