@lvce-editor/panel-worker 1.11.0 → 1.12.0
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.
- package/dist/panelWorkerMain.js +2 -3
- package/package.json +1 -1
package/dist/panelWorkerMain.js
CHANGED
|
@@ -1650,7 +1650,7 @@ const getTabClassName = isSelected => {
|
|
|
1650
1650
|
return className;
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
|
-
const createPanelTab = (tab, badgeCount, isSelected
|
|
1653
|
+
const createPanelTab = (tab, badgeCount, isSelected) => {
|
|
1654
1654
|
const label = tab;
|
|
1655
1655
|
const className = getTabClassName(isSelected);
|
|
1656
1656
|
const childCount = badgeCount ? 2 : 1;
|
|
@@ -1658,7 +1658,6 @@ const createPanelTab = (tab, badgeCount, isSelected, index) => {
|
|
|
1658
1658
|
ariaSelected: isSelected,
|
|
1659
1659
|
childCount,
|
|
1660
1660
|
className,
|
|
1661
|
-
'data-index': index,
|
|
1662
1661
|
name: tab,
|
|
1663
1662
|
onClick: HandleClickTab,
|
|
1664
1663
|
role: Tab,
|
|
@@ -1681,7 +1680,7 @@ const getPanelTabsVirtualDom = (tabs, selectedIndex, badgeCounts) => {
|
|
|
1681
1680
|
const isSelected = i === selectedIndex;
|
|
1682
1681
|
const tab = tabs[i];
|
|
1683
1682
|
const badgeCount = badgeCounts[tab] || 0;
|
|
1684
|
-
dom.push(...createPanelTab(tab, badgeCount, isSelected
|
|
1683
|
+
dom.push(...createPanelTab(tab, badgeCount, isSelected));
|
|
1685
1684
|
}
|
|
1686
1685
|
return dom;
|
|
1687
1686
|
};
|