shineout 3.7.7-beta.1 → 3.7.7-beta.3
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 +8 -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.7-beta.
|
|
525
|
+
version: '3.7.7-beta.3'
|
|
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.7-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.7-beta.3');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -35963,7 +35963,10 @@ var useInput = function useInput(params) {
|
|
|
35963
35963
|
(_otherHandlers$onFocu = otherHandlers.onFocus) === null || _otherHandlers$onFocu === void 0 || _otherHandlers$onFocu.call(otherHandlers, event);
|
|
35964
35964
|
setFocused(true);
|
|
35965
35965
|
if (autoSelect) {
|
|
35966
|
-
|
|
35966
|
+
// why requestAnimationFrame: 当在文字身体上hover后立即点击,select()与浏览器的光标定位逻辑产生竞争,有可能导致只选中的部分文本,所以需要延迟一下
|
|
35967
|
+
requestAnimationFrame(function () {
|
|
35968
|
+
event.target.select();
|
|
35969
|
+
});
|
|
35967
35970
|
}
|
|
35968
35971
|
};
|
|
35969
35972
|
};
|
|
@@ -46327,6 +46330,7 @@ var Time = function Time(props) {
|
|
|
46327
46330
|
})]
|
|
46328
46331
|
});
|
|
46329
46332
|
};
|
|
46333
|
+
var shouldRenderTimes = times && times.length > 0;
|
|
46330
46334
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
46331
46335
|
onMouseEnter: props.onMouseEnter,
|
|
46332
46336
|
onMouseLeave: props.onMouseLeave,
|
|
@@ -46335,7 +46339,7 @@ var Time = function Time(props) {
|
|
|
46335
46339
|
children: [props.showTitle && /*#__PURE__*/(0,jsx_runtime.jsx)(pickerTitle, {
|
|
46336
46340
|
position: props.position,
|
|
46337
46341
|
jssStyle: props.jssStyle
|
|
46338
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
46342
|
+
}), shouldRenderTimes && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
46339
46343
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerBody,
|
|
46340
46344
|
children: times.map(function (item) {
|
|
46341
46345
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(TimeScroll, {
|
|
@@ -71771,7 +71775,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71771
71775
|
|
|
71772
71776
|
|
|
71773
71777
|
/* harmony default export */ var src_0 = ({
|
|
71774
|
-
version: '3.7.7-beta.
|
|
71778
|
+
version: '3.7.7-beta.3'
|
|
71775
71779
|
});
|
|
71776
71780
|
}();
|
|
71777
71781
|
/******/ return __webpack_exports__;
|