shineout 3.9.14-beta.7 → 3.9.14-beta.9
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 +15 -9
- 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.9.14-beta.
|
|
525
|
+
version: '3.9.14-beta.9'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12326,7 +12326,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12326
12326
|
};
|
|
12327
12327
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12328
12328
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12329
|
-
/* harmony default export */ var version = ('3.9.14-beta.
|
|
12329
|
+
/* harmony default export */ var version = ('3.9.14-beta.9');
|
|
12330
12330
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12331
12331
|
|
|
12332
12332
|
|
|
@@ -20767,6 +20767,7 @@ var groupSpace = function groupSpace(gap) {
|
|
|
20767
20767
|
padding: "0 ".concat(gap),
|
|
20768
20768
|
display: 'flex',
|
|
20769
20769
|
alignItems: 'center',
|
|
20770
|
+
flexShrink: 0,
|
|
20770
20771
|
borderLeft: "1px solid ".concat(src.inputBorderColor),
|
|
20771
20772
|
borderRight: "1px solid ".concat(src.inputBorderColor),
|
|
20772
20773
|
background: src.inputGroupFontBackgroundColor,
|
|
@@ -30755,10 +30756,13 @@ function useClickAway(params) {
|
|
|
30755
30756
|
});
|
|
30756
30757
|
var target = Array.isArray(t) ? t : [t];
|
|
30757
30758
|
var handleClickAway = use_persist_fn(function (event) {
|
|
30758
|
-
|
|
30759
|
+
var _composedPath, _composedPath2, _ref;
|
|
30760
|
+
// composedPath() 兼容 Shadow DOM,包含事件传播路径上的所有元素
|
|
30761
|
+
var path = (_composedPath = (_composedPath2 = (_ref = event).composedPath) === null || _composedPath2 === void 0 ? void 0 : _composedPath2.call(_ref)) !== null && _composedPath !== void 0 ? _composedPath : [event.target];
|
|
30759
30762
|
if (target.findIndex(function (t) {
|
|
30760
|
-
|
|
30761
|
-
|
|
30763
|
+
return t.current && path.some(function (n) {
|
|
30764
|
+
return n instanceof Node && t.current.contains(n);
|
|
30765
|
+
});
|
|
30762
30766
|
}) > -1) {
|
|
30763
30767
|
return;
|
|
30764
30768
|
}
|
|
@@ -56340,10 +56344,12 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
56340
56344
|
setInternalInputValue = _React$useState2[1];
|
|
56341
56345
|
var focusedRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(false);
|
|
56342
56346
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
56347
|
+
// 将外部值转为字符串后再比较,避免 number 5 vs string "5" 的类型不匹配误判
|
|
56348
|
+
var stringValue = getStringValue(props.value);
|
|
56343
56349
|
// 聚焦编辑期间不同步外部值,避免 form 回填 defaultValue 覆盖用户输入
|
|
56344
56350
|
// 但当外部值被清空时(如 clearable 触发),即使聚焦也需要同步
|
|
56345
|
-
if (
|
|
56346
|
-
setInternalInputValue(
|
|
56351
|
+
if (stringValue !== inernalInputValue && (!focusedRef.current || props.value == null || props.value === '')) {
|
|
56352
|
+
setInternalInputValue(stringValue);
|
|
56347
56353
|
}
|
|
56348
56354
|
}, [props.value]);
|
|
56349
56355
|
var getNumberValue = function getNumberValue(value) {
|
|
@@ -57647,7 +57653,7 @@ var initPlaceElement = function initPlaceElement() {
|
|
|
57647
57653
|
}
|
|
57648
57654
|
};
|
|
57649
57655
|
initPlaceElement();
|
|
57650
|
-
var
|
|
57656
|
+
var tree_simple_node_Node = function Node(props) {
|
|
57651
57657
|
var jssStyle = props.jssStyle,
|
|
57652
57658
|
id = props.id,
|
|
57653
57659
|
data = props.data,
|
|
@@ -57902,7 +57908,7 @@ var Node = function Node(props) {
|
|
|
57902
57908
|
}), hasChildren && /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(List, getChildrenListProps())]
|
|
57903
57909
|
}));
|
|
57904
57910
|
};
|
|
57905
|
-
/* harmony default export */ var tree_simple_node = (
|
|
57911
|
+
/* harmony default export */ var tree_simple_node = (tree_simple_node_Node);
|
|
57906
57912
|
;// CONCATENATED MODULE: ../hooks/src/components/use-tree/use-tree-virtual-node.ts
|
|
57907
57913
|
|
|
57908
57914
|
|
|
@@ -75754,7 +75760,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
75754
75760
|
|
|
75755
75761
|
|
|
75756
75762
|
/* harmony default export */ var src_0 = ({
|
|
75757
|
-
version: '3.9.14-beta.
|
|
75763
|
+
version: '3.9.14-beta.9'
|
|
75758
75764
|
});
|
|
75759
75765
|
}();
|
|
75760
75766
|
/******/ return __webpack_exports__;
|