@lvce-editor/settings-view 2.27.1 → 2.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2745,10 +2745,7 @@ const getUpdatedTabs = (tabs, selectedTabId) => {
|
|
|
2745
2745
|
}));
|
|
2746
2746
|
};
|
|
2747
2747
|
|
|
2748
|
-
const handleClickTab = (state, name) => {
|
|
2749
|
-
if (!name) {
|
|
2750
|
-
return state;
|
|
2751
|
-
}
|
|
2748
|
+
const handleClickTab = (state, name = '') => {
|
|
2752
2749
|
const {
|
|
2753
2750
|
height,
|
|
2754
2751
|
itemHeight,
|
|
@@ -3841,7 +3838,6 @@ const getSettingsTabsDom = tabs => {
|
|
|
3841
3838
|
return [{
|
|
3842
3839
|
childCount: tabs.length,
|
|
3843
3840
|
className: SettingsTabs,
|
|
3844
|
-
onClick: HandleClickTab,
|
|
3845
3841
|
role: TabList,
|
|
3846
3842
|
type: Ul
|
|
3847
3843
|
}, ...tabs.flatMap(getTabVirtualDom)];
|
|
@@ -3850,6 +3846,7 @@ const getSettingsTabsDom = tabs => {
|
|
|
3850
3846
|
const settingsSideBarNode = {
|
|
3851
3847
|
childCount: 1,
|
|
3852
3848
|
className: SettingsSideBar,
|
|
3849
|
+
onClick: HandleClickTab,
|
|
3853
3850
|
type: Aside
|
|
3854
3851
|
};
|
|
3855
3852
|
const getSettingsSideBarDom = tabs => {
|