@clickpalm/react 1.2.11 → 1.2.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.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2023,8 +2023,8 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
|
|
|
2023
2023
|
const childrenArray = import_react11.Children.toArray(children);
|
|
2024
2024
|
childrenArray.forEach((child) => {
|
|
2025
2025
|
if ((0, import_react11.isValidElement)(child) && child.type === TabsItem) {
|
|
2026
|
-
const { value, label, children: content } = child.props;
|
|
2027
|
-
items.push({ value, label, children: content });
|
|
2026
|
+
const { value, label, forceMount, children: content } = child.props;
|
|
2027
|
+
items.push({ value, label, forceMount, children: content });
|
|
2028
2028
|
}
|
|
2029
2029
|
});
|
|
2030
2030
|
const listRef = (0, import_react11.useRef)(null);
|
|
@@ -2113,6 +2113,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
|
|
|
2113
2113
|
{
|
|
2114
2114
|
colorContent,
|
|
2115
2115
|
value: item.value,
|
|
2116
|
+
forceMount: item.forceMount || void 0,
|
|
2116
2117
|
children: item.children
|
|
2117
2118
|
},
|
|
2118
2119
|
`content-${item.value}`
|
package/dist/index.mjs
CHANGED
|
@@ -1952,8 +1952,8 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
|
|
|
1952
1952
|
const childrenArray = Children.toArray(children);
|
|
1953
1953
|
childrenArray.forEach((child) => {
|
|
1954
1954
|
if (isValidElement(child) && child.type === TabsItem) {
|
|
1955
|
-
const { value, label, children: content } = child.props;
|
|
1956
|
-
items.push({ value, label, children: content });
|
|
1955
|
+
const { value, label, forceMount, children: content } = child.props;
|
|
1956
|
+
items.push({ value, label, forceMount, children: content });
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
1959
|
const listRef = useRef4(null);
|
|
@@ -2042,6 +2042,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
|
|
|
2042
2042
|
{
|
|
2043
2043
|
colorContent,
|
|
2044
2044
|
value: item.value,
|
|
2045
|
+
forceMount: item.forceMount || void 0,
|
|
2045
2046
|
children: item.children
|
|
2046
2047
|
},
|
|
2047
2048
|
`content-${item.value}`
|
package/package.json
CHANGED