@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/index.js
CHANGED
|
@@ -8428,8 +8428,8 @@ const AntdTabItem = ({ children }) => {
|
|
|
8428
8428
|
return /* @__PURE__ */ React__default.default.createElement("div", null, children);
|
|
8429
8429
|
};
|
|
8430
8430
|
function getTabItems(items) {
|
|
8431
|
-
var _a;
|
|
8432
|
-
return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : items == null ? void 0 : items.props.children;
|
|
8431
|
+
var _a, _b, _c;
|
|
8432
|
+
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);
|
|
8433
8433
|
}
|
|
8434
8434
|
function getTabItemKeys(items) {
|
|
8435
8435
|
const keys = [];
|
|
@@ -8483,9 +8483,10 @@ function AntdTabs(props) {
|
|
|
8483
8483
|
return [];
|
|
8484
8484
|
const tabItems = getTabItems(itemsRaw);
|
|
8485
8485
|
return tabItems.map((currentItem) => {
|
|
8486
|
+
var _a2;
|
|
8486
8487
|
return __spreadProps$3(__spreadValues$3({}, currentItem.props), {
|
|
8487
8488
|
key: currentItem.key,
|
|
8488
|
-
children: /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, currentItem.props.children)
|
|
8489
|
+
children: /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, (_a2 = currentItem.props) == null ? void 0 : _a2.children)
|
|
8489
8490
|
});
|
|
8490
8491
|
}).filter((i) => i != null);
|
|
8491
8492
|
}, [itemsRaw]);
|