File tree Expand file tree Collapse file tree 6 files changed +9
-21
lines changed Expand file tree Collapse file tree 6 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 11
2- import useDynamicTabs from './useDynamicTabs/index .js' ;
2+ import useDynamicTabs from './useDynamicTabs/useDynamicTabs .js' ;
33export default useDynamicTabs ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- const CreateDefaultOptions = function ( fn , DefaulTabInnerComponent = null ) {
2- this . fn = fn ;
1+ const DefaultOptions = function ( DefaulTabInnerComponent = null ) {
32 this . defaultDirection = 'ltr' ;
43 this . _DefaulTabInnerComponent = DefaulTabInnerComponent ;
54 this . directionsRange = [ 'ltr' , 'rtl' ] ;
6- this . _create ( this . _getOptions ( ) ) ;
75} ;
8- CreateDefaultOptions . prototype . _create = function ( options ) {
9- this . fn . options = options ;
6+ DefaultOptions . prototype . getOptions = function ( ) {
7+ return this . _getOptions ( ) ;
108} ;
11- CreateDefaultOptions . prototype . _getOptions = function ( ) {
9+ DefaultOptions . prototype . _getOptions = function ( ) {
1210 const _options = {
1311 tabs : [ ] ,
1412 selectedTabID : '' ,
@@ -50,4 +48,4 @@ CreateDefaultOptions.prototype._getOptions = function () {
5048 } ) ;
5149 return _options ;
5250} ;
53- export default CreateDefaultOptions ;
51+ export default DefaultOptions ;
Original file line number Diff line number Diff line change 11import factory from './optionManager.factory.js' ;
2- import useDynamicTabs from '../../../useDynamicTabs/index.js' ;
2+ import DefaultTabInnerComponent from '../../../tab/defaulTabInner.js' ;
3+ import DefaultOptions from './DefaultOptions.js' ;
34const getDeps = function ( ) {
4- const globalDefaultOptions = useDynamicTabs . options ;
5+ const globalDefaultOptions = new ( DefaultOptions ) ( DefaultTabInnerComponent ) . getOptions ( ) ;
56 return { globalDefaultOptions } ;
67} ;
78export default factory . bind ( null , getDeps ) ;
You can’t perform that action at this time.
0 commit comments