@mw-kit/mw-ui 1.7.10 → 1.7.12
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/index.modern.js
CHANGED
|
@@ -12604,6 +12604,15 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
12604
12604
|
});
|
|
12605
12605
|
};
|
|
12606
12606
|
|
|
12607
|
+
var getClose = props.alwaysOpen ? function () {
|
|
12608
|
+
return undefined;
|
|
12609
|
+
} : function (index) {
|
|
12610
|
+
return React__default.createElement(SvgClose, {
|
|
12611
|
+
onClick: function onClick() {
|
|
12612
|
+
return removeTab(index);
|
|
12613
|
+
}
|
|
12614
|
+
});
|
|
12615
|
+
};
|
|
12607
12616
|
return React__default.createElement(Container$6, null, React__default.createElement(Tabs, {
|
|
12608
12617
|
internal: +(internal || false)
|
|
12609
12618
|
}, tabs.map(function (tab, index) {
|
|
@@ -12613,11 +12622,7 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
12613
12622
|
onClick: function onClick(event) {
|
|
12614
12623
|
return updateActiveTab(index, event);
|
|
12615
12624
|
}
|
|
12616
|
-
}, React__default.createElement("span", null, tab.label),
|
|
12617
|
-
onClick: function onClick() {
|
|
12618
|
-
return removeTab(index);
|
|
12619
|
-
}
|
|
12620
|
-
}));
|
|
12625
|
+
}, React__default.createElement("span", null, tab.label), getClose(index));
|
|
12621
12626
|
})));
|
|
12622
12627
|
};
|
|
12623
12628
|
|