File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed
Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1+ # Editor configuration, see https://editorconfig.org
2+ [* ]
3+ charset = utf-8
4+ end_of_line = lf
5+ indent_style = space
6+ indent_size = 2
Original file line number Diff line number Diff line change 1+ {
2+ "printWidth": 120,
3+ "singleQuote": true,
4+ "quoteProps": "consistent"
5+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " popover-plugin" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " A javascript plugin for popover" ,
55 "scripts" : {
66 "start" : " webpack --mode development --watch" ,
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ export class PopoverComponent {
277277 $ele . popComp = this ;
278278 $ele . show = PopoverComponent . showMethod ;
279279 $ele . hide = PopoverComponent . hideMethod ;
280+ $ele . updatePosition = PopoverComponent . updatePositionMethod ;
280281
281282 DomUtils . addClass ( this . $ele , 'pop-comp-ele' ) ;
282283 DomUtils . addClass ( this . $popover , 'pop-comp-wrapper' ) ;
@@ -491,11 +492,15 @@ export class PopoverComponent {
491492 }
492493
493494 static showMethod ( ) {
494- return this . popComp . show ( ) ;
495+ this . popComp . show ( ) ;
495496 }
496497
497498 static hideMethod ( ) {
498- return this . popComp . hide ( ) ;
499+ this . popComp . hide ( ) ;
500+ }
501+
502+ static updatePositionMethod ( ) {
503+ this . popComp . popper . updatePosition ( ) ;
499504 }
500505 /** static methods - end */
501506}
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ const webpack = require('webpack');
33const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
44const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
55const FileManagerPlugin = require ( 'filemanager-webpack-plugin' ) ;
6+ const { version } = require ( './package.json' ) ;
67
7- const banner = `Popover v1.0.6
8+ const banner = `Popover v ${ version }
89https://sa-si-dev.github.io/popover
910Licensed under MIT (https://github.com/sa-si-dev/popover/blob/master/LICENSE)` ;
1011
You can’t perform that action at this time.
0 commit comments