@sheinx/base 3.8.8-beta.1 → 3.8.8-beta.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAY5C,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAY5C,QAAA,MAAM,MAAM,mGAgdX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/cjs/select/result.js
CHANGED
|
@@ -363,7 +363,13 @@ var Result = function Result(props) {
|
|
|
363
363
|
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
364
364
|
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
365
365
|
if ( /*#__PURE__*/_react.default.isValidElement(element)) {
|
|
366
|
-
var _element$props;
|
|
366
|
+
var _element$type, _element$type2, _element$props;
|
|
367
|
+
// 跳过 Portal 类组件(Popover, Tooltip)
|
|
368
|
+
var portalComponents = ['ShineoutPopover', 'ShineoutTooltip'];
|
|
369
|
+
var displayName = ((_element$type = element.type) === null || _element$type === void 0 ? void 0 : _element$type.displayName) || ((_element$type2 = element.type) === null || _element$type2 === void 0 ? void 0 : _element$type2.name);
|
|
370
|
+
if (portalComponents.includes(displayName)) {
|
|
371
|
+
return '';
|
|
372
|
+
}
|
|
367
373
|
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
368
374
|
if (Array.isArray(children)) {
|
|
369
375
|
return children.map(function (child) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAY5C,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAY5C,QAAA,MAAM,MAAM,mGAgdX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/esm/select/result.js
CHANGED
|
@@ -355,7 +355,13 @@ var Result = function Result(props) {
|
|
|
355
355
|
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
356
356
|
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
357
357
|
if ( /*#__PURE__*/React.isValidElement(element)) {
|
|
358
|
-
var _element$props;
|
|
358
|
+
var _element$type, _element$type2, _element$props;
|
|
359
|
+
// 跳过 Portal 类组件(Popover, Tooltip)
|
|
360
|
+
var portalComponents = ['ShineoutPopover', 'ShineoutTooltip'];
|
|
361
|
+
var displayName = ((_element$type = element.type) === null || _element$type === void 0 ? void 0 : _element$type.displayName) || ((_element$type2 = element.type) === null || _element$type2 === void 0 ? void 0 : _element$type2.name);
|
|
362
|
+
if (portalComponents.includes(displayName)) {
|
|
363
|
+
return '';
|
|
364
|
+
}
|
|
359
365
|
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
360
366
|
if (Array.isArray(children)) {
|
|
361
367
|
return children.map(function (child) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.8.8-beta.
|
|
3
|
+
"version": "3.8.8-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.8.8-beta.
|
|
13
|
+
"@sheinx/hooks": "3.8.8-beta.2",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|