@gx-design-vue/pro-utils 0.2.0-beta.86 → 0.2.0-beta.88
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/LICENSE +21 -0
- package/README.md +73 -2
- package/dist/array/index.d.ts +5 -0
- package/dist/array/index.js +6 -0
- package/dist/array/slice.d.ts +4 -0
- package/dist/array/slice.js +28 -0
- package/dist/array/sort.d.ts +7 -0
- package/dist/array/sort.js +65 -0
- package/dist/array/tree.d.ts +25 -0
- package/dist/array/tree.js +157 -0
- package/dist/array/unique.d.ts +6 -0
- package/dist/array/unique.js +14 -0
- package/dist/base64/index.d.ts +10 -19
- package/dist/base64/index.js +106 -0
- package/dist/class/index.d.ts +2 -0
- package/dist/class/index.js +3 -0
- package/dist/class/prefix.d.ts +15 -0
- package/dist/class/prefix.js +15 -0
- package/dist/clone/cloneDeep.d.ts +4 -0
- package/dist/clone/cloneDeep.js +35 -0
- package/dist/clone/cloneDeepWith.d.ts +6 -0
- package/dist/clone/cloneDeepWith.js +150 -0
- package/dist/clone/getTag.d.ts +4 -0
- package/dist/clone/getTag.js +13 -0
- package/dist/clone/index.d.ts +3 -0
- package/dist/clone/index.js +4 -0
- package/dist/clone/symbols.d.ts +4 -0
- package/dist/clone/symbols.js +13 -0
- package/dist/clone/tags.d.ts +25 -0
- package/dist/clone/tags.js +48 -0
- package/dist/dom/event.d.ts +5 -0
- package/dist/dom/event.js +26 -0
- package/dist/dom/index.d.ts +5 -0
- package/dist/dom/index.js +6 -0
- package/dist/dom/measure.d.ts +12 -0
- package/dist/dom/measure.js +42 -0
- package/dist/dom/raf.d.ts +7 -0
- package/dist/dom/raf.js +44 -0
- package/dist/dom/scroll.d.ts +10 -0
- package/dist/dom/scroll.js +74 -0
- package/dist/file/config.d.ts +10 -0
- package/dist/file/config.js +81 -0
- package/dist/file/convert.d.ts +8 -0
- package/dist/file/convert.js +69 -0
- package/dist/file/index.d.ts +5 -0
- package/dist/file/index.js +6 -0
- package/dist/file/media.d.ts +16 -0
- package/dist/file/media.js +161 -0
- package/dist/file/type.d.ts +6 -0
- package/dist/file/type.js +58 -0
- package/dist/function/copy.d.ts +6 -0
- package/dist/function/copy.js +13 -0
- package/dist/function/getValue.d.ts +5 -0
- package/dist/function/getValue.js +19 -0
- package/dist/function/index.d.ts +5 -0
- package/dist/function/index.js +6 -0
- package/dist/function/object.d.ts +6 -0
- package/dist/function/object.js +33 -0
- package/dist/function/run.d.ts +4 -0
- package/dist/function/run.js +15 -0
- package/dist/index.d.ts +58 -26
- package/dist/index.js +60 -0
- package/dist/is/base64.d.ts +5 -0
- package/dist/is/base64.js +27 -0
- package/dist/is/browser.d.ts +4 -0
- package/dist/is/browser.js +14 -0
- package/dist/is/deepEqual.d.ts +4 -0
- package/dist/is/deepEqual.js +62 -0
- package/dist/is/device.d.ts +6 -0
- package/dist/is/device.js +37 -0
- package/dist/is/equal.d.ts +4 -0
- package/dist/is/equal.js +34 -0
- package/dist/is/img.d.ts +4 -0
- package/dist/is/img.js +13 -0
- package/dist/is/index.d.ts +16 -0
- package/dist/is/index.js +17 -0
- package/dist/is/nil.d.ts +5 -0
- package/dist/is/nil.js +22 -0
- package/dist/is/plainObject.d.ts +5 -0
- package/dist/is/plainObject.js +30 -0
- package/dist/is/primitive.d.ts +4 -0
- package/dist/is/primitive.js +13 -0
- package/dist/is/server.d.ts +4 -0
- package/dist/is/server.js +10 -0
- package/dist/is/type.d.ts +11 -0
- package/dist/is/type.js +84 -0
- package/dist/is/typedArray.d.ts +4 -0
- package/dist/is/typedArray.js +33 -0
- package/dist/is/unsafeProperty.d.ts +4 -0
- package/dist/is/unsafeProperty.js +18 -0
- package/dist/is/url.d.ts +4 -0
- package/dist/is/url.js +20 -0
- package/dist/is/valid.d.ts +5 -0
- package/dist/is/valid.js +23 -0
- package/dist/merge/index.d.ts +6 -49
- package/dist/merge/index.js +41 -0
- package/dist/merge/mergeWith.d.ts +4 -49
- package/dist/merge/mergeWith.js +31 -0
- package/dist/number/chinese.d.ts +4 -0
- package/dist/number/chinese.js +46 -0
- package/dist/number/format.d.ts +13 -0
- package/dist/number/format.js +72 -0
- package/dist/number/index.d.ts +3 -0
- package/dist/number/index.js +4 -0
- package/dist/object/classNames.d.ts +4 -0
- package/dist/object/classNames.js +30 -0
- package/dist/object/index.d.ts +5 -0
- package/dist/object/index.js +6 -0
- package/dist/object/omitBoolean.d.ts +4 -0
- package/dist/object/omitBoolean.js +13 -0
- package/dist/object/omitUndefined.d.ts +6 -0
- package/dist/object/omitUndefined.js +18 -0
- package/dist/object/omitUndefinedAndEmptyArr.d.ts +4 -0
- package/dist/object/omitUndefinedAndEmptyArr.js +19 -0
- package/dist/pro-utils.js +1 -1166
- package/dist/string/duration.d.ts +4 -0
- package/dist/string/duration.js +25 -0
- package/dist/string/empty.d.ts +7 -0
- package/dist/string/empty.js +26 -0
- package/dist/string/index.d.ts +5 -0
- package/dist/string/index.js +6 -0
- package/dist/string/nanoid.d.ts +4 -0
- package/dist/string/nanoid.js +32 -0
- package/dist/string/uuid.d.ts +9 -0
- package/dist/string/uuid.js +57 -0
- package/dist/table/column.d.ts +13 -0
- package/dist/table/column.js +42 -0
- package/dist/table/index.d.ts +3 -0
- package/dist/table/index.js +4 -0
- package/dist/table/page.d.ts +6 -0
- package/dist/table/page.js +23 -0
- package/dist/typing.d.ts +37 -0
- package/dist/typing.js +1 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +3 -0
- package/dist/vue/slots.d.ts +56 -0
- package/dist/vue/slots.js +89 -0
- package/package.json +48 -23
- package/dist/classNames/index.d.ts +0 -2
- package/dist/cloneDeep/cloneDeepWith.d.ts +0 -43
- package/dist/cloneDeep/index.d.ts +0 -47
- package/dist/getValueFromObjectByKey/index.d.ts +0 -3
- package/dist/isBrowser/index.d.ts +0 -1
- package/dist/isDeepEqualReact/index.d.ts +0 -1
- package/dist/isImg/index.d.ts +0 -2
- package/dist/isNil/index.d.ts +0 -1
- package/dist/isServer.d.ts +0 -2
- package/dist/isUrl/index.d.ts +0 -6
- package/dist/merge/useDeepMege.d.ts +0 -43
- package/dist/nanoid/index.d.ts +0 -6
- package/dist/omitBoolean/index.d.ts +0 -6
- package/dist/omitUndefined/index.d.ts +0 -2
- package/dist/omitUndefinedAndEmptyArr/index.d.ts +0 -1
- package/dist/pro-utils.umd.cjs +0 -13
- package/dist/scroll/easings.d.ts +0 -1
- package/dist/scroll/getScroll.d.ts +0 -2
- package/dist/scroll/index.d.ts +0 -4
- package/dist/scroll/scrollTo.d.ts +0 -10
- package/dist/scroll/throttleByAnimationFrame.d.ts +0 -5
- package/dist/slots/index.d.ts +0 -68
- package/dist/typings/index.d.ts +0 -40
- package/dist/utils/config.d.ts +0 -7
- package/dist/utils/getSymbols.d.ts +0 -1
- package/dist/utils/getTag.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -333
- package/dist/utils/isEqual.d.ts +0 -9
- package/dist/utils/isNotNil.d.ts +0 -1
- package/dist/utils/isPlainObject.d.ts +0 -43
- package/dist/utils/isPrimitive.d.ts +0 -29
- package/dist/utils/isTypedArray.d.ts +0 -27
- package/dist/utils/isUnsafeProperty.d.ts +0 -11
- package/dist/utils/isValid.d.ts +0 -2
- package/dist/utils/raf.d.ts +0 -5
- package/dist/utils/tags.d.ts +0 -26
- package/dist/utils/validate.d.ts +0 -28
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a deep clone of the given object.
|
|
3
|
-
*
|
|
4
|
-
* @template T - The type of the object.
|
|
5
|
-
* @param {T} obj - The object to clone.
|
|
6
|
-
* @returns {T} - A deep clone of the given object.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* // Clone a primitive values
|
|
10
|
-
* const num = 29;
|
|
11
|
-
* const clonedNum = clone(num);
|
|
12
|
-
* console.log(clonedNum); // 29
|
|
13
|
-
* console.log(clonedNum === num); // true
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* // Clone an array
|
|
17
|
-
* const arr = [1, 2, 3];
|
|
18
|
-
* const clonedArr = clone(arr);
|
|
19
|
-
* console.log(clonedArr); // [1, 2, 3]
|
|
20
|
-
* console.log(clonedArr === arr); // false
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Clone an array with nested objects
|
|
24
|
-
* const arr = [1, { a: 1 }, [1, 2, 3]];
|
|
25
|
-
* const clonedArr = clone(arr);
|
|
26
|
-
* arr[1].a = 2;
|
|
27
|
-
* console.log(arr); // [2, { a: 2 }, [1, 2, 3]]
|
|
28
|
-
* console.log(clonedArr); // [1, { a: 1 }, [1, 2, 3]]
|
|
29
|
-
* console.log(clonedArr === arr); // false
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* // Clone an object
|
|
33
|
-
* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };
|
|
34
|
-
* const clonedObj = clone(obj);
|
|
35
|
-
* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }
|
|
36
|
-
* console.log(clonedObj === obj); // false
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* // Clone an object with nested objects
|
|
40
|
-
* const obj = { a: 1, b: { c: 1 } };
|
|
41
|
-
* const clonedObj = clone(obj);
|
|
42
|
-
* obj.b.c = 2;
|
|
43
|
-
* console.log(obj); // { a: 1, b: { c: 2 } }
|
|
44
|
-
* console.log(clonedObj); // { a: 1, b: { c: 1 } }
|
|
45
|
-
* console.log(clonedObj === obj); // false
|
|
46
|
-
*/
|
|
47
|
-
export declare function cloneDeep<T>(obj: T): T;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
type DeepValueOf<T, K> = K extends `${infer First}:${infer Rest}` ? First extends keyof T ? Rest extends '' ? T[First] : DeepValueOf<T[First], Rest> : undefined : K extends keyof T ? T[K] : undefined;
|
|
2
|
-
export declare function getValueFromObjectByKey<T extends object, K extends string | string[] = string>(object: T, key: K): DeepValueOf<T, K extends string ? K : string> | undefined;
|
|
3
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBrowser: () => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isDeepEqualReact(a: any, b: any, ignoreKeys?: string[], debug?: boolean): boolean;
|
package/dist/isImg/index.d.ts
DELETED
package/dist/isNil/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isNil: (value: any) => value is null | undefined;
|
package/dist/isServer.d.ts
DELETED
package/dist/isUrl/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merges the properties of the source object into a deep clone of the target object.
|
|
3
|
-
* Unlike `merge`, This function does not modify the original target object.
|
|
4
|
-
*
|
|
5
|
-
* This function performs a deep merge, meaning nested objects and arrays are merged recursively.
|
|
6
|
-
*
|
|
7
|
-
* - If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.
|
|
8
|
-
* - If a property in the source object is undefined, it will not overwrite a defined property in the target object.
|
|
9
|
-
*
|
|
10
|
-
* Note that this function does not mutate the target object.
|
|
11
|
-
*
|
|
12
|
-
* @param {T} target - The target object to be cloned and merged into. This object is not modified directly.
|
|
13
|
-
* @param {S} source - The source object whose properties will be merged into the cloned target object.
|
|
14
|
-
* @returns {T & S} A new object with properties from the source object merged into a deep clone of the target object.
|
|
15
|
-
*
|
|
16
|
-
* @template T - Type of the target object.
|
|
17
|
-
* @template S - Type of the source object.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* const target = { a: 1, b: { x: 1, y: 2 } };
|
|
21
|
-
* const source = { b: { y: 3, z: 4 }, c: 5 };
|
|
22
|
-
*
|
|
23
|
-
* const result = toMerged(target, source);
|
|
24
|
-
* console.log(result);
|
|
25
|
-
* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* const target = { a: [1, 2], b: { x: 1 } };
|
|
29
|
-
* const source = { a: [3], b: { y: 2 } };
|
|
30
|
-
*
|
|
31
|
-
* const result = toMerged(target, source);
|
|
32
|
-
* console.log(result);
|
|
33
|
-
* // Output: { a: [3, 2], b: { x: 1, y: 2 } }
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* const target = { a: null };
|
|
37
|
-
* const source = { a: [1, 2, 3] };
|
|
38
|
-
*
|
|
39
|
-
* const result = toMerged(target, source);
|
|
40
|
-
* console.log(result);
|
|
41
|
-
* // Output: { a: [1, 2, 3] }
|
|
42
|
-
*/
|
|
43
|
-
export declare function useDeepMerge<T extends Record<PropertyKey, any>, S extends Record<PropertyKey, any>>(target: T, source: S): T & S;
|
package/dist/nanoid/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const omitUndefinedAndEmptyArr: <T extends Record<string, any>>(obj: T) => T;
|
package/dist/pro-utils.umd.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Gx Design Pro
|
|
3
|
-
* Version: 0.2.0-beta.85
|
|
4
|
-
* Author: gx12358
|
|
5
|
-
* Copyright (C) 2024 gx12358
|
|
6
|
-
* License: MIT License
|
|
7
|
-
* Description: Gx Design Pro Utils
|
|
8
|
-
* Date Created: 2025-12-14
|
|
9
|
-
* Homepage:
|
|
10
|
-
* Contact: gx12358@gmail.com
|
|
11
|
-
*/
|
|
12
|
-
(function(s,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],y):(s=typeof globalThis<"u"?globalThis:s||self,y(s.GPorUtils={},s.vue))})(this,(function(s,y){"use strict";class le{constructor(){this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}_utf8_encode(t){t=t.replace(/\r\n/g,`
|
|
13
|
-
`);let r="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i<128?r+=String.fromCharCode(i):i>127&&i<2048?(r+=String.fromCharCode(i>>6|192),r+=String.fromCharCode(i&63|128)):(r+=String.fromCharCode(i>>12|224),r+=String.fromCharCode(i>>6&63|128),r+=String.fromCharCode(i&63|128))}return r}_utf8_decode(t){let r="",n=0,i=0,c=0,o=0;for(;n<t.length;)i=t.charCodeAt(n),i<128?(r+=String.fromCharCode(i),n++):i>191&&i<224?(c=t.charCodeAt(n+1),r+=String.fromCharCode((i&31)<<6|c&63),n+=2):(c=t.charCodeAt(n+1),o=t.charCodeAt(n+2),r+=String.fromCharCode((i&15)<<12|(c&63)<<6|o&63),n+=3);return r}encode(t){let r="",n,i,c,o,f,u,a,l=0;for(t=this._utf8_encode(t);l<t.length;)n=t.charCodeAt(l++),i=t.charCodeAt(l++),c=t.charCodeAt(l++),o=n>>2,f=(n&3)<<4|i>>4,u=(i&15)<<2|c>>6,a=c&63,Number.isNaN(i)?u=a=64:Number.isNaN(c)&&(a=64),r=r+this._keyStr.charAt(o)+this._keyStr.charAt(f)+this._keyStr.charAt(u)+this._keyStr.charAt(a);return r}decode(t){let r="",n,i,c,o,f,u,a,l=0;for(t=t.replace(/[^A-Z0-9+/=]/gi,"");l<t.length;)o=this._keyStr.indexOf(t.charAt(l++)),f=this._keyStr.indexOf(t.charAt(l++)),u=this._keyStr.indexOf(t.charAt(l++)),a=this._keyStr.indexOf(t.charAt(l++)),n=o<<2|f>>4,i=(f&15)<<4|u>>2,c=(u&3)<<6|a,r=r+String.fromCharCode(n),u!==64&&(r=r+String.fromCharCode(i)),a!==64&&(r=r+String.fromCharCode(c));return r=this._utf8_decode(r),r}}function v(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function I(e){return typeof e=="boolean"}function p(e){return typeof e=="number"}function g(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function w(e){return e!==null&&v(e,"Object")}function W(e){return typeof e=="string"||e instanceof String}function de(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ye(e){if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}}function ge(){const e=navigator.userAgent||navigator.vendor;return!!(/iPhone/.test(e)||/Android/.test(e)&&/Mobile/.test(e)||/Windows Phone/.test(e)||/Mobile/.test(e)&&!V())}function V(){const e=navigator.userAgent||navigator.vendor;return!!(/iPad/.test(e)||/Macintosh/.test(e)&&"ontouchend"in document||/Android/.test(e)&&!/Mobile/.test(e))}function q(...e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(n){if(W(n))t.push(n);else if(g(n))for(let i=0;i<n.length;i++){const c=q(n[i]);c&&t.push(c)}else if(w(n))for(const i in n)n[i]&&t.push(i)}}return t.filter(r=>r).join(" ")}function he(e,t){if(typeof t!="string"&&!Array.isArray(t))return;const r=Array.isArray(t)?t:t.split(":");let n=e;for(let i=0;i<r.length;i++)if(n&&Object.prototype.hasOwnProperty.call(n,r[i]))n=n[r[i]];else return;return n}const O=typeof window>"u";function me(e){return e.replace(/[-_](.)/g,(t,r)=>r.toUpperCase())}const F=function(e,t){if(O||!e||!t)return"";t=me(t),t==="float"&&(t="cssFloat");try{const r=e.style[t];if(r)return r;const n=document?.defaultView?.getComputedStyle(e,"");return n?n[t]:""}catch{return e.style[t]}},z=(e,t)=>O?void 0:(t==null?F(e,"overflow"):t?F(e,"overflow-y"):F(e,"overflow-x")).match(/(scroll|auto|overlay)/),pe=(e,t)=>{if(O)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(z(r,t))return r;r=r.parentNode}return r},we=(e,t)=>{if(O||!e||!t)return!1;const r=e.getBoundingClientRect();let n;return[window,document,document.documentElement,null,void 0].includes(t)?n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:n=t.getBoundingClientRect(),r.top<n.bottom&&r.bottom>n.top&&r.right>n.left&&r.left<n.right};function P(e){return e!=null&&e===e.window}function H(e,t){if(typeof window>"u")return 0;const r=t?"scrollTop":"scrollLeft";let n=0;return P(e)?n=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?n=e.documentElement[r]:e&&(n=e[r]),e&&!P(e)&&typeof n!="number"&&(n=(e.ownerDocument||e).documentElement?.[r]),n}function J(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ae(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function x(e){return e==null||typeof e!="object"&&typeof e!="function"}function Z(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}const Se="[object RegExp]",be="[object String]",Oe="[object Number]",je="[object Boolean]",Ue="[object Arguments]",Ie="[object Symbol]",Re="[object Date]",Be="[object Map]",Ee="[object Set]",Ne="[object Array]",De="[object ArrayBuffer]",Fe="[object Object]",Pe="[object DataView]",Le="[object Uint8Array]",Me="[object Uint8ClampedArray]",_e="[object Uint16Array]",$e="[object Uint32Array]",ve="[object Int8Array]",We="[object Int16Array]",Ve="[object Int32Array]",qe="[object Float32Array]",ze="[object Float64Array]";function He(e,t){return A(e,void 0,e,new Map,t)}function A(e,t,r,n=new Map,i=void 0){const c=i?.(e,t,r,n);if(c!==void 0)return c;if(x(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=Array.from({length:e.length});n.set(e,o);for(let f=0;f<e.length;f++)o[f]=A(e[f],f,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[f,u]of e)o.set(f,A(u,f,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const f of e)o.add(A(f,void 0,r,n,i));return o}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Z(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let f=0;f<e.length;f++)o[f]=A(e[f],f,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),h(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),h(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),h(o,e,r,n,i),o}if(e instanceof Error){const o=new e.constructor;return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,h(o,e,r,n,i),o}if(typeof e=="boolean"){const o=!!e.valueOf();return n.set(e,o),h(o,e,r,n,i),o}if(typeof e=="number"){const o=Number(e.valueOf());return n.set(e,o),h(o,e,r,n,i),o}if(typeof e=="string"){const o=String(e.valueOf());return n.set(e,o),h(o,e,r,n,i),o}if(typeof e=="object"&&Je(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),h(o,e,r,n,i),o}return e}function h(e,t,r=e,n,i){const c=[...Object.keys(t),...J(t)];for(let o=0;o<c.length;o++){const f=c[o],u=Object.getOwnPropertyDescriptor(e,f);(u==null||u.writable)&&(e[f]=A(t[f],f,r,n,i))}}function Je(e){switch(Ae(e)){case Ue:case Ne:case De:case Pe:case je:case Re:case qe:case ze:case ve:case We:case Ve:case Be:case Oe:case Fe:case Se:case Ee:case be:case Ie:case Le:case Me:case _e:case $e:return!0;default:return!1}}function S(e){return A(e,void 0,e,new Map,void 0)}const j={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3","ogg","wav","aac","m4a","webm"],imageType:["jpeg","jpg","png","gif","bmp","tiff","tif","webp","heic","heif","svg","ico","raw","cr2","nef","arw","dng","psd","eps"],videoType:["mp4","avi","mov","wmv","mkv","flv","webm","mpeg","mpg","3gp","ogv","mxf","vob","rm","rmvb","ts","mts","m2ts","divx","xvid"],audioType:["mp3","wav","aac","flac","ogg","wma","m4a","alac","opus","amr","aiff","au","pcm","ape"]},X=e=>e!=null&&e!=="";let G=e=>setTimeout(e,16),Y=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(G=e=>window.requestAnimationFrame(e),Y=e=>window.cancelAnimationFrame(e));let K=0;const L=new Map;function Q(e){L.delete(e)}function R(e,t=1){K+=1;const r=K;function n(i){if(i===0)Q(r),e();else{const c=G(()=>{n(i-1)});L.set(r,c)}}return n(t),r}R.cancel=e=>{const t=L.get(e);return Q(t),Y(t)};function xe(e,t,r=!1){const n=new Set;function i(c,o,f=1){if(n.has(c))return!1;if(c===o)return!0;if(r&&f>1)return!1;n.add(c);const a=f+1;if(Array.isArray(c)){if(!Array.isArray(o)||c.length!==o.length)return!1;for(let l=0;l<c.length;l++)if(!i(c[l],o[l],a))return!1;return!0}if(c&&o&&typeof c=="object"&&typeof o=="object"){const l=Object.keys(c);return l.length!==Object.keys(o).length?!1:l.every(d=>i(c[d],o[d],a))}return!1}return i(e,t)}function Ze(e){return e!=null}function b(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}const Xe=({suffixCls:e,customizePrefixCls:t,isPor:r,className:n})=>{const i=n||(r?"gx-pro":"gx");return t||(e?`${i}-${e}`:i)},Ge=(e,t)=>e?g(e)?e.join("-"):e.toString():`${t||0}`;function Ye(e,{align:t,showIndex:r}){const n=S(e);if(r&&e.length&&e.every(i=>i.dataIndex!=="sortIndex")){const i=e[0];n.unshift({title:"序号",align:t,fixed:i.fixed,width:60,uuid:C().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else n.filter(i=>i.dataIndex!=="sortIndex");return n}function Ke(e,...t){return typeof e=="function"?e(...t):e}function Qe(e){return JSON.parse(JSON.stringify(e))}function ke(e,t){if(w(e)){const{pageSize:r=10,total:n=0}=e;let{current:i=1}=e;return n-t<=r*(i-1)&&(i=i-1),i===0?1:i}return 1}function Te(e=[],t,r="children"){function n(i,c){return c.map((o,f)=>{const u=`${i}-${f+1}`;return o[r]&&(o[r]=n(u,o[r])),o.sortIndex=u,o})}return S(e).map((i,c)=>{const o=w(t)&&t.current||1,f=w(t)&&t.pageSize||10,u=`${(o-1)*f+(c+1)}`;return i[r]&&(i[r]=n(`${u}`,i[r])),i.sortIndex=u,i})}function Ce(e,t){return g(e)?e?.filter((r,n)=>{if(p(t))return n<=t-1;if(g(t)&&t.length===2){const i=t[0]-1,c=t[1]?t[1]-1:e.length-1;return n<=c&&n>=i}else if(g(t)&&t.length===1){const i=t[0]-1,c=e.length-1;return n<=c&&n>=i}return!0}):[]}function k(e,t,r,n=0){const i=p(n)&&(n===0||n===1)?n:0,c=e[r],o=t[r];let f=0;return c<o?f=i===0?-1:0:c>o&&(f=i===0?0:-1),f}function T(e,t,r,n=0){const i=p(n)&&(n===0||n===1)?n:0,c=new Date(e[r]),o=new Date(t[r]);let f=0;return c<o?f=i===0?-1:0:c>o&&(f=i===0?0:-1),f}function et(e,t,r=0){return e.sort((n,i)=>k(n,i,t,r))}function tt(e,t,r=0){return e.sort((n,i)=>T(n,i,t,r))}function nt(e){let t=S(e);const r=new Set(t);return t=Array.from(r),t}function rt(e,t){const r=["null","undefined"];let n=!0;return e===0?n=!0:r.includes(e)?n=!1:e||(n=!1),n?{value:e,success:n}:{value:t===""?t:t||"-",success:n}}function it(e){let t="";if(e>-1){const r=Math.floor(e/3600),n=Math.floor(e/60)%60,i=Number.parseInt(String(e%60));r<10?t="0"+r+":":t=r+":",n<10&&(t+="0"),t+=n+":",i<10&&(t+="0"),t+=i}return t.split(":")[0]==="00"?`${t.split(":")[1]}:${t.split(":")[2]}`:t}function C(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(t,r){const n=e,i=[],c=r||n.length;let o,f;if(t)for(o=0;o<t;o+=1)i[o]=n[Number.parseInt(String(Math.random()*c))];else for(i[8]="-",i[13]="-",i[18]="-",i[23]="-",i[14]="4",o=0;o<36;o+=1)i[o]||(f=Math.random()*16,i[o]=n[o===19?f&&3||8:f]);return i.join("")},uuidFast(){const t=e,r=Array.from({length:36});let n=0,i,c;for(c=0;c<36;c+=1)c===8||c===13||c===18||c===23?r[c]="-":c===14?r[c]="4":(n<=2&&(n=33554432+Math.random()*16777216||0),i=n&&15,n=n>4,r[c]=t[c===19?i&&3||8:i]);return r.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.random()*16||0;return(t==="x"?r:r&&3||8).toString(16)})}}}function ee(e,t){if(!Array.isArray(e)||e.length===0)return 0;const r=t||"children";return Math.max(...e.map(n=>{const i=n[r];return 1+(i?ee(i,r):0)}))}function te(e,t="children"){let r=[];return e.forEach(n=>{r.push(n),g(n[t])&&n[t].length>0&&(r=r.concat(te(n[t],t)))}),r}function ot(e,t){if(!e||!g(e)||e?.length===0)return[];const{id:r="id",parentId:n="parentId",children:i="children",emptyChildren:c=!0}=t||{},o=t?.rootId??0,f=S(e);return f.map(u=>(!c&&u[i]&&u[i]?.length===0&&delete u[i],u)).filter(u=>{const a=f.filter(l=>u[r]===l[n]);return a.length>0?u[i]=a:c&&(u[i]=[]),o===!1?!0:u[n]===o})}function ne(e,t){return e.map(r=>{const n={...r};return n.children&&(n.children=ne(n.children,t)),t(n)||n.children&&n.children.length>0?n:null}).filter(Boolean)}function ct(e,t,r){const{value:n,children:i}=r||{value:"value",children:"children"};let c=[];function o(f,u){if(f[n]===t)return c=[...u,f[n]],!0;if(f[i]){for(const a of f[i])if(o(a,[...u,f[n]]))return!0}return!1}for(const f of e)if(o(f,[]))break;return c}function ft(e){return e&&g(e)?e[e.length-1]:null}function re(e,t,r){const n=r?.value||"id",i=r?.children||"children";for(const c of e){if(c[n]===t)return c;const o=c[i];if(o){const f=re(o,t,r);if(f)return f}}}function st(e){return URL.createObjectURL(e)}function ut(e){return new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=i=>r(i)})}function at(e){const t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]);let i=n.length;const c=new Uint8Array(i);for(;i--;)c[i]=n.charCodeAt(i);return new Blob([c],{type:r})}function lt(e,t){const r=e.split(","),n=r[0].match(/:(.*?);/)[1],i=atob(r[1]);let c=i.length;const o=new Uint8Array(c);for(;c--;)o[c]=i.charCodeAt(c);return new File([o],t,{type:n})}function dt(e,t,r){return new window.File([e],t,{type:r})}function ie(e){if(!e||typeof e!="string")return"";const t=e.indexOf("?");return t>0?`${e.substring(0,t)}`:e}function B(e){if(!e||typeof e!="string")return"";const t=ie(e),r=t.lastIndexOf(".");return r>0&&`${t?.substring?.(r)?.split("?")?.[0]}`?.split(".")?.[1]||""}function U(e,t){if(t)return t;if(!e||e==="data:")return"4";let r="4";return E(e)?e.includes("data:image/")?r="png":e.includes("data:video/")?r="mp4":e.includes("data:audio/")&&(r="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?r="png":e.includes("video")?r="mp4":e.includes("audio")&&(r="mp3")):r=B(e).toLowerCase(),j.imageType.includes(r)?"1":j.videoType.includes(r)?"3":j.audioType.includes(r)?"2":"4"}function oe(e){const{url:t="",fileType:r="1"}=e||{};let n="",i={play:!1,height:0,size:0,width:0,duration:0};function c(){i={play:!1,height:0,size:0,width:0,duration:0}}return t instanceof File?n=URL.createObjectURL(t):E(t)?n=t:t instanceof Blob?n=URL.createObjectURL(t):(t.includes("https")||t.includes("http"))&&(n=t),new Promise(o=>{let f;if(r==="4"){o(i);return}r==="1"?(f=document.createElement("img"),f.src=n):r==="2"?(f=document.createElement("audio"),f.src=n):r==="3"&&(f=document.createElement("video"),f.src=n),r==="1"?f.onload=function(){c(),i.play=!0,i.width=f.width||0,i.height=f.height||0,o(i),f=null}:f.oncanplay=function(){c(),i.play=!0,i.width=f?.videoWidth||0,i.height=f?.videoHeight||0,i.duration=f?.duration||0,o(i),f=null},f.onerror=function(){c(),o(i),f=null}})}async function yt(e){const{url:t="",currentTime:r,videoSuffix:n="",videoAllowPlay:i=!1}=e;let c="",o=n,f="1",u;return t instanceof File?(c=URL.createObjectURL(t),o=B(t.name),f=U(t.name)):t instanceof Blob?(c=URL.createObjectURL(t),f=U(t)):E(t)?(c=t,f=U(t)):(t.includes("https")||t.includes("http"))&&(c=t,o=B(t),f=U(t)),(o?j.videoAllowType.includes(o.toLowerCase()):!1)?i?M(c,r):(u=await oe({url:c,fileType:f}),u.play?M(c,r):new Promise(l=>{l("")})):new Promise(l=>{l("")})}async function M(e,t=0){return new Promise(r=>{let n=document.createElement("video");n&&(n.controls=!0,n.muted=!0,n.setAttribute("src",e),n.setAttribute("muted",String(!0)),n.setAttribute("crossorigin","anonymous"),n.setAttribute("autoplay",String(!0)),n.addEventListener("loadeddata",async()=>{let i;for(n?.addEventListener("seeked",async()=>{i&&i()});t<(n?.duration||0);){n&&(n.currentTime=t),await new Promise(d=>i=d);const c=document.createElement("canvas"),o=.8,f=c.getContext("2d"),u=n?.videoWidth||0*o,a=n?.videoHeight||0*o,l=0;c.width=n?.videoWidth||0*o,c.height=n?.videoHeight||0*o,n&&f.drawImage(n,0,0,u+l,a+l),n=null,r(u===0||a===0?"":c.toDataURL("image/png",1))}}))})}function E(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(r=>e.includes(r)))}function gt(e){return typeof e=="string"&&/^data:(?:image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(e)}function ht(e,t,r,n=!1){e&&t&&r&&e.addEventListener(t,r,n)}function mt(e,t,r,n=!1){e&&t&&r&&e.removeEventListener(t,r,n)}function pt(){return/windows|win32/i.test(navigator.userAgent)}function wt(e){return I(e)?e:!!e}function _(e,t){const r=`^\\d+(?:\\.\\d{0,${e}})?`,n=new RegExp(r),i=t.toString().match(n);if(i){const c=i[0];if(c.includes(".")){const[o,f]=c.split(".");if(/^0*$/.test(f))return o}return c}return t.toString()}function At(e,t){const{toChinese:r=!1,fixed:n=2,min:i=1e4}=t||{},c=p(i)?i:1e4,o=p(n)?n:2,f=r?e<c?"":e<1e8?"万":"亿":e<c?"":e<1e8?"w":"亿";if(!p(e))return{str:`${e}`,number:`${e}`};if(e<c)return{str:`${e}`,number:`${e}`};if(o===0){const a=(e/(e<1e8?1e4:1e8)).toFixed(1).split(".")[0];return{str:`${a}${f}`,number:a,unit:f}}let u;return e<1e8?(u=_(o,e/1e4),{str:u+f,number:u,unit:f}):(u=_(o,e/1e8),{str:u+f,number:u,unit:f})}function St(e,t){let r=0;const n=I(t.removeAfter)?t.removeAfter:!0,i=t.id||"hiddenElement",c={opacity:0,visibility:"hidden",position:"fixed",zIndex:-1,top:0,left:0};let o=document.querySelector(`#${i}`);if(!o){const u=document.createElement("div");u.id=i,document.body.appendChild(u),o=document.querySelector(`#${i}`)}Object.assign(o.style,c);const f=document.createElement(t.createName||"span");return f.innerHTML=e,(t.cssObject||w(t.cssObject))&&Object.assign(f.style,t.cssObject),o.append(f),r=f.getBoundingClientRect()[t.type||"width"],n&&o.removeChild(f),r}function bt(e){e=p(e)&&!Number.isNaN(e)?e:0;const t=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];e=Number.parseInt(`${e}`);const n=o=>{const f=o.toString().split("").reverse();let u="";for(let a=0;a<f.length;a++)u=(a===0&&f[a]==="0"||a>0&&f[a]==="0"&&f[a-1]==="0"?"":(e<20&&a>0?"":t[f[a]])+(f[a]==="0"?r[0]:r[a]))+u;return u},i=Math.floor(e/1e4);let c=e%1e4;return c.toString().length<4&&(c="0"+c),i?n(i)+"万"+n(c):n(e)}function Ot(e,t){Object.keys(e).forEach(r=>{t(r,e[r])})}function jt(e){return Object.keys(e)}function Ut(e,t,r,n){const i=r-t;return e/=n/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function It(e,t={}){const{getContainer:r=()=>window,callback:n,duration:i=450}=t,c=r(),o=H(c,!0),f=Date.now(),u=()=>{const l=Date.now()-f,d=Ut(l>i?i:l,o,e,i);P(c)?c.scrollTo(window.pageXOffset,d):c instanceof HTMLDocument||c.constructor.name==="HTMLDocument"?c.documentElement.scrollTop=d:c.scrollTop=d,l<i?R(u):typeof n=="function"&&n()};c&&R(u)}function Rt(e){let t;const r=i=>()=>{t=null,e(...i)},n=(...i)=>{t==null&&(t=requestAnimationFrame(r(i)))};return n.cancel=()=>cancelAnimationFrame(t),n}const Bt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Et=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Bt;function N(e,t,r,n){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let i,c,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(c=i;c--!==0;)if(!N(e[c],t[c],r,n))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c of e.entries())if(!t.has(c[0]))return!1;for(c of e.entries())if(!N(c[1],t.get(c[0]),r,n))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c of e.entries())if(!t.has(c[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(c=i;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(c=i;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[c]))return!1;for(c=i;c--!==0;){const f=o[c];if(!r?.includes(f)&&!(f==="_owner"&&e.$$typeof)&&!N(e[f],t[f],r,n))return n&&console.log(f),!1}return!0}return e!==e&&t!==t}function Nt(e){return/\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}const Dt=e=>e==null,Ft=e=>{if(!e||!e.startsWith("http"))return!1;try{return!!new URL(e)}catch(t){return console.error("isUrl error",t),!1}};function Pt(e){return e==="__proto__"}function m(e,t,r){const n=Object.keys(t);for(let i=0;i<n.length;i++){const c=n[i];if(Pt(c))continue;const o=t[c],f=e[c],u=r(f,o,c,e,t);u!==void 0?e[c]=u:b(o)?b(f)?e[c]=m(f,o,r):e[c]=m({},o,r):e[c]=o}return e}const Lt=(...e)=>{const t={},r=e.length;let n,i=0;for(;i<r;i+=1)for(n in e[i])Object.prototype.hasOwnProperty.call(e[i],n)&&(typeof t[n]=="object"&&typeof e[i][n]=="object"&&t[n]!==void 0&&t[n]!==null&&!Array.isArray(t[n])&&!Array.isArray(e[i][n])?t[n]={...t[n],...e[i][n]}:t[n]=e[i][n]);return t};function Mt(e,t){return m(S(e),t,function r(n,i){if(b(i))return b(n)?m(S(n),i,r):m({},i,r)})}function _t(e,t){return m(e,t,function r(n,i){if(b(i))return b(n)?m(n,i,r):m({},i,r)})}let ce=0;const fe=(e=21)=>{if(typeof window>"u"||!window.crypto)return(ce+=1).toFixed(0);let t="";const r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){const n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t},$t=()=>typeof window>"u"?fe():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():fe(),vt=e=>{if(e&&e!==!0)return e},Wt=e=>{const t={};if(Object.keys(e||{}).forEach(r=>{e[r]!==void 0&&(t[r]=e[r])}),!(Object.keys(t).length<1))return t},Vt=e=>{const t={};return Object.keys(e||{}).forEach(r=>{Array.isArray(e[r])&&e[r]?.length===0||e[r]!==void 0&&(t[r]=e[r])}),t};function qt(e){if(!(typeof e!="string"&&!Array.isArray(e)))return Array.isArray(e)?e[e.length-1]:e.split(":")?.slice(-1)[0]}function se(e){return e&&(e.type===y.Comment||e.type===y.Fragment&&e.children.length===0||e.type===Text&&e.children.trim()==="")}function zt(e,t){return D(typeof e[t]=="function"?e[t]?.():[])}function D(e=[],t=!0){const r=Array.isArray(e)?e:[e],n=[];return r.forEach(i=>{Array.isArray(i)?n.push(...D(i,t)):i?.type===y.Fragment||i?.type==="template"?n.push(...D(i.children,t)):i&&y.isVNode(i)?t&&!se(i)?n.push(i):t||n.push(i):X(i)&&n.push(i)}),n}function $({vnode:e,defaultVNode:t},...r){return e===!1?null:typeof e=="function"?e?.(...r):e||t}function ue(e,...t){const{slots:r,key:n="default",render:i,props:c,defaultChildren:o}=e;let f;const u=c[n],a=r?.[n],l=typeof o=="function"?o?.():o;return u===!1?f=!1:u===!0?f=a??l:w(u)&&i?y.isVNode(u)?f=u:f=a:f=u||a,f===!1?!1:i?$({vnode:f,defaultVNode:l},...t):f}function ae(e,...t){const{slots:r,key:n="default",props:i,defaultChildren:c}=e;let o;const f=i[n],u=r?.[n]?.(...t),a=typeof c=="function"?c?.():c;return f===!1?o=!1:f===!0?o=u??a:w(f)?y.isVNode(f)?o=f:o=u:o=f||u,o===!1?!1:$({vnode:o,defaultVNode:a},...t)}function Ht(e,...t){const{slots:r,props:n,keys:i,render:c,defaultVNodes:o}=e,f={};return i.forEach((u,a)=>{const l=o?o[a]:null,d=c?ae({slots:r,props:n,key:u,defaultChildren:l},...t):ue({slots:r,props:n,key:u,render:!1,defaultChildren:l},...t);(I(d)||d)&&(f[u]=d)}),f}s.Base64=le,s.arrayRepeat=nt,s.arraySlice=Ce,s.blobToDataURL=dt,s.checkFileType=U,s.classNames=q,s.cloneDeep=S,s.cloneDeepWith=He,s.cloneDeepWithImpl=A,s.compareArray=k,s.compareArraySort=et,s.compareArrayTimeSort=tt,s.compareTime=T,s.convertValueBoolean=wt,s.copyProperties=h,s.dataURLtoBlob=at,s.dataURLtoFile=lt,s.deepCopy=Qe,s.deepMerge=Mt,s.fileTypes=j,s.filterEmpty=D,s.filterTree=ne,s.findSourceByTree=re,s.findValueAndAncestors=ct,s.forInObject=Ot,s.formatDuration=it,s.formatNumber=_,s.genColumnKey=Ge,s.generateVideoPicture=M,s.getArrayLast=ft,s.getBase64=ut,s.getBlobUrl=st,s.getFileSuffix=B,s.getKeys=qt,s.getLevelData=te,s.getMaxFloor=ee,s.getMediaInfos=oe,s.getPrefixCls=Xe,s.getRandomNumber=C,s.getScroll=H,s.getScrollContainer=pe,s.getSlot=ue,s.getSlotVNode=ae,s.getSlotsChildren=zt,s.getSlotsProps=Ht,s.getSortIndex=Te,s.getSymbols=J,s.getTextWidth=St,s.getValueFromObjectByKey=he,s.getVideoCoverPicture=yt,s.getVideoFileUrl=ie,s.handleCurrentPage=ke,s.handleEmptyField=rt,s.handleShowIndex=Ye,s.is=v,s.isArray=g,s.isBase64=E,s.isBoolean=I,s.isBrowser=Et,s.isDataURLBase64=gt,s.isDeepEqualReact=N,s.isEmptyElement=se,s.isEqual=xe,s.isFunction=de,s.isImg=Nt,s.isInContainer=we,s.isJSONStr=ye,s.isMobile=ge,s.isNil=Dt,s.isNotNil=Ze,s.isNumber=p,s.isObject=w,s.isPlainObject=b,s.isPrimitive=x,s.isScroll=z,s.isServer=O,s.isString=W,s.isTablet=V,s.isTypedArray=Z,s.isUrl=Ft,s.isValid=X,s.isWindowsOs=pt,s.keysOf=jt,s.merge=Lt,s.mergeWith=m,s.nanoid=$t,s.off=mt,s.omitBoolean=vt,s.omitUndefined=Wt,s.omitUndefinedAndEmptyArr=Vt,s.on=ht,s.raf=R,s.runFunction=Ke,s.scrollTo=It,s.slotRender=$,s.throttleByAnimationFrame=Rt,s.toChinesNum=bt,s.toConvertNumberShow=At,s.treeData=ot,s.useDeepMerge=_t,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/scroll/easings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function easeInOutCubic(t: number, b: number, c: number, d: number): number;
|
package/dist/scroll/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from '../typings';
|
|
2
|
-
export declare const isScroll: (el: HTMLElement, isVertical?: Nullable<boolean>) => RegExpMatchArray | null | undefined;
|
|
3
|
-
export declare const getScrollContainer: (el: HTMLElement, isVertical?: Nullable<boolean>) => (Window & typeof globalThis) | HTMLElement | undefined;
|
|
4
|
-
export declare const isInContainer: (el: HTMLElement, container: HTMLElement) => boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ScrollToOptions {
|
|
2
|
-
/** Scroll container, default as window */
|
|
3
|
-
getContainer?: () => HTMLElement | Window | Document;
|
|
4
|
-
/** Scroll end callback */
|
|
5
|
-
callback?: () => any;
|
|
6
|
-
/** Animation duration, default as 450 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
}
|
|
9
|
-
export default function scrollTo(y: number, options?: ScrollToOptions): void;
|
|
10
|
-
export {};
|
package/dist/slots/index.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { CustomRender, WithFalse } from '../typings';
|
|
3
|
-
export type SlotsPropsResult<S extends object, K extends keyof S, R extends boolean, D = any> = {
|
|
4
|
-
[P in K]: R extends true ? D extends undefined ? WithFalse<CustomRender> : CustomRender : D extends undefined ? (S[P] | false) : CustomRender;
|
|
5
|
-
};
|
|
6
|
-
export type RenderResult<S extends object, K extends keyof S, R extends boolean, D = any> = R extends true ? D extends undefined ? WithFalse<CustomRender> : CustomRender : D extends undefined ? (S[K] | false) : CustomRender;
|
|
7
|
-
export declare function getKeys(keys: string | string[]): string | undefined;
|
|
8
|
-
export declare function isEmptyElement(c: any): any;
|
|
9
|
-
export declare function getSlotsChildren<T extends object = Record<string, any>>(slots: T, key: keyof T): VNode[];
|
|
10
|
-
export declare function filterEmpty(vnode?: any, isEmpty?: boolean): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}>[];
|
|
13
|
-
export declare function slotRender({ vnode, defaultVNode }: {
|
|
14
|
-
vnode: any;
|
|
15
|
-
defaultVNode?: any;
|
|
16
|
-
}, ...arg: any): any;
|
|
17
|
-
/**
|
|
18
|
-
* @Author gx12358
|
|
19
|
-
* @DateTime 2024/2/2
|
|
20
|
-
* @lastTime 2024/2/2
|
|
21
|
-
* @description Function () => WithFalse<CustomRender> | S[K]
|
|
22
|
-
*/
|
|
23
|
-
export declare function getSlot<S extends object, K extends keyof S = keyof S, R extends boolean = false>(options: {
|
|
24
|
-
slots: S;
|
|
25
|
-
props: Record<string, any>;
|
|
26
|
-
key: K;
|
|
27
|
-
render?: R;
|
|
28
|
-
defaultChildren?: undefined;
|
|
29
|
-
}, ...arg: any): RenderResult<S, K, R, undefined>;
|
|
30
|
-
export declare function getSlot<S extends object, K extends keyof S = keyof S, R extends boolean = false>(options: {
|
|
31
|
-
slots: S;
|
|
32
|
-
props: Record<string, any>;
|
|
33
|
-
key: K;
|
|
34
|
-
render?: R;
|
|
35
|
-
defaultChildren: any;
|
|
36
|
-
}, ...arg: any): RenderResult<S, K, R>;
|
|
37
|
-
/**
|
|
38
|
-
* @Author gx12358
|
|
39
|
-
* @DateTime 2024/2/2
|
|
40
|
-
* @lastTime 2024/2/2
|
|
41
|
-
* @description VNode
|
|
42
|
-
*/
|
|
43
|
-
export declare function getSlotVNode<S extends object, K extends keyof S = keyof S>(options: {
|
|
44
|
-
slots: S;
|
|
45
|
-
props: Record<string, any>;
|
|
46
|
-
key: K;
|
|
47
|
-
defaultChildren?: any;
|
|
48
|
-
}, ...arg: any): WithFalse<CustomRender>;
|
|
49
|
-
/**
|
|
50
|
-
* @Author gx12358
|
|
51
|
-
* @DateTime 2024/10/13
|
|
52
|
-
* @lastTime 2024/10/13
|
|
53
|
-
* @description 获取names的slots或者props的VNode
|
|
54
|
-
*/
|
|
55
|
-
export declare function getSlotsProps<S extends object, K extends keyof S = keyof S, R extends boolean = false>(options: {
|
|
56
|
-
slots: S;
|
|
57
|
-
props: Record<string, any>;
|
|
58
|
-
keys: K[];
|
|
59
|
-
render?: R;
|
|
60
|
-
defaultVNodes?: undefined;
|
|
61
|
-
}, ...arg: any): SlotsPropsResult<S, K, R, undefined>;
|
|
62
|
-
export declare function getSlotsProps<S extends object, K extends keyof S = keyof S, R extends boolean = false>(options: {
|
|
63
|
-
slots: S;
|
|
64
|
-
props: Record<string, any>;
|
|
65
|
-
keys: K[];
|
|
66
|
-
render?: R;
|
|
67
|
-
defaultVNodes?: any;
|
|
68
|
-
}, ...arg: any): SlotsPropsResult<S, K, R>;
|
package/dist/typings/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, Slot, VNode, VNodeChild } from 'vue';
|
|
2
|
-
export type DeepPartial<T> = T extends object ? {
|
|
3
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
-
} : T;
|
|
5
|
-
export type LimitDeepPartial<T, Depth extends number = 5> = Depth extends 0 ? Partial<T> : T extends object ? {
|
|
6
|
-
[P in keyof T]?: LimitDeepPartial<T[P], Prev[Depth]>;
|
|
7
|
-
} : T;
|
|
8
|
-
type Prev = [0, 0, 1, 2, 3, 4, 5];
|
|
9
|
-
export interface Fn<T = any, R = T> {
|
|
10
|
-
(...arg: T[]): R;
|
|
11
|
-
}
|
|
12
|
-
export type Nullable<T> = T | null;
|
|
13
|
-
export type WithFalse<T> = T | false;
|
|
14
|
-
export type RecordType = Record<string, any>;
|
|
15
|
-
export type WithIfDefault<T, R> = R extends undefined ? T : R;
|
|
16
|
-
export type ExtendIfDefined<T, R> = R extends undefined ? T : R;
|
|
17
|
-
export type WithRequired<T, Keys extends keyof T> = Required<Pick<T, Keys>> & Partial<Omit<T, Keys>>;
|
|
18
|
-
export type VueNode = VNodeChild | JSX.Element;
|
|
19
|
-
export type CustomRender = Slot | VNodeChild | VNode | ((...props: any[]) => VNode) | ((...props: any[]) => VNode[]) | VNode[] | JSX.Element | string | null | undefined;
|
|
20
|
-
export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
21
|
-
export type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
22
|
-
export type AlignType = 'left' | 'center' | 'right';
|
|
23
|
-
export type BasicTablePageConfig = {
|
|
24
|
-
current: number;
|
|
25
|
-
pageSize: number;
|
|
26
|
-
total?: number;
|
|
27
|
-
} | boolean;
|
|
28
|
-
export interface MaterialOptions {
|
|
29
|
-
play: boolean;
|
|
30
|
-
width: number;
|
|
31
|
-
height: number;
|
|
32
|
-
duration: number;
|
|
33
|
-
size?: number | string;
|
|
34
|
-
}
|
|
35
|
-
export type OmitUndefined<T> = {
|
|
36
|
-
[P in keyof T]: NonNullable<T[P]>;
|
|
37
|
-
};
|
|
38
|
-
export type SemanticClassNames<Name extends string> = Partial<Record<Name, string>>;
|
|
39
|
-
export type SemanticStyles<Name extends string> = Partial<Record<Name, CSSProperties>>;
|
|
40
|
-
export {};
|
package/dist/utils/config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getSymbols(object: any): symbol[];
|
package/dist/utils/getTag.d.ts
DELETED