shineout 3.5.0-beta.8 → 3.5.0
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/README-zh_CN.md +2 -2
- package/README.md +2 -2
- package/cjs/index.js +1 -1
- package/dist/shineout.js +326 -178
- 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/dist/shineout.js
CHANGED
|
@@ -6535,9 +6535,9 @@ __webpack_require__.d(detect_namespaceObject, {
|
|
|
6535
6535
|
});
|
|
6536
6536
|
|
|
6537
6537
|
// NAMESPACE OBJECT: ./src/utils/dom/document.ts
|
|
6538
|
-
var
|
|
6539
|
-
__webpack_require__.r(
|
|
6540
|
-
__webpack_require__.d(
|
|
6538
|
+
var utils_dom_document_namespaceObject = {};
|
|
6539
|
+
__webpack_require__.r(utils_dom_document_namespaceObject);
|
|
6540
|
+
__webpack_require__.d(utils_dom_document_namespaceObject, {
|
|
6541
6541
|
addEventListener: function() { return addEventListener; },
|
|
6542
6542
|
docScroll: function() { return document_docScroll; },
|
|
6543
6543
|
docSize: function() { return document_docSize; }
|
|
@@ -6577,7 +6577,7 @@ __webpack_require__.d(src_utils_namespaceObject, {
|
|
|
6577
6577
|
cssAccessors: function() { return cssAccessors; },
|
|
6578
6578
|
cssInject: function() { return cssInject; },
|
|
6579
6579
|
detect: function() { return detect_namespaceObject; },
|
|
6580
|
-
doc: function() { return
|
|
6580
|
+
doc: function() { return utils_dom_document_namespaceObject; },
|
|
6581
6581
|
element: function() { return dom_element_namespaceObject; },
|
|
6582
6582
|
flat: function() { return utils_flat_namespaceObject; },
|
|
6583
6583
|
func: function() { return utils_func_namespaceObject; },
|
|
@@ -6807,6 +6807,11 @@ var treeArrow = ['M18.2209 9.72141L12.6344 15.2952C12.2441 15.6847 11.6121 15.68
|
|
|
6807
6807
|
var treePlus = ['M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM12 7C12.5128 7 12.9355 7.38604 12.9933 7.88338L13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13H13V16C13 16.5523 12.5523 17 12 17C11.4872 17 11.0645 16.614 11.0067 16.1166L11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11H11V8C11 7.44772 11.4477 7 12 7Z'];
|
|
6808
6808
|
var treeMinus = ['M22 4.5C22 3.11929 20.8807 2 19.5 2H4.5C3.11929 2 2 3.11929 2 4.5V19.5C2 20.8807 3.11929 22 4.5 22H19.5C20.8807 22 22 20.8807 22 19.5V4.5ZM4.5 4H19.5C19.7761 4 20 4.22386 20 4.5V19.5C20 19.7761 19.7761 20 19.5 20H4.5C4.22386 20 4 19.7761 4 19.5V4.5C4 4.22386 4.22386 4 4.5 4ZM8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z'];
|
|
6809
6809
|
var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
|
|
6810
|
+
var pcHelpCircleOutline = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6811
|
+
fillRule: "evenodd",
|
|
6812
|
+
clipRule: "evenodd",
|
|
6813
|
+
d: "M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 5.92487 5.92682 1 12.002 1ZM12.002 3C7.03139 3 3.00195 7.02944 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02944 16.9725 3 12.002 3ZM12.002 16.0263C12.7225 16.0263 13.3066 16.6105 13.3066 17.331C13.3066 18.0516 12.7225 18.6357 12.002 18.6357C11.2814 18.6357 10.6973 18.0516 10.6973 17.331C10.6973 16.6105 11.2814 16.0263 12.002 16.0263ZM12.002 5.36428C14.0358 5.36428 15.6895 7.02546 15.6895 9.06758C15.6895 9.99304 15.2656 10.622 14.1552 11.7338C14.1184 11.7707 14.1184 11.7707 14.0815 11.8076C13.2372 12.65 12.9395 13.0376 12.9395 13.3995V14.5621C12.9395 15.0797 12.5195 15.5003 12.002 15.5003C11.4844 15.5003 11.0644 15.0803 11.0644 14.5628V13.4002C11.0644 12.3785 11.5209 11.715 12.7559 10.4811C12.783 10.454 12.783 10.454 12.81 10.4269L12.8599 10.3769L12.9277 10.3087C12.9406 10.2956 12.9562 10.2798 12.9769 10.2589C13.5549 9.67191 13.8144 9.31374 13.8144 9.06758C13.8144 8.05926 13.0006 7.23928 12.002 7.23928C10.9828 7.23928 10.1895 8.02064 10.1895 9.02083C10.1895 9.53842 9.76954 9.95831 9.25195 9.95831C8.73437 9.95831 8.31444 9.53839 8.31444 9.02083C8.31444 7.00396 9.96896 5.36428 12.002 5.36428Z"
|
|
6814
|
+
}, 0)];
|
|
6810
6815
|
var pcInfoCircleFill = ['M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8ZM12 19C12.5523 19 13 18.5523 13 18V10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V18C11 18.5523 11.4477 19 12 19Z'];
|
|
6811
6816
|
var search = ['M11 2C15.9706 2 20 6.02944 20 11C20 13.1248 19.2637 15.0776 18.0323 16.6172L21.1213 19.7071C21.5118 20.0976 21.5118 20.7308 21.1213 21.1213C20.7308 21.5118 20.0976 21.5118 19.7071 21.1213L16.6172 18.0323C15.0776 19.2637 13.1248 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2ZM11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4Z'];
|
|
6812
6817
|
var icons_link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.66545 19.2222 1.61512 16.8053 3.02446 15.2347L3.17546 15.0754L12.6109 3.70711C14.7588 1.55923 18.2412 1.55923 20.3891 3.70711C22.4773 5.79532 22.5353 9.14496 20.5631 11.3032L20.3891 11.4853L12.3679 21.4393C11.9773 21.8299 11.3442 21.8299 10.9536 21.4394C10.5932 21.0789 10.5654 20.5116 10.8705 20.1193L10.9536 20.0251L18.9749 10.0711C20.3417 8.70423 20.3417 6.48814 18.9749 5.12132C17.6569 3.8033 15.5492 3.75623 14.1747 4.9801L14.0251 5.12132L4.58968 16.4896C3.80864 17.2706 3.80864 18.537 4.58966 19.318C5.32963 20.058 6.5051 20.0969 7.29088 19.4348L7.41809 19.318L16.8535 7.94978C17.0488 7.7545 17.0488 7.43787 16.8536 7.24262C16.68 7.06904 16.4106 7.04975 16.2157 7.18476L16.1464 7.24261L8.12521 17.1967C7.73468 17.5873 7.10152 17.5873 6.71099 17.1967C6.35051 16.8362 6.32277 16.269 6.6278 15.8767L6.71099 15.7825L14.7322 5.8284C15.7085 4.85208 17.2915 4.85208 18.2678 5.82843C19.2016 6.7623 19.2422 8.25112 18.3896 9.23328L18.2678 9.36397L8.83231 20.7322Z'];
|
|
@@ -6831,6 +6836,7 @@ var Icons = {
|
|
|
6831
6836
|
ArrowDown: icon(arrowDown),
|
|
6832
6837
|
PcArrowFillDown: icon(caretFill),
|
|
6833
6838
|
PcHelpCircleFill: icon(pcHelpCircleFill),
|
|
6839
|
+
PcHelpCircleOutline: icon(pcHelpCircleOutline),
|
|
6834
6840
|
PcInfoCircleFill: icon(pcInfoCircleFill),
|
|
6835
6841
|
PcCloseCircleFill: icon(danger),
|
|
6836
6842
|
PcWarningCircleFill: icon(pcAttentionCircleFill),
|
|
@@ -6870,6 +6876,9 @@ var config = {
|
|
|
6870
6876
|
Error: icons.PcWarningCircleFill,
|
|
6871
6877
|
Confirm: icons.PcHelpCircleFill
|
|
6872
6878
|
},
|
|
6879
|
+
form: {
|
|
6880
|
+
Tooltip: icons.PcHelpCircleOutline
|
|
6881
|
+
},
|
|
6873
6882
|
breadcrumb: {
|
|
6874
6883
|
DropdownArrow: icons.ArrowDown
|
|
6875
6884
|
},
|
|
@@ -11993,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11993
12002
|
};
|
|
11994
12003
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11995
12004
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11996
|
-
/* harmony default export */ var version = ('3.5.0
|
|
12005
|
+
/* harmony default export */ var version = ('3.5.0');
|
|
11997
12006
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11998
12007
|
|
|
11999
12008
|
|
|
@@ -13541,6 +13550,9 @@ var emptyTokens = {
|
|
|
13541
13550
|
var formTokens = {
|
|
13542
13551
|
formItemFontSize: 'Font-14',
|
|
13543
13552
|
formItemFontColor: 'Neutral-text-5',
|
|
13553
|
+
formItemTooltipIconColor: 'Neutral-text-4',
|
|
13554
|
+
formItemTooltipIconFontSize: 'Font-14',
|
|
13555
|
+
formItemTooltipIconMarginXStart: 'Spacing-4',
|
|
13544
13556
|
formItemMarginYEnd: 'Spacing-12',
|
|
13545
13557
|
formItemMarginXEnd: 'Spacing-16',
|
|
13546
13558
|
formItemLabelWidth: '140px',
|
|
@@ -18918,6 +18930,18 @@ var formItemStyle = {
|
|
|
18918
18930
|
display: 'inline-block'
|
|
18919
18931
|
}
|
|
18920
18932
|
},
|
|
18933
|
+
labelTooltip: {
|
|
18934
|
+
display: 'inline-block',
|
|
18935
|
+
verticalAlign: 'middle',
|
|
18936
|
+
cursor: 'help',
|
|
18937
|
+
color: src.formItemTooltipIconColor,
|
|
18938
|
+
width: src.formItemTooltipIconFontSize,
|
|
18939
|
+
fontSize: src.formItemTooltipIconFontSize,
|
|
18940
|
+
marginLeft: src.formItemTooltipIconMarginXStart,
|
|
18941
|
+
'& svg': {
|
|
18942
|
+
width: '100%'
|
|
18943
|
+
}
|
|
18944
|
+
},
|
|
18921
18945
|
labelLeft: {
|
|
18922
18946
|
textAlign: 'start'
|
|
18923
18947
|
},
|
|
@@ -28465,15 +28489,6 @@ var isFirefox = function isFirefox() {
|
|
|
28465
28489
|
if (!is_isBrowser()) return false;
|
|
28466
28490
|
return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
28467
28491
|
};
|
|
28468
|
-
var isChromeLowerThan = function isChromeLowerThan(version) {
|
|
28469
|
-
// 服务器端渲染时,不执行版本检查
|
|
28470
|
-
if (typeof window === 'undefined' || typeof navigator === 'undefined') {
|
|
28471
|
-
return false;
|
|
28472
|
-
}
|
|
28473
|
-
var ua = navigator.userAgent;
|
|
28474
|
-
var chrome = ua.match(/chrome\/(\d+)/i);
|
|
28475
|
-
return Boolean(chrome && chrome[1] && parseInt(chrome[1], 10) < version);
|
|
28476
|
-
};
|
|
28477
28492
|
function isDomElement(element) {
|
|
28478
28493
|
return (typeof HTMLElement === "undefined" ? "undefined" : typeof_default()(HTMLElement)) === 'object' ? element instanceof HTMLElement // DOM2
|
|
28479
28494
|
: element && typeof_default()(element) === 'object' && element !== null && element.nodeType === 1 && typeof element.nodeName === 'string';
|
|
@@ -29229,6 +29244,50 @@ function shallowEqual(objA, objB) {
|
|
|
29229
29244
|
return true;
|
|
29230
29245
|
}
|
|
29231
29246
|
/* harmony default export */ var shallow_equal = (shallowEqual);
|
|
29247
|
+
;// CONCATENATED MODULE: ../hooks/src/utils/dom/document.ts
|
|
29248
|
+
var cachedZoom = 0;
|
|
29249
|
+
var getCurrentCSSZoom = function getCurrentCSSZoom() {
|
|
29250
|
+
if (cachedZoom) return cachedZoom;
|
|
29251
|
+
if (typeof window === 'undefined' || typeof navigator === 'undefined' || !document.body) {
|
|
29252
|
+
return 1;
|
|
29253
|
+
}
|
|
29254
|
+
var currentCSSZoom = Math.round(document.body.getBoundingClientRect().width) / document.body.clientWidth;
|
|
29255
|
+
if (window.ResizeObserver) {
|
|
29256
|
+
// 监听document.body的变化,更新缓存的zoom
|
|
29257
|
+
var resizeObserver = new ResizeObserver(function () {
|
|
29258
|
+
cachedZoom = Math.round(document.body.getBoundingClientRect().width) / document.body.clientWidth;
|
|
29259
|
+
});
|
|
29260
|
+
resizeObserver.observe(document.body);
|
|
29261
|
+
}
|
|
29262
|
+
cachedZoom = currentCSSZoom;
|
|
29263
|
+
return currentCSSZoom;
|
|
29264
|
+
};
|
|
29265
|
+
|
|
29266
|
+
// export const getZoomBoundingClientRect = (element: HTMLElement) => {
|
|
29267
|
+
// const currentCSSZoom = getCurrentCSSZoom()
|
|
29268
|
+
// if (currentCSSZoom === 1 || !currentCSSZoom) {
|
|
29269
|
+
// return element.getBoundingClientRect()
|
|
29270
|
+
// }
|
|
29271
|
+
// const isNotZoom = currentCSSZoom === 1 || !currentCSSZoom
|
|
29272
|
+
|
|
29273
|
+
// if (isNotZoom) {
|
|
29274
|
+
// return element.getBoundingClientRect()
|
|
29275
|
+
// }
|
|
29276
|
+
|
|
29277
|
+
// const zoomRatio = 1 / currentCSSZoom
|
|
29278
|
+
// const rect = element.getBoundingClientRect()
|
|
29279
|
+
|
|
29280
|
+
// return {
|
|
29281
|
+
// x: rect.x * zoomRatio,
|
|
29282
|
+
// y: rect.y * zoomRatio,
|
|
29283
|
+
// top: rect.top * zoomRatio,
|
|
29284
|
+
// right: rect.right * zoomRatio,
|
|
29285
|
+
// bottom: rect.bottom * zoomRatio,
|
|
29286
|
+
// left: rect.left * zoomRatio,
|
|
29287
|
+
// width: rect.width * zoomRatio,
|
|
29288
|
+
// height: rect.height * zoomRatio,
|
|
29289
|
+
// }
|
|
29290
|
+
// }
|
|
29232
29291
|
;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/index.ts
|
|
29233
29292
|
|
|
29234
29293
|
|
|
@@ -29237,6 +29296,7 @@ function shallowEqual(objA, objB) {
|
|
|
29237
29296
|
|
|
29238
29297
|
|
|
29239
29298
|
|
|
29299
|
+
|
|
29240
29300
|
var horizontalPosition = ['left-bottom', 'left-top', 'right-bottom', 'right-top', 'left', 'right'];
|
|
29241
29301
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'bottom', 'top'];
|
|
29242
29302
|
var hideStyle = {
|
|
@@ -29473,13 +29533,14 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29473
29533
|
};
|
|
29474
29534
|
};
|
|
29475
29535
|
var getAbsoluteStyle = function getAbsoluteStyle(position) {
|
|
29536
|
+
var _scrollElRef$current;
|
|
29476
29537
|
if (!parentElRef.current) return {
|
|
29477
29538
|
style: hideStyle
|
|
29478
29539
|
};
|
|
29479
29540
|
var rect = context.parentRect;
|
|
29480
|
-
if (scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current) {
|
|
29481
|
-
var _scrollElRef$
|
|
29482
|
-
var visibleRect = ((_scrollElRef$
|
|
29541
|
+
if (scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current = scrollElRef.current) !== null && _scrollElRef$current !== void 0 && _scrollElRef$current.contains(parentElRef.current)) {
|
|
29542
|
+
var _scrollElRef$current2;
|
|
29543
|
+
var visibleRect = ((_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.getBoundingClientRect()) || {};
|
|
29483
29544
|
if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom || rect.right < visibleRect.left || rect.left > visibleRect.right) {
|
|
29484
29545
|
return {
|
|
29485
29546
|
style: hideStyle
|
|
@@ -29489,15 +29550,8 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29489
29550
|
var _getAbsolutePositionS = getAbsolutePositionStyle(rect, position),
|
|
29490
29551
|
style = _getAbsolutePositionS.style,
|
|
29491
29552
|
arrayStyle = _getAbsolutePositionS.arrayStyle;
|
|
29492
|
-
|
|
29493
|
-
|
|
29494
|
-
if (!isChromeLowerThan(128)) {
|
|
29495
|
-
// @ts-ignore currentCSSZoom
|
|
29496
|
-
var currentCSSZoom = document.body.currentCSSZoom;
|
|
29497
|
-
if (currentCSSZoom === 1 || !currentCSSZoom) return {
|
|
29498
|
-
style: style,
|
|
29499
|
-
arrayStyle: arrayStyle
|
|
29500
|
-
};
|
|
29553
|
+
var currentCSSZoom = getCurrentCSSZoom();
|
|
29554
|
+
if (currentCSSZoom && currentCSSZoom !== 1) {
|
|
29501
29555
|
if (style.left && typeof style.left === 'number') {
|
|
29502
29556
|
style.left = style.left * (1 / currentCSSZoom);
|
|
29503
29557
|
}
|
|
@@ -31772,9 +31826,12 @@ var spin_Spin = function Spin() {
|
|
|
31772
31826
|
tipProps = props.tip,
|
|
31773
31827
|
tipClassName = props.tipClassName,
|
|
31774
31828
|
colorProps = props.color,
|
|
31775
|
-
modeProps = props.mode
|
|
31829
|
+
modeProps = props.mode,
|
|
31830
|
+
_props$ignoreConfig = props.ignoreConfig,
|
|
31831
|
+
ignoreConfig = _props$ignoreConfig === void 0 ? false : _props$ignoreConfig;
|
|
31776
31832
|
var config = useConfig();
|
|
31777
31833
|
var getSpinName = function getSpinName() {
|
|
31834
|
+
if (ignoreConfig) return props.name;
|
|
31778
31835
|
var spin = config.spin;
|
|
31779
31836
|
if (!spin) return;
|
|
31780
31837
|
if (typeof spin === 'string') {
|
|
@@ -31787,18 +31844,21 @@ var spin_Spin = function Spin() {
|
|
|
31787
31844
|
return;
|
|
31788
31845
|
};
|
|
31789
31846
|
var getSpinTip = function getSpinTip() {
|
|
31847
|
+
if (ignoreConfig) return props.tip;
|
|
31790
31848
|
var spin = config.spin;
|
|
31791
31849
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31792
31850
|
var tip = spin.tip;
|
|
31793
31851
|
return tip;
|
|
31794
31852
|
};
|
|
31795
31853
|
var getSpinColor = function getSpinColor() {
|
|
31854
|
+
if (ignoreConfig) return props.color;
|
|
31796
31855
|
var spin = config.spin;
|
|
31797
31856
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31798
31857
|
var color = spin.color;
|
|
31799
31858
|
return color;
|
|
31800
31859
|
};
|
|
31801
31860
|
var getSpinMode = function getSpinMode() {
|
|
31861
|
+
if (ignoreConfig) return props.mode;
|
|
31802
31862
|
var spin = config.spin;
|
|
31803
31863
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31804
31864
|
var mode = spin.mode;
|
|
@@ -31944,7 +32004,8 @@ var Button = function Button(props) {
|
|
|
31944
32004
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
31945
32005
|
size: getSpinSize(),
|
|
31946
32006
|
jssStyle: jssStyle,
|
|
31947
|
-
name: "ring"
|
|
32007
|
+
name: "ring",
|
|
32008
|
+
ignoreConfig: true
|
|
31948
32009
|
})
|
|
31949
32010
|
});
|
|
31950
32011
|
if (renderLoading) {
|
|
@@ -37466,7 +37527,9 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
37466
37527
|
},
|
|
37467
37528
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
37468
37529
|
jssStyle: jssStyle,
|
|
37469
|
-
size: 10
|
|
37530
|
+
size: 10,
|
|
37531
|
+
name: "ring",
|
|
37532
|
+
ignoreConfig: true
|
|
37470
37533
|
})
|
|
37471
37534
|
});
|
|
37472
37535
|
}
|
|
@@ -38548,6 +38611,14 @@ var result_Result = function Result(props) {
|
|
|
38548
38611
|
var empty = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
38549
38612
|
return isEmptyResult();
|
|
38550
38613
|
}, [props.value]);
|
|
38614
|
+
var basePlaceholder = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
38615
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38616
|
+
className: classnames_default()(styles.placeholder, styles.ellipsis),
|
|
38617
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38618
|
+
children: placeholder
|
|
38619
|
+
})
|
|
38620
|
+
});
|
|
38621
|
+
}, [placeholder]);
|
|
38551
38622
|
var isCompressedBound = function isCompressedBound() {
|
|
38552
38623
|
return compressedBound && result_isNumber(compressedBound) && compressedBound >= 1;
|
|
38553
38624
|
};
|
|
@@ -38565,7 +38636,9 @@ var result_Result = function Result(props) {
|
|
|
38565
38636
|
if (!multiple && valueProp && valueProp !== 0) {
|
|
38566
38637
|
var _result = getDataByValues(value);
|
|
38567
38638
|
_placeholder = renderResultContent(_result[0]);
|
|
38568
|
-
if (_placeholder === undefined)
|
|
38639
|
+
if (_placeholder === undefined) {
|
|
38640
|
+
return basePlaceholder;
|
|
38641
|
+
}
|
|
38569
38642
|
}
|
|
38570
38643
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
38571
38644
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_input, {
|
|
@@ -38650,12 +38723,7 @@ var result_Result = function Result(props) {
|
|
|
38650
38723
|
return renderInput();
|
|
38651
38724
|
}
|
|
38652
38725
|
if (!placeholder) return renderNbsp();
|
|
38653
|
-
return
|
|
38654
|
-
className: classnames_default()(styles.placeholder, styles.ellipsis),
|
|
38655
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38656
|
-
children: placeholder
|
|
38657
|
-
})
|
|
38658
|
-
});
|
|
38726
|
+
return basePlaceholder;
|
|
38659
38727
|
};
|
|
38660
38728
|
var renderSingleResult = function renderSingleResult() {
|
|
38661
38729
|
if (isEmptyResult()) return renderNbsp();
|
|
@@ -38691,7 +38759,7 @@ var result_Result = function Result(props) {
|
|
|
38691
38759
|
results: result,
|
|
38692
38760
|
datas: datas
|
|
38693
38761
|
};
|
|
38694
|
-
}, [props.value]);
|
|
38762
|
+
}, [props.value, props.data]);
|
|
38695
38763
|
var result = renderMultipleResult.results;
|
|
38696
38764
|
var moreNumber = getCompressedBound();
|
|
38697
38765
|
var renderMultipleResultMore = /*#__PURE__*/(0,jsx_runtime.jsx)(result_more, {
|
|
@@ -47692,9 +47760,120 @@ var UseFormItem = function UseFormItem() {
|
|
|
47692
47760
|
};
|
|
47693
47761
|
};
|
|
47694
47762
|
/* harmony default export */ var use_form_item = (UseFormItem);
|
|
47763
|
+
;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
|
|
47764
|
+
|
|
47765
|
+
|
|
47766
|
+
|
|
47767
|
+
|
|
47768
|
+
|
|
47769
|
+
|
|
47770
|
+
|
|
47771
|
+
|
|
47772
|
+
|
|
47773
|
+
var defaultDelay = 0;
|
|
47774
|
+
var Tooltip = function Tooltip(props) {
|
|
47775
|
+
var _jssStyle$tooltip;
|
|
47776
|
+
var _props$trigger = props.trigger,
|
|
47777
|
+
trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
|
|
47778
|
+
priorityDirection = props.priorityDirection,
|
|
47779
|
+
children = props.children,
|
|
47780
|
+
tip = props.tip,
|
|
47781
|
+
disabledChild = props.disabledChild,
|
|
47782
|
+
jssStyle = props.jssStyle,
|
|
47783
|
+
className = props.className,
|
|
47784
|
+
style = props.style,
|
|
47785
|
+
zIndex = props.zIndex,
|
|
47786
|
+
_props$type = props.type,
|
|
47787
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
47788
|
+
_props$position = props.position,
|
|
47789
|
+
popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
|
|
47790
|
+
var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
|
|
47791
|
+
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
47792
|
+
var config = useConfig();
|
|
47793
|
+
var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
|
|
47794
|
+
var delay = props.delay || props.mouseEnterDelay || defaultDelay;
|
|
47795
|
+
var _usePopup = use_popup({
|
|
47796
|
+
position: popsitionProps,
|
|
47797
|
+
trigger: trigger,
|
|
47798
|
+
autoMode: 'popover',
|
|
47799
|
+
priorityDirection: priorityDirection,
|
|
47800
|
+
mouseEnterDelay: delay,
|
|
47801
|
+
targetEvents: disabledChild ? {} : childrenProps
|
|
47802
|
+
}),
|
|
47803
|
+
open = _usePopup.open,
|
|
47804
|
+
position = _usePopup.position,
|
|
47805
|
+
getTargetProps = _usePopup.getTargetProps,
|
|
47806
|
+
targetRef = _usePopup.targetRef,
|
|
47807
|
+
popupRef = _usePopup.popupRef,
|
|
47808
|
+
arrowRef = _usePopup.arrowRef;
|
|
47809
|
+
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
47810
|
+
console.error(new Error('Tooltip children expect a single ReactElement.'));
|
|
47811
|
+
return null;
|
|
47812
|
+
}
|
|
47813
|
+
if (!tip) return children;
|
|
47814
|
+
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47815
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
47816
|
+
style: {
|
|
47817
|
+
cursor: 'not-allowed'
|
|
47818
|
+
},
|
|
47819
|
+
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
47820
|
+
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
47821
|
+
pointerEvents: 'none'
|
|
47822
|
+
})
|
|
47823
|
+
})
|
|
47824
|
+
}) : children;
|
|
47825
|
+
var events = getTargetProps();
|
|
47826
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
47827
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
47828
|
+
ref: function ref(el) {
|
|
47829
|
+
if (!el) return;
|
|
47830
|
+
var targetEl = el.nextElementSibling;
|
|
47831
|
+
if (!targetEl) return;
|
|
47832
|
+
if (targetRef.current === targetEl) return;
|
|
47833
|
+
targetRef.current = targetEl;
|
|
47834
|
+
}
|
|
47835
|
+
}, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
47836
|
+
focus: open,
|
|
47837
|
+
parentElRef: targetRef,
|
|
47838
|
+
popupElRef: popupRef,
|
|
47839
|
+
arrowRef: arrowRef,
|
|
47840
|
+
absolute: true,
|
|
47841
|
+
adjust: popsitionProps === 'auto',
|
|
47842
|
+
position: position,
|
|
47843
|
+
fixedWidth: false,
|
|
47844
|
+
popupGap: 0
|
|
47845
|
+
// arrowStyleRef={arrowStyleRef}
|
|
47846
|
+
,
|
|
47847
|
+
zIndex: zIndex,
|
|
47848
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47849
|
+
className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
|
|
47850
|
+
}, getDataAttribute({
|
|
47851
|
+
type: type,
|
|
47852
|
+
position: position
|
|
47853
|
+
})), {}, {
|
|
47854
|
+
ref: popupRef,
|
|
47855
|
+
onMouseLeave: events.onMouseLeave,
|
|
47856
|
+
dir: config.direction,
|
|
47857
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
47858
|
+
ref: arrowRef,
|
|
47859
|
+
style: arrowStyleRef.current,
|
|
47860
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
|
|
47861
|
+
}, getDataAttribute({
|
|
47862
|
+
role: 'arrow'
|
|
47863
|
+
}))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
47864
|
+
style: style,
|
|
47865
|
+
className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
|
|
47866
|
+
children: tip
|
|
47867
|
+
})]
|
|
47868
|
+
}))
|
|
47869
|
+
})]
|
|
47870
|
+
});
|
|
47871
|
+
};
|
|
47872
|
+
/* harmony default export */ var src_tooltip_tooltip = (Tooltip);
|
|
47695
47873
|
;// CONCATENATED MODULE: ../base/src/form/form-item.tsx
|
|
47696
47874
|
|
|
47697
47875
|
|
|
47876
|
+
|
|
47698
47877
|
var form_item_excluded = ["children", "jssStyle", "className", "style", "label", "tip", "required"];
|
|
47699
47878
|
|
|
47700
47879
|
|
|
@@ -47702,6 +47881,10 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47702
47881
|
|
|
47703
47882
|
|
|
47704
47883
|
|
|
47884
|
+
|
|
47885
|
+
|
|
47886
|
+
|
|
47887
|
+
|
|
47705
47888
|
/* harmony default export */ var form_form_item = (function (props) {
|
|
47706
47889
|
var _jssStyle$formItem;
|
|
47707
47890
|
var children = props.children,
|
|
@@ -47726,6 +47909,36 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47726
47909
|
labelVerticalAlign = _labelConfig$rest.labelVerticalAlign,
|
|
47727
47910
|
inline = _labelConfig$rest.inline,
|
|
47728
47911
|
keepErrorHeight = _labelConfig$rest.keepErrorHeight;
|
|
47912
|
+
var renderLabel = function renderLabel() {
|
|
47913
|
+
if (label === undefined || label === null) return null;
|
|
47914
|
+
var $tooltip;
|
|
47915
|
+
if (typeof_default()(label) === 'object' && 'tooltip' in label && label.tooltip) {
|
|
47916
|
+
var _label$tooltip;
|
|
47917
|
+
var tooltipProps = objectSpread2_default()({
|
|
47918
|
+
jssStyle: {
|
|
47919
|
+
tooltip: useTooltipStyle
|
|
47920
|
+
}
|
|
47921
|
+
}, typeof_default()(label.tooltip) === 'object' && 'tip' in label.tooltip ? objectSpread2_default()(objectSpread2_default()({}, label.tooltip), {}, {
|
|
47922
|
+
tip: label.tooltip.tip,
|
|
47923
|
+
position: ((_label$tooltip = label.tooltip) === null || _label$tooltip === void 0 ? void 0 : _label$tooltip.position) || 'top'
|
|
47924
|
+
}) : {
|
|
47925
|
+
tip: label.tooltip,
|
|
47926
|
+
position: 'top'
|
|
47927
|
+
});
|
|
47928
|
+
$tooltip = /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, objectSpread2_default()(objectSpread2_default()({}, tooltipProps), {}, {
|
|
47929
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47930
|
+
className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.labelTooltip,
|
|
47931
|
+
children: tooltipProps.icon || icons_config.form.Tooltip
|
|
47932
|
+
})
|
|
47933
|
+
}));
|
|
47934
|
+
}
|
|
47935
|
+
if (typeof_default()(label) === 'object' && 'tooltip' in label) {
|
|
47936
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
47937
|
+
children: [label.content, $tooltip]
|
|
47938
|
+
});
|
|
47939
|
+
}
|
|
47940
|
+
return label;
|
|
47941
|
+
};
|
|
47729
47942
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47730
47943
|
className: classnames_default()(className, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapper, labelAlign === 'top' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelTop), labelAlign !== 'top' && labelVerticalAlign === 'middle' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalMiddle), labelAlign !== 'top' && labelVerticalAlign === 'bottom' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalBottom), inline && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperInline), keepErrorHeight && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperKeepHeight), required && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperRequired), (showError || tip) && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperTip))
|
|
47731
47944
|
}, attributes), {}, {
|
|
@@ -47735,7 +47948,7 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47735
47948
|
style: labelAlign !== 'top' || inline ? {
|
|
47736
47949
|
width: labelWidth
|
|
47737
47950
|
} : undefined,
|
|
47738
|
-
children:
|
|
47951
|
+
children: renderLabel()
|
|
47739
47952
|
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47740
47953
|
className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.control
|
|
47741
47954
|
}, getDataAttribute({
|
|
@@ -49355,7 +49568,9 @@ var Image = function Image(props) {
|
|
|
49355
49568
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
49356
49569
|
jssStyle: jssStyle,
|
|
49357
49570
|
color: "#B3B7C1",
|
|
49358
|
-
size: 16
|
|
49571
|
+
size: 16,
|
|
49572
|
+
name: "ring",
|
|
49573
|
+
ignoreConfig: true
|
|
49359
49574
|
})
|
|
49360
49575
|
});
|
|
49361
49576
|
};
|
|
@@ -50733,7 +50948,9 @@ var NodeContent = function NodeContent(props) {
|
|
|
50733
50948
|
dir: config.direction,
|
|
50734
50949
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
50735
50950
|
size: 12,
|
|
50736
|
-
jssStyle: jssStyle
|
|
50951
|
+
jssStyle: jssStyle,
|
|
50952
|
+
ignoreConfig: true,
|
|
50953
|
+
name: "ring"
|
|
50737
50954
|
})
|
|
50738
50955
|
});
|
|
50739
50956
|
};
|
|
@@ -57679,35 +57896,47 @@ var useTableSort = function useTableSort(props) {
|
|
|
57679
57896
|
|
|
57680
57897
|
|
|
57681
57898
|
|
|
57682
|
-
var getExpandData = function getExpandData(
|
|
57899
|
+
var getExpandData = function getExpandData(_treeData, keys, keygen, treeColumnsName) {
|
|
57683
57900
|
var expandKeys = keys;
|
|
57684
57901
|
var expandSet = new Set(expandKeys);
|
|
57685
|
-
var
|
|
57902
|
+
var unmatchExpandKeys = [];
|
|
57903
|
+
var treeExpandLevel = new Map();
|
|
57686
57904
|
if (expandSet.size === 0 || !treeColumnsName) {
|
|
57687
|
-
return
|
|
57905
|
+
return {
|
|
57906
|
+
treeData: _treeData,
|
|
57907
|
+
treeExpandLevel: treeExpandLevel,
|
|
57908
|
+
unmatchExpandKeys: unmatchExpandKeys
|
|
57909
|
+
};
|
|
57688
57910
|
}
|
|
57689
|
-
var
|
|
57911
|
+
var treeData = toConsumableArray_default()(_treeData || []);
|
|
57690
57912
|
var _loop = function _loop() {
|
|
57691
57913
|
if (expandSet.size === 0) return 1; // break
|
|
57692
|
-
var item =
|
|
57914
|
+
var item = treeData[i];
|
|
57693
57915
|
var key = getKey(keygen, item, i);
|
|
57694
|
-
var parentLevel =
|
|
57916
|
+
var parentLevel = treeExpandLevel.get(key) || 0;
|
|
57695
57917
|
var children = is_isObject(item) && item[treeColumnsName];
|
|
57696
|
-
if (expandSet.has(key)
|
|
57697
|
-
children.
|
|
57698
|
-
|
|
57699
|
-
|
|
57700
|
-
|
|
57701
|
-
|
|
57918
|
+
if (expandSet.has(key)) {
|
|
57919
|
+
if (children && children.length > 0) {
|
|
57920
|
+
children.forEach(function (child) {
|
|
57921
|
+
treeExpandLevel.set(getKey(keygen, child), parentLevel + 1);
|
|
57922
|
+
});
|
|
57923
|
+
treeData.splice.apply(treeData, [i + 1, 0].concat(toConsumableArray_default()(children)));
|
|
57924
|
+
expandSet.delete(key);
|
|
57925
|
+
} else {
|
|
57926
|
+
unmatchExpandKeys.push(key);
|
|
57927
|
+
}
|
|
57702
57928
|
}
|
|
57703
57929
|
};
|
|
57704
|
-
for (var i = 0; i <
|
|
57930
|
+
for (var i = 0; i < treeData.length; i++) {
|
|
57705
57931
|
if (_loop()) break;
|
|
57706
57932
|
}
|
|
57707
|
-
return
|
|
57933
|
+
return {
|
|
57934
|
+
treeData: treeData,
|
|
57935
|
+
treeExpandLevel: treeExpandLevel,
|
|
57936
|
+
unmatchExpandKeys: unmatchExpandKeys
|
|
57937
|
+
};
|
|
57708
57938
|
};
|
|
57709
57939
|
var useTableTree = function useTableTree(props) {
|
|
57710
|
-
var _props$data$filter;
|
|
57711
57940
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultTreeExpandKeys || []),
|
|
57712
57941
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
57713
57942
|
expandKeysState = _useState2[0],
|
|
@@ -57748,13 +57977,27 @@ var useTableTree = function useTableTree(props) {
|
|
|
57748
57977
|
var _useMemo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
57749
57978
|
return getExpandData(props.data, expandKeys, props.keygen, props.treeColumnsName);
|
|
57750
57979
|
}, [props.data, expandKeys, props.treeColumnsName]),
|
|
57751
|
-
|
|
57752
|
-
|
|
57753
|
-
|
|
57754
|
-
var isEmptyTree = (
|
|
57755
|
-
var
|
|
57756
|
-
return (
|
|
57757
|
-
|
|
57980
|
+
treeData = _useMemo.treeData,
|
|
57981
|
+
treeExpandLevel = _useMemo.treeExpandLevel,
|
|
57982
|
+
unmatchExpandKeys = _useMemo.unmatchExpandKeys;
|
|
57983
|
+
var isEmptyTree = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
57984
|
+
var _props$data$filter;
|
|
57985
|
+
return ((_props$data$filter = props.data.filter(function (item) {
|
|
57986
|
+
var _item;
|
|
57987
|
+
return (_item = item[props.treeColumnsName]) === null || _item === void 0 ? void 0 : _item.length;
|
|
57988
|
+
})) === null || _props$data$filter === void 0 ? void 0 : _props$data$filter.length) === 0;
|
|
57989
|
+
}, [props.data, props.treeColumnsName]);
|
|
57990
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
57991
|
+
if (!unmatchExpandKeys.length || !expandKeysState.length) {
|
|
57992
|
+
return;
|
|
57993
|
+
}
|
|
57994
|
+
|
|
57995
|
+
// 检查treeData中的每一项,对比expandKeysState,如果expandKeysState有但是children是空的,则需要修正expandKeysState
|
|
57996
|
+
var newExpandKeys = expandKeysState.filter(function (key) {
|
|
57997
|
+
return !unmatchExpandKeys.includes(key);
|
|
57998
|
+
});
|
|
57999
|
+
setExpandKeysState(newExpandKeys);
|
|
58000
|
+
}, [unmatchExpandKeys, expandKeysState]);
|
|
57758
58001
|
return {
|
|
57759
58002
|
data: treeData,
|
|
57760
58003
|
treeExpandLevel: treeExpandLevel,
|
|
@@ -58520,6 +58763,7 @@ var thead_toNum = toNum;
|
|
|
58520
58763
|
};
|
|
58521
58764
|
var isCustomRender = props.renderSorter && typeof props.renderSorter === 'function';
|
|
58522
58765
|
var renderedSortDirections = (_ref = (_column$sortDirection = column.sortDirections) !== null && _column$sortDirection !== void 0 ? _column$sortDirection : props.sortDirections) !== null && _ref !== void 0 ? _ref : ['asc', 'desc'];
|
|
58766
|
+
var onlyOneDirection = renderedSortDirections.length === 1;
|
|
58523
58767
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
58524
58768
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterContainer,
|
|
58525
58769
|
dir: config.direction,
|
|
@@ -58537,12 +58781,18 @@ var thead_toNum = toNum;
|
|
|
58537
58781
|
onClick: function onClick() {
|
|
58538
58782
|
handleChange(currentOrder === 'asc' ? null : 'asc');
|
|
58539
58783
|
},
|
|
58784
|
+
style: onlyOneDirection ? {
|
|
58785
|
+
marginBottom: 0
|
|
58786
|
+
} : {},
|
|
58540
58787
|
children: icons_config.table.SortUp
|
|
58541
58788
|
}), renderedSortDirections.includes('desc') && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
58542
58789
|
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterDesc, currentOrder === 'desc' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterActive)),
|
|
58543
58790
|
onClick: function onClick() {
|
|
58544
58791
|
handleChange(currentOrder === 'desc' ? null : 'desc');
|
|
58545
58792
|
},
|
|
58793
|
+
style: onlyOneDirection ? {
|
|
58794
|
+
marginTop: 0
|
|
58795
|
+
} : {},
|
|
58546
58796
|
children: icons_config.table.SortDown
|
|
58547
58797
|
})]
|
|
58548
58798
|
})
|
|
@@ -58959,7 +59209,7 @@ var Tr = function Tr(props) {
|
|
|
58959
59209
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
58960
59210
|
while (1) switch (_context.prev = _context.next) {
|
|
58961
59211
|
case 0:
|
|
58962
|
-
if (!(showLoader && props.loader)) {
|
|
59212
|
+
if (!(showLoader && props.loader && typeof props.loader === 'function')) {
|
|
58963
59213
|
_context.next = 11;
|
|
58964
59214
|
break;
|
|
58965
59215
|
}
|
|
@@ -59015,7 +59265,9 @@ var Tr = function Tr(props) {
|
|
|
59015
59265
|
if (isExpandLoading) {
|
|
59016
59266
|
$expandIcon = /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
59017
59267
|
size: 12,
|
|
59018
|
-
jssStyle: props.jssStyle
|
|
59268
|
+
jssStyle: props.jssStyle,
|
|
59269
|
+
name: "ring",
|
|
59270
|
+
ignoreConfig: true
|
|
59019
59271
|
});
|
|
59020
59272
|
}
|
|
59021
59273
|
var $expandIconWrapper;
|
|
@@ -60951,116 +61203,6 @@ var BaseTextarea = function BaseTextarea(props) {
|
|
|
60951
61203
|
|
|
60952
61204
|
src_textarea_textarea_0.displayName = 'ShineoutTextarea';
|
|
60953
61205
|
/* harmony default export */ var src_textarea_0 = (src_textarea_textarea_0);
|
|
60954
|
-
;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
|
|
60955
|
-
|
|
60956
|
-
|
|
60957
|
-
|
|
60958
|
-
|
|
60959
|
-
|
|
60960
|
-
|
|
60961
|
-
|
|
60962
|
-
|
|
60963
|
-
|
|
60964
|
-
var defaultDelay = 0;
|
|
60965
|
-
var Tooltip = function Tooltip(props) {
|
|
60966
|
-
var _jssStyle$tooltip;
|
|
60967
|
-
var _props$trigger = props.trigger,
|
|
60968
|
-
trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
|
|
60969
|
-
priorityDirection = props.priorityDirection,
|
|
60970
|
-
children = props.children,
|
|
60971
|
-
tip = props.tip,
|
|
60972
|
-
disabledChild = props.disabledChild,
|
|
60973
|
-
jssStyle = props.jssStyle,
|
|
60974
|
-
className = props.className,
|
|
60975
|
-
style = props.style,
|
|
60976
|
-
zIndex = props.zIndex,
|
|
60977
|
-
_props$type = props.type,
|
|
60978
|
-
type = _props$type === void 0 ? 'default' : _props$type,
|
|
60979
|
-
_props$position = props.position,
|
|
60980
|
-
popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
|
|
60981
|
-
var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
|
|
60982
|
-
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
60983
|
-
var config = useConfig();
|
|
60984
|
-
var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
|
|
60985
|
-
var delay = props.delay || props.mouseEnterDelay || defaultDelay;
|
|
60986
|
-
var _usePopup = use_popup({
|
|
60987
|
-
position: popsitionProps,
|
|
60988
|
-
trigger: trigger,
|
|
60989
|
-
autoMode: 'popover',
|
|
60990
|
-
priorityDirection: priorityDirection,
|
|
60991
|
-
mouseEnterDelay: delay,
|
|
60992
|
-
targetEvents: disabledChild ? {} : childrenProps
|
|
60993
|
-
}),
|
|
60994
|
-
open = _usePopup.open,
|
|
60995
|
-
position = _usePopup.position,
|
|
60996
|
-
getTargetProps = _usePopup.getTargetProps,
|
|
60997
|
-
targetRef = _usePopup.targetRef,
|
|
60998
|
-
popupRef = _usePopup.popupRef,
|
|
60999
|
-
arrowRef = _usePopup.arrowRef;
|
|
61000
|
-
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
61001
|
-
console.error(new Error('Tooltip children expect a single ReactElement.'));
|
|
61002
|
-
return null;
|
|
61003
|
-
}
|
|
61004
|
-
if (!tip) return children;
|
|
61005
|
-
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
61006
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
61007
|
-
style: {
|
|
61008
|
-
cursor: 'not-allowed'
|
|
61009
|
-
},
|
|
61010
|
-
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
61011
|
-
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
61012
|
-
pointerEvents: 'none'
|
|
61013
|
-
})
|
|
61014
|
-
})
|
|
61015
|
-
}) : children;
|
|
61016
|
-
var events = getTargetProps();
|
|
61017
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
61018
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
61019
|
-
ref: function ref(el) {
|
|
61020
|
-
if (!el) return;
|
|
61021
|
-
var targetEl = el.nextElementSibling;
|
|
61022
|
-
if (!targetEl) return;
|
|
61023
|
-
if (targetRef.current === targetEl) return;
|
|
61024
|
-
targetRef.current = targetEl;
|
|
61025
|
-
}
|
|
61026
|
-
}, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
61027
|
-
focus: open,
|
|
61028
|
-
parentElRef: targetRef,
|
|
61029
|
-
popupElRef: popupRef,
|
|
61030
|
-
arrowRef: arrowRef,
|
|
61031
|
-
absolute: true,
|
|
61032
|
-
adjust: popsitionProps === 'auto',
|
|
61033
|
-
position: position,
|
|
61034
|
-
fixedWidth: false,
|
|
61035
|
-
popupGap: 0
|
|
61036
|
-
// arrowStyleRef={arrowStyleRef}
|
|
61037
|
-
,
|
|
61038
|
-
zIndex: zIndex,
|
|
61039
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
61040
|
-
className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
|
|
61041
|
-
}, getDataAttribute({
|
|
61042
|
-
type: type,
|
|
61043
|
-
position: position
|
|
61044
|
-
})), {}, {
|
|
61045
|
-
ref: popupRef,
|
|
61046
|
-
onMouseLeave: events.onMouseLeave,
|
|
61047
|
-
dir: config.direction,
|
|
61048
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
61049
|
-
ref: arrowRef,
|
|
61050
|
-
style: arrowStyleRef.current,
|
|
61051
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
|
|
61052
|
-
}, getDataAttribute({
|
|
61053
|
-
role: 'arrow'
|
|
61054
|
-
}))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
61055
|
-
style: style,
|
|
61056
|
-
className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
|
|
61057
|
-
children: tip
|
|
61058
|
-
})]
|
|
61059
|
-
}))
|
|
61060
|
-
})]
|
|
61061
|
-
});
|
|
61062
|
-
};
|
|
61063
|
-
/* harmony default export */ var src_tooltip_tooltip = (Tooltip);
|
|
61064
61206
|
;// CONCATENATED MODULE: ./src/tooltip/tooltip.tsx
|
|
61065
61207
|
|
|
61066
61208
|
|
|
@@ -61487,7 +61629,7 @@ var TransferList = function TransferList(props) {
|
|
|
61487
61629
|
var listClass = classnames_default()(styles.list, listClassName);
|
|
61488
61630
|
var getLineHeight = function getLineHeight() {
|
|
61489
61631
|
if (lineHeightProp) {
|
|
61490
|
-
console.log('lineHeightProp', lineHeightProp);
|
|
61632
|
+
// console.log('lineHeightProp', lineHeightProp);
|
|
61491
61633
|
return lineHeightProp;
|
|
61492
61634
|
}
|
|
61493
61635
|
if (size === 'small') {
|
|
@@ -61629,6 +61771,8 @@ var TransferList = function TransferList(props) {
|
|
|
61629
61771
|
jssStyle: jssStyle,
|
|
61630
61772
|
loading: loading,
|
|
61631
61773
|
size: 24,
|
|
61774
|
+
name: "ring",
|
|
61775
|
+
ignoreConfig: true,
|
|
61632
61776
|
children: [onFilter && renderFilter(), renderList(), renderFooter()]
|
|
61633
61777
|
})]
|
|
61634
61778
|
});
|
|
@@ -63252,7 +63396,8 @@ var upload_result_Result = function Result(props) {
|
|
|
63252
63396
|
children: [status === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
63253
63397
|
jssStyle: props.jssStyle,
|
|
63254
63398
|
size: 10,
|
|
63255
|
-
name: 'ring'
|
|
63399
|
+
name: 'ring',
|
|
63400
|
+
ignoreConfig: true
|
|
63256
63401
|
}), status === 2 && icons_config.upload.Success, status === 3 && icons_config.upload.Warning]
|
|
63257
63402
|
}), status === 1 && props.process !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
63258
63403
|
children: [Math.min(99, Math.floor(props.process || 0)), "%"]
|
|
@@ -63305,6 +63450,7 @@ var upload_result_Result = function Result(props) {
|
|
|
63305
63450
|
size: 'null',
|
|
63306
63451
|
jssStyle: props.jssStyle,
|
|
63307
63452
|
name: 'ring',
|
|
63453
|
+
ignoreConfig: true,
|
|
63308
63454
|
className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultLoading
|
|
63309
63455
|
}), (status === 2 || status === -1) && src && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63310
63456
|
className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
|
|
@@ -63752,7 +63898,9 @@ var UploadButton = function UploadButton(props) {
|
|
|
63752
63898
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
63753
63899
|
jssStyle: props.jssStyle,
|
|
63754
63900
|
size: 10,
|
|
63755
|
-
color: color
|
|
63901
|
+
color: color,
|
|
63902
|
+
ignoreConfig: true,
|
|
63903
|
+
name: "ring"
|
|
63756
63904
|
})
|
|
63757
63905
|
}), typeof loading === 'string' ? loading : placeholder]
|
|
63758
63906
|
});
|
|
@@ -66146,7 +66294,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
66146
66294
|
|
|
66147
66295
|
|
|
66148
66296
|
/* harmony default export */ var src_0 = ({
|
|
66149
|
-
version: '3.5.0
|
|
66297
|
+
version: '3.5.0'
|
|
66150
66298
|
});
|
|
66151
66299
|
}();
|
|
66152
66300
|
/******/ return __webpack_exports__;
|