File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue2-ace-bind" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"description" : " A simple vuejs 2 binding for ace-edit" ,
5
5
"main" : " vue2-ace.js" ,
6
6
"scripts" : {
22
22
},
23
23
"homepage" : " https://github.com/leozhang2018/vue2-ace-bind#readme" ,
24
24
"dependencies" : {
25
- "brace" : " ^0.11.1" ,
26
- "emmet" : " 1.6.3"
25
+ "brace" : " ^0.11.1"
27
26
}
28
27
}
Original file line number Diff line number Diff line change 1
1
var ace = require ( 'brace' ) ;
2
2
3
- require ( [ 'emmet/emmet' ] , function ( data ) {
4
- window . emmet = data . emmet ;
5
- } ) ;
6
-
7
3
module . exports = {
8
4
template : "<div :style=\"{height: height ? px(height) : '100%',width: width ? px(width) : '100%'}\"></div>" ,
9
5
props : {
@@ -44,7 +40,6 @@ module.exports = {
44
40
var vm = this ;
45
41
var lang = this . lang || 'sh' ;
46
42
var theme = this . theme || 'terminal' ;
47
- require ( 'brace/ext/emmet' ) ;
48
43
var editor = vm . editor = ace . edit ( this . $el ) ;
49
44
this . $emit ( 'init' , editor ) ;
50
45
You can’t perform that action at this time.
0 commit comments