This repository was archived by the owner on Apr 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Original file line number Diff line number Diff line change 3
3
</template >
4
4
<script >
5
5
import Editor from " tui-editor" ;
6
-
7
6
import editorEvents from " ./editorEvents" ;
8
- import editorDefaultOptions from " ./editorDefaultOptions" ;
9
7
import valueUpdateMethod from " ./valueUpdateMethod" ;
10
8
11
9
export default {
12
10
name: " TuiEditor" ,
13
11
props: {
14
12
previewStyle: {
15
- type: String ,
16
- default: " tab"
13
+ type: String
17
14
},
18
15
height: {
19
- type: String ,
20
- default: " 300px"
16
+ type: String
21
17
},
22
18
value: {
23
- type: String ,
24
- default: " "
19
+ type: String
25
20
},
26
21
mode: {
27
- type: String ,
28
- default: " markdown"
22
+ type: String
29
23
},
30
24
options: {
31
- type: Object ,
32
- default () {
33
- return editorDefaultOptions;
34
- }
25
+ type: Object
35
26
},
36
27
html: {
37
28
type: String
@@ -48,7 +39,7 @@ export default {
48
39
},
49
40
computed: {
50
41
editorOptions () {
51
- const options = Object .assign ({}, editorDefaultOptions, this .options );
42
+ const options = Object .assign ({}, this .options );
52
43
options .initialValue = this .value ;
53
44
options .initialEditType = this .mode ;
54
45
options .height = this .height ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments