shineout 3.7.9-beta.5 → 3.7.9-beta.6
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/cjs/index.js +1 -1
- package/dist/shineout.js +12 -4
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.7.9-beta.
|
|
525
|
+
version: '3.7.9-beta.6'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.9-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.9-beta.6');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -32186,7 +32186,8 @@ var Popover = function Popover(props) {
|
|
|
32186
32186
|
_props$zIndex = props.zIndex,
|
|
32187
32187
|
zIndex = _props$zIndex === void 0 ? 1060 : _props$zIndex;
|
|
32188
32188
|
var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
|
|
32189
|
-
rendered: false
|
|
32189
|
+
rendered: false,
|
|
32190
|
+
hasOpened: false
|
|
32190
32191
|
}),
|
|
32191
32192
|
context = _React$useRef.current;
|
|
32192
32193
|
var config = useConfig();
|
|
@@ -32300,7 +32301,14 @@ var Popover = function Popover(props) {
|
|
|
32300
32301
|
});
|
|
32301
32302
|
}
|
|
32302
32303
|
context.rendered = true;
|
|
32303
|
-
|
|
32304
|
+
|
|
32305
|
+
// Track if popover has ever been opened
|
|
32306
|
+
if (open && !context.hasOpened) {
|
|
32307
|
+
context.hasOpened = true;
|
|
32308
|
+
}
|
|
32309
|
+
|
|
32310
|
+
// Only execute functional children after popover has been opened at least once
|
|
32311
|
+
var childrened = isFunc(children) ? context.hasOpened ? children(closePop) : null : children;
|
|
32304
32312
|
var containerStyle = {
|
|
32305
32313
|
borderColor: props.border,
|
|
32306
32314
|
backgroundColor: props.background
|
|
@@ -71907,7 +71915,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71907
71915
|
|
|
71908
71916
|
|
|
71909
71917
|
/* harmony default export */ var src_0 = ({
|
|
71910
|
-
version: '3.7.9-beta.
|
|
71918
|
+
version: '3.7.9-beta.6'
|
|
71911
71919
|
});
|
|
71912
71920
|
}();
|
|
71913
71921
|
/******/ return __webpack_exports__;
|