Skip to content

Commit 543ae2f

Browse files
committed
[tab] fix uninitialized data
1 parent 1d187d3 commit 543ae2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/containers/tab-item/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { _TabItemBase } from './_base';
88
})
99
export class TabItem extends _TabItemBase {
1010

11-
dataTab: string
11+
dataTab: string = ''
1212

1313
css: string = "ui tab segment"
1414

src/components/containers/tab/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class Tab extends _TabBase implements ITab {
1919
return $(this.$el).find('.item').tab('change tab', path);
2020
}
2121

22-
activeTab
22+
activeTab = undefined
2323

24-
css: string
24+
css: string = ''
2525

2626
items: any[] = []
2727

0 commit comments

Comments
 (0)