@unicom-cloud/ui-common 0.1.48 → 0.1.49
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/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.js +1 -1
- package/animation/constants.js +1 -1
- package/animation/context.js +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/base/Base.js +1 -1
- package/base/constants.js +1 -1
- package/base/context.js +1 -1
- package/base/index.js +1 -1
- package/base/style/index.js +1 -1
- package/base/utils.js +1 -1
- package/border-beam/BorderBeam.js +1 -1
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +1 -1
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.js +1 -1
- package/development/Development.js +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +1 -1
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/constants.js +1 -1
- package/empty/context.js +1 -1
- package/empty/index.js +1 -1
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/FlexVertical.js +1 -1
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/constants.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/context.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +1 -1
- package/hoc/withContext.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.js +1 -1
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +1 -1
- package/hooks/use-deep-compare-effect/index.js +1 -1
- package/hooks/use-deep-compare-layout-effect/index.js +1 -1
- package/hooks/use-document-visibility/index.js +1 -1
- package/hooks/use-drag/index.js +1 -1
- package/hooks/use-drag-move/index.js +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +1 -1
- package/hooks/use-favicon/index.js +1 -1
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-viewport/index.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-local-storage-state/index.js +1 -1
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-component-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-ref-map/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +1 -1
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +1 -1
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +1 -1
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle-effect/index.js +1 -1
- package/hooks/use-throttle-fn/index.js +1 -1
- package/hooks/use-throttle-fn-with-raf/index.js +1 -1
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +1 -1
- package/hooks/use-toggle/index.js +1 -1
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +1 -1
- package/hooks/use-update/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-url-state/index.js +1 -1
- package/hooks/use-virtual-list/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +1 -1
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/utils/createEffectWithTarget.js +1 -1
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +1 -1
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/File.js +1 -1
- package/icons/file/context.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/index.js +251 -250
- package/morphicons/core/interpolate.js +1 -1
- package/morphicons/core/normalize.js +1 -1
- package/morphicons/core/resample.js +2 -2
- package/morphicons/core/serialize.js +1 -1
- package/morphicons/core/spring.js +1 -1
- package/morphicons/dom/index.js +2 -2
- package/morphicons/index.js +1 -1
- package/morphicons/react/index.js +1 -1
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/constants.js +1 -1
- package/resize-observer/context.js +1 -1
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.js +1 -1
- package/space/SpaceVertical.js +1 -1
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/constants.js +1 -1
- package/timer/context.js +1 -1
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.js +2 -2
- package/transition/TransitionCSS.js +1 -1
- package/transition/TransitionGroup.js +1 -1
- package/transition/TransitionStyle.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/style/index.js +1 -1
- package/transition/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/confetti.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/createRoot.d.ts +14 -0
- package/utils/createRoot.js +57 -0
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.js +25 -25
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/getCompatProp.js +1 -1
- package/utils/getElement.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getPrefixCls.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +12 -12
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getScrollParent.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/getURLSearchByParams.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +127 -126
- package/utils/initAllLineClamp.js +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/migrateLegacyProps.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -1
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +2 -2
- package/utils/reactNode.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/scrollTo.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +2 -2
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/version/index.js +7 -7
- package/utils/setCreateRoot.d.ts +0 -13
- package/utils/setCreateRoot.js +0 -55
- /package/{base → resize-observer}/style/index.css +0 -0
package/utils/dom.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/* 潘启宝 2026-09-
|
|
1
|
+
/* 潘启宝 2026-09-14 17:09:24 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { isServerRendering as e } from "./is.js";
|
|
4
4
|
import t from "./getElement.js";
|
|
5
5
|
import n from "./screenfull.js";
|
|
6
|
-
import { isEventTarget as r, isFunction as i, isHTMLElement as a,
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { isEventTarget as r, isFunction as i, isHTMLElement as a, isInstanceOf as o, isScrollElement as s, isString as c } from "@unicom-cloud/utils/is";
|
|
7
|
+
import l from "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
8
|
+
import u from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
|
|
9
|
+
import d from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
10
10
|
//#region components/common/utils/dom.ts
|
|
11
|
-
function d(t, n, a, o) {
|
|
12
|
-
e || r(t) && s(n) && i(a) && t.addEventListener(n, a, o ?? !1);
|
|
13
|
-
}
|
|
14
11
|
function f(t, n, a, o) {
|
|
15
|
-
e || r(t) &&
|
|
12
|
+
e || r(t) && c(n) && i(a) && t.addEventListener(n, a, o ?? !1);
|
|
13
|
+
}
|
|
14
|
+
function p(t, n, a, o) {
|
|
15
|
+
e || r(t) && c(n) && i(a) && t.removeEventListener(n, a, o ?? !1);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function m(e, t) {
|
|
18
18
|
if (!(e && t)) return !1;
|
|
19
19
|
if (i(e.contains)) return e.contains(t);
|
|
20
20
|
let n = t;
|
|
@@ -24,12 +24,12 @@ function p(e, t) {
|
|
|
24
24
|
}
|
|
25
25
|
return !1;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function h(e, t = x()) {
|
|
28
28
|
let n = [], r = e;
|
|
29
|
-
for (; r && r !== t;)
|
|
29
|
+
for (; r && r !== t;) s(r) && n.push(r), r = r.parentElement;
|
|
30
30
|
return n;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function g(e, t) {
|
|
33
33
|
if (!e || !t) return !1;
|
|
34
34
|
if (e.contains) return e.contains(t);
|
|
35
35
|
let n = t;
|
|
@@ -39,26 +39,26 @@ function h(e, t) {
|
|
|
39
39
|
}
|
|
40
40
|
return !1;
|
|
41
41
|
}
|
|
42
|
-
function g() {
|
|
43
|
-
return x().head;
|
|
44
|
-
}
|
|
45
42
|
function _() {
|
|
46
|
-
return
|
|
43
|
+
return S().head;
|
|
47
44
|
}
|
|
48
45
|
function v() {
|
|
49
|
-
return
|
|
46
|
+
return S().body;
|
|
50
47
|
}
|
|
51
48
|
function y() {
|
|
52
|
-
return
|
|
49
|
+
return v();
|
|
53
50
|
}
|
|
54
51
|
function b() {
|
|
55
|
-
return
|
|
52
|
+
return n.element || y();
|
|
56
53
|
}
|
|
57
54
|
function x() {
|
|
55
|
+
return S().documentElement;
|
|
56
|
+
}
|
|
57
|
+
function S() {
|
|
58
58
|
return window.document;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
if (e.focus(),
|
|
60
|
+
function C(e) {
|
|
61
|
+
if (e.focus(), [HTMLInputElement, HTMLTextAreaElement].some((t, n, r) => o(e, t))) {
|
|
62
62
|
let t = e;
|
|
63
63
|
t.selectionStart = t.selectionEnd = t.value.length;
|
|
64
64
|
return;
|
|
@@ -66,7 +66,7 @@ function S(e) {
|
|
|
66
66
|
let t = document.createRange(), n = window.getSelection();
|
|
67
67
|
t.selectNodeContents(e), t.collapse(!1), n && (n.removeAllRanges(), n.addRange(t));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function w(e) {
|
|
70
70
|
if (!a(e)) return {
|
|
71
71
|
width: 0,
|
|
72
72
|
height: 0
|
|
@@ -77,8 +77,8 @@ function C(e) {
|
|
|
77
77
|
height: i
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var T = t;
|
|
81
81
|
//#endregion
|
|
82
|
-
export {
|
|
82
|
+
export { l as canUseDOM, m as contains, C as focusAtEnd, d as forceReflow, d as reflow, v as getBody, y as getBodyContainer, T as getDOM, S as getDocument, x as getDocumentElement, t as getElement, u as getElementCoordinates, w as getElementOuterSize, _ as getHead, h as getScrollElements, b as getTopLevelOverlayContainer, p as off, f as on, g as parentContainsChildren };
|
|
83
83
|
/* 欲穷千里目,更上一层楼 */
|
|
84
84
|
/* 独立思考,明辨是非 */
|
package/utils/emitter.js
CHANGED
package/utils/file.js
CHANGED
package/utils/fileRead.js
CHANGED
package/utils/fileToDataURL.js
CHANGED
package/utils/fillNBSP.js
CHANGED
package/utils/getCompatProp.js
CHANGED
package/utils/getElement.js
CHANGED
package/utils/getPrefixCls.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/* 潘启宝 2026-09-
|
|
1
|
+
/* 潘启宝 2026-09-14 17:09:24 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { getBody as e, getDocumentElement as t } from "./dom.js";
|
|
4
|
-
import {
|
|
4
|
+
import { isInstanceOf as n, isNaN as r } from "@unicom-cloud/utils/is";
|
|
5
5
|
//#region components/common/utils/getScrollBarSize.ts
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
if (!(
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
6
|
+
var i = (i, a = "width") => {
|
|
7
|
+
let o = 0;
|
|
8
|
+
if (!(i instanceof HTMLElement)) return o;
|
|
9
|
+
let s = a === "width", c = s ? "innerWidth" : "innerHeight", l = s ? "offsetWidth" : "offsetHeight", u = s ? "clientWidth" : "clientHeight";
|
|
10
|
+
if (i === e() || n(i, HTMLBodyElement)) o = window[c] - (e()[u] || t()[u]);
|
|
11
11
|
else {
|
|
12
|
-
let e = getComputedStyle(
|
|
12
|
+
let e = getComputedStyle(i), t = s ? "borderInlineStartWidth" : "borderBlockStartWidth", n = s ? "borderInlineEndWidth" : "borderBlockEndWidth", a = [e[t], e[n]].reduce((e, t, n, i) => {
|
|
13
13
|
let a = parseFloat(t);
|
|
14
|
-
return
|
|
14
|
+
return r(a) && (a = 0), e + a;
|
|
15
15
|
}, 0);
|
|
16
|
-
|
|
16
|
+
o = i[l] - a - i[u];
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return o;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { i as default, i as getScrollBarSize };
|
|
22
22
|
/* 欲穷千里目,更上一层楼 */
|
|
23
23
|
/* 独立思考,明辨是非 */
|
package/utils/getScrollParent.js
CHANGED
package/utils/getStringLength.js
CHANGED
package/utils/include.js
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './className';
|
|
|
6
6
|
export * from './confetti';
|
|
7
7
|
export * from './constants';
|
|
8
8
|
export * from './copy';
|
|
9
|
+
export * from './createRoot';
|
|
9
10
|
export * from './css';
|
|
10
11
|
export * from './date';
|
|
11
12
|
export * from './dayjs';
|
|
@@ -46,7 +47,6 @@ export * from './resizeObserver';
|
|
|
46
47
|
export * from './saveAs';
|
|
47
48
|
export * from './screenfull';
|
|
48
49
|
export * from './scrollIntoViewIfNeeded';
|
|
49
|
-
export * from './setCreateRoot';
|
|
50
50
|
export * from './setDarkTheme';
|
|
51
51
|
export * from './setDir';
|
|
52
52
|
export * from './setPrimaryColor';
|