@xaui/native 0.2.3 → 0.2.4
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/tabs/index.cjs +3 -2
- package/dist/tabs/index.d.cts +4 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +3 -2
- package/package.json +1 -1
package/dist/tabs/index.cjs
CHANGED
|
@@ -197,12 +197,13 @@ function toTabItems(children) {
|
|
|
197
197
|
if (!_react2.default.isValidElement(child) || child.type !== Tab) {
|
|
198
198
|
return [];
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
const tabKey = child.props.tabKey;
|
|
201
|
+
if (!tabKey) {
|
|
201
202
|
return [];
|
|
202
203
|
}
|
|
203
204
|
return [
|
|
204
205
|
{
|
|
205
|
-
key:
|
|
206
|
+
key: tabKey,
|
|
206
207
|
title: child.props.title,
|
|
207
208
|
startContent: child.props.startContent,
|
|
208
209
|
endContent: child.props.endContent,
|
package/dist/tabs/index.d.cts
CHANGED
package/dist/tabs/index.d.ts
CHANGED
package/dist/tabs/index.js
CHANGED
|
@@ -197,12 +197,13 @@ function toTabItems(children) {
|
|
|
197
197
|
if (!React.isValidElement(child) || child.type !== Tab) {
|
|
198
198
|
return [];
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
const tabKey = child.props.tabKey;
|
|
201
|
+
if (!tabKey) {
|
|
201
202
|
return [];
|
|
202
203
|
}
|
|
203
204
|
return [
|
|
204
205
|
{
|
|
205
|
-
key:
|
|
206
|
+
key: tabKey,
|
|
206
207
|
title: child.props.title,
|
|
207
208
|
startContent: child.props.startContent,
|
|
208
209
|
endContent: child.props.endContent,
|