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 1
1
2
- import useDynamicTabs from './useDynamicTabs/index .js' ;
2
+ import useDynamicTabs from './useDynamicTabs/useDynamicTabs .js' ;
3
3
export 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 ) {
3
2
this . defaultDirection = 'ltr' ;
4
3
this . _DefaulTabInnerComponent = DefaulTabInnerComponent ;
5
4
this . directionsRange = [ 'ltr' , 'rtl' ] ;
6
- this . _create ( this . _getOptions ( ) ) ;
7
5
} ;
8
- CreateDefaultOptions . prototype . _create = function ( options ) {
9
- this . fn . options = options ;
6
+ DefaultOptions . prototype . getOptions = function ( ) {
7
+ return this . _getOptions ( ) ;
10
8
} ;
11
- CreateDefaultOptions . prototype . _getOptions = function ( ) {
9
+ DefaultOptions . prototype . _getOptions = function ( ) {
12
10
const _options = {
13
11
tabs : [ ] ,
14
12
selectedTabID : '' ,
@@ -50,4 +48,4 @@ CreateDefaultOptions.prototype._getOptions = function () {
50
48
} ) ;
51
49
return _options ;
52
50
} ;
53
- export default CreateDefaultOptions ;
51
+ export default DefaultOptions ;
Original file line number Diff line number Diff line change 1
1
import 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' ;
3
4
const getDeps = function ( ) {
4
- const globalDefaultOptions = useDynamicTabs . options ;
5
+ const globalDefaultOptions = new ( DefaultOptions ) ( DefaultTabInnerComponent ) . getOptions ( ) ;
5
6
return { globalDefaultOptions } ;
6
7
} ;
7
8
export default factory . bind ( null , getDeps ) ;
You can’t perform that action at this time.
0 commit comments