shineout 3.8.7-beta.4 → 3.8.7-fix.1
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 +10 -10
- 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.8.7-
|
|
525
|
+
version: '3.8.7-fix.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.7-
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.7-fix.1');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -33778,12 +33778,13 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
33778
33778
|
};
|
|
33779
33779
|
return [first, more].concat(toConsumableArray_default()(reset));
|
|
33780
33780
|
};
|
|
33781
|
+
var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
|
|
33781
33782
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
33782
33783
|
className: className,
|
|
33783
33784
|
style: props.style,
|
|
33784
33785
|
children: data && getRenderData().map(function (d, index) {
|
|
33785
33786
|
var itemFirst = Array.isArray(d) ? d[0] : d;
|
|
33786
|
-
var isLastItem = index ===
|
|
33787
|
+
var isLastItem = index === lastIndex;
|
|
33787
33788
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
33788
33789
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
33789
33790
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb_item, {
|
|
@@ -36369,19 +36370,18 @@ function useInputAble(props) {
|
|
|
36369
36370
|
var render = useRender(syncValue);
|
|
36370
36371
|
var shouldUseState = delay || !control;
|
|
36371
36372
|
var value = shouldUseState ? stateValue : valuePo;
|
|
36372
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
36373
|
-
if (context.timer) {
|
|
36374
|
-
clearTimeout(context.timer);
|
|
36375
|
-
context.timer = null;
|
|
36376
|
-
}
|
|
36373
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
36377
36374
|
if (delay && control && props.value !== stateValue) {
|
|
36378
36375
|
changeStateValue(props.value);
|
|
36376
|
+
} else if (context.timer) {
|
|
36377
|
+
clearTimeout(context.timer);
|
|
36378
|
+
context.timer = null;
|
|
36379
36379
|
}
|
|
36380
36380
|
}, [props.value, delay, control]);
|
|
36381
36381
|
var forceDelayChange = use_persist_fn(function () {
|
|
36382
|
-
if (context.
|
|
36382
|
+
if (context.delayChange) context.delayChange();
|
|
36383
|
+
if (context.timer) {
|
|
36383
36384
|
clearTimeout(context.timer);
|
|
36384
|
-
context.delayChange();
|
|
36385
36385
|
context.timer = null;
|
|
36386
36386
|
context.delayChange = null;
|
|
36387
36387
|
}
|
|
@@ -73347,7 +73347,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73347
73347
|
|
|
73348
73348
|
|
|
73349
73349
|
/* harmony default export */ var src_0 = ({
|
|
73350
|
-
version: '3.8.7-
|
|
73350
|
+
version: '3.8.7-fix.1'
|
|
73351
73351
|
});
|
|
73352
73352
|
}();
|
|
73353
73353
|
/******/ return __webpack_exports__;
|