File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed
example/basic/com/basic/service Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,45 @@ export default {
88 id : '1' ,
99 title : 'mock tab 1' ,
1010 closable : true ,
11- panelComponent : < MockPanel1 > </ MockPanel1 >
11+ disable : false ,
12+ panelComponent : MockPanel1 // or <MockPanel1></MockPanel1>
1213 } , {
1314 id : '2' ,
1415 title : 'mock tab 2' ,
15- iconClass : 'ui-icon ui-icon-seek-end' ,
16+ tooltip : 'mock tab 2' ,
17+ iconClass : 'css class for icon' ,
1618 closable : true ,
1719 panelComponent : < MockPanel2 > </ MockPanel2 >
1820 } ] ,
1921 selectedTabID : '1' ,
20- onSelect : ( switchTabsId , api ) => {
22+ onLoad : function ( ) {
23+ const context = this ;
24+ } ,
25+ onInit : function ( ) {
26+ const context = this ;
27+ } ,
28+ onChange : function ( { currentData, perviousData } ) {
29+ const context = this ;
30+ } ,
31+ beforeSelect : function ( e , id ) {
32+ const context = this ;
33+ return true ;
34+ } ,
35+ onSelect : ( { currentSelectedTabId, perviousSelectedTabId } ) => {
36+ const context = this ;
37+ } ,
38+ beforeClose : function ( e , id ) {
39+ const context = this ;
40+ return true ;
41+ } ,
42+ onClose : function ( closedTabsId ) {
43+ const context = this ;
44+ } ,
45+ onOpen : function ( openeTabsId ) {
46+ const context = this ;
47+ } ,
48+ onDestroy : function ( ) {
49+ const context = this ;
2150 }
2251 } ;
2352 }
You can’t perform that action at this time.
0 commit comments