File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 7
7
var CodeMirrorMetas = require (' ./metas.js' )
8
8
require (' codemirror/lib/codemirror.css' )
9
9
// var
10
- function makeMarker () {
11
- var marker = document .createElement (" div" );
12
- marker .style .color = " #822" ;
13
- marker .innerHTML = " ●" ;
14
- return marker;
15
- }
16
10
export default {
17
11
data : function () {
18
12
return {
29
23
styleActiveLine: true ,
30
24
lineNumbers: true ,
31
25
mode: ' text/javascript' ,
32
- lineWrapping: true ,
33
- gutters: [" CodeMirror-linenumbers" , " breakpoints" ]
26
+ lineWrapping: true
34
27
}
35
28
}
36
29
},
90
83
_this .$emit (' input' , _this .content )
91
84
}
92
85
})
93
- this .editor .on (" gutterClick" , function (cm , n ) {
94
- var info = cm .lineInfo (n);
95
- cm .setGutterMarker (n, " breakpoints" , info .gutterMarkers ? null : makeMarker ())
96
- console .log (cm .lineInfo (n))
97
- })
98
86
},
99
87
watch: {
100
88
' code ' : function (newVal , oldVal ) {
You can’t perform that action at this time.
0 commit comments