File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
src/components/SlideoutPanel Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 3
3
const options = require ( './options' ) ;
4
4
const autoprefixer = require ( 'autoprefixer' ) ;
5
5
const VueLoaderPlugin = require ( 'vue-loader/lib/plugin' ) ;
6
+ // const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
6
7
7
8
module . exports = {
8
9
resolve : {
@@ -44,6 +45,7 @@ module.exports = {
44
45
]
45
46
} ,
46
47
plugins : [
47
- new VueLoaderPlugin ( ) ,
48
+ new VueLoaderPlugin ( )
49
+ // new BundleAnalyzerPlugin()
48
50
]
49
51
} ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ <h2 class="project-tagline">
15
15
< a href ="https://github.com/officert/vue-slideout-panel/tarball/master " class ="btn "> Download .tar.gz</ a >
16
16
</ div >
17
17
< div class ="demo-btn ">
18
- < button class ="btn btn-xl " v-on: click.prevent ="showPanel3 ">
18
+ < button class ="btn btn-xl " @ click.prevent ="showPanel3 ">
19
19
Demo
20
20
</ button >
21
21
</ div >
@@ -71,7 +71,7 @@ <h2>Examples</h2>
71
71
< input class ="form-control " v-model ="example1Form.name " />
72
72
</ div >
73
73
</ form >
74
- < button v-on: click.prevent ="showPanel1 ">
74
+ < button @ click.prevent ="showPanel1 ">
75
75
Show Panel
76
76
</ button >
77
77
< div class ="result ">
@@ -87,7 +87,7 @@ <h2>Examples</h2>
87
87
< input class ="form-control " v-model ="example1Form.name " />
88
88
</ div >
89
89
</ form >
90
- < button v-on: click.prevent ="showPanel2 ">
90
+ < button @ click.prevent ="showPanel2 ">
91
91
Show Panel
92
92
</ button >
93
93
</ div >
Original file line number Diff line number Diff line change 64
64
"vue-style-loader" : " ^4.1.2" ,
65
65
"vue-template-compiler" : " ^2.5.22" ,
66
66
"webpack" : " ^4.28.4" ,
67
+ "webpack-bundle-analyzer" : " ^3.3.2" ,
67
68
"webpack-cli" : " ^3.2.1" ,
68
69
"webpack-dev-server" : " ^3.1.14" ,
69
70
"webpack-merge" : " ^4.2.1" ,
Original file line number Diff line number Diff line change @@ -171,11 +171,15 @@ const vm = {
171
171
172
172
if (currentPanel .disableBgClick ) return ;
173
173
174
- this .closeCurrentPanel ();
174
+ this .closeCurrentPanel ({
175
+ closedBy: ' bg'
176
+ });
175
177
},
176
178
onEscapeKeypress (e ) {
177
179
if (e .keyCode === 27 ) {
178
- this .closeCurrentPanel ();
180
+ this .closeCurrentPanel ({
181
+ closedBy: ' esc'
182
+ });
179
183
}
180
184
}
181
185
},
You can’t perform that action at this time.
0 commit comments