@plasmicpkgs/antd5 0.0.208 → 0.0.209
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +4 -3
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerTabs.cjs.js +4 -3
- package/skinny/registerTabs.cjs.js.map +1 -1
- package/skinny/registerTabs.esm.js +4 -3
- package/skinny/registerTabs.esm.js.map +1 -1
package/dist/antd.esm.js
CHANGED
|
@@ -8411,8 +8411,8 @@ const AntdTabItem = ({ children }) => {
|
|
|
8411
8411
|
return /* @__PURE__ */ React.createElement("div", null, children);
|
|
8412
8412
|
};
|
|
8413
8413
|
function getTabItems(items) {
|
|
8414
|
-
var _a;
|
|
8415
|
-
return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : items == null ? void 0 : items.props.children;
|
|
8414
|
+
var _a, _b, _c;
|
|
8415
|
+
return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : (_c = (_b = items == null ? void 0 : items.props) == null ? void 0 : _b.children) == null ? void 0 : _c.flat(1);
|
|
8416
8416
|
}
|
|
8417
8417
|
function getTabItemKeys(items) {
|
|
8418
8418
|
const keys = [];
|
|
@@ -8466,9 +8466,10 @@ function AntdTabs(props) {
|
|
|
8466
8466
|
return [];
|
|
8467
8467
|
const tabItems = getTabItems(itemsRaw);
|
|
8468
8468
|
return tabItems.map((currentItem) => {
|
|
8469
|
+
var _a2;
|
|
8469
8470
|
return __spreadProps$3(__spreadValues$3({}, currentItem.props), {
|
|
8470
8471
|
key: currentItem.key,
|
|
8471
|
-
children: /* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children)
|
|
8472
|
+
children: /* @__PURE__ */ React.createElement(React.Fragment, null, (_a2 = currentItem.props) == null ? void 0 : _a2.children)
|
|
8472
8473
|
});
|
|
8473
8474
|
}).filter((i) => i != null);
|
|
8474
8475
|
}, [itemsRaw]);
|