@wfrog/vc-ui 1.0.0 → 1.1.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.md +2 -2
- package/dist/es/chunk/{BMzd-IS6.mjs → 09Ec85_u.mjs} +13 -13
- package/dist/es/chunk/{su2Zrql0.mjs → 4eyJqDa9.mjs} +1 -1
- package/dist/es/chunk/{Dqz1zvKN.mjs → 73YgKz3H.mjs} +1 -1
- package/dist/es/chunk/{Dh4jaUSg.mjs → B5UQmWXg.mjs} +5 -5
- package/dist/es/chunk/{CVlj9F0I.mjs → BHsNc7jl.mjs} +4 -3
- package/dist/es/chunk/{CEm0brzD.mjs → BI0vrXwX.mjs} +2 -1
- package/dist/es/chunk/{BJS5Pdfp.mjs → BTpNRPQW.mjs} +1 -1
- package/dist/es/chunk/{De_EXLIy.mjs → BUEEWLrd.mjs} +1 -1
- package/dist/es/chunk/{C5hWsUfD.mjs → BcTuAX8r.mjs} +2 -2
- package/dist/es/chunk/{DyDMGLoF.mjs → Bl2KlMdP.mjs} +3 -2
- package/dist/es/chunk/{ViP2SEY4.mjs → Bp9jXKX0.mjs} +2 -3
- package/dist/es/chunk/{C2LgraHx.mjs → BpqBBo4z.mjs} +2 -3
- package/dist/es/chunk/{CS4VKsqy.mjs → BsGCX4td.mjs} +1 -1
- package/dist/es/chunk/{-EkpfdcW.mjs → BsLJxiSC.mjs} +46 -8
- package/dist/es/chunk/{zfg5SOj1.mjs → BtTIs3tG.mjs} +3 -3
- package/dist/es/chunk/{B_tU9Nax.mjs → BzedaLtg.mjs} +1 -1
- package/dist/es/chunk/{Dvi7RsXg.mjs → C7wQNvSS.mjs} +10 -9
- package/dist/es/chunk/{8rLUmOVR.mjs → CBSopeeE.mjs} +3 -2
- package/dist/es/chunk/{Coex0GxM.mjs → CLCfXfvv.mjs} +10 -10
- package/dist/es/chunk/{DqUIKX7f.mjs → CLMc8GzD.mjs} +8 -7
- package/dist/es/chunk/{D3uV7vm-.mjs → CLbj8G-F.mjs} +3 -3
- package/dist/es/chunk/{C7iSSBUr.mjs → CPERtDRX.mjs} +5 -5
- package/dist/es/chunk/{VAdRxe-1.mjs → Cbhe4I9Z.mjs} +1 -1
- package/dist/es/chunk/{D5259bwd.mjs → CizMbf5K.mjs} +2 -1
- package/dist/es/chunk/CsLIbnzG.mjs +64 -0
- package/dist/es/chunk/{Ce9ApjrT.mjs → Cu6erWl4.mjs} +4 -4
- package/dist/es/chunk/{VCrtRnxt.mjs → D0LB3gF-.mjs} +7 -7
- package/dist/es/chunk/{D3DXeVfC.mjs → DFOLES4O.mjs} +60 -16
- package/dist/es/chunk/{E_WRn0OP.mjs → DRoyW749.mjs} +58 -264
- package/dist/es/chunk/{D389hx_T.mjs → DTLPXrjb.mjs} +1 -1
- package/dist/es/chunk/{DZACQ9LT.mjs → DXPWe_a5.mjs} +2 -2
- package/dist/es/chunk/{BWcCXRRK.mjs → DZD-YnCt.mjs} +4 -4
- package/dist/es/chunk/{BdDihk0t.mjs → DaCDeO95.mjs} +591 -562
- package/dist/es/chunk/{CZ4ggqDE.mjs → DihosKp1.mjs} +6 -6
- package/dist/es/chunk/{aibQ9WSZ.mjs → Dk6Bx0KT.mjs} +1 -1
- package/dist/es/chunk/{CyxEcbcy.mjs → DouIsSPi.mjs} +1 -1
- package/dist/es/chunk/{HSv8BL8o.mjs → DrgvuOYH.mjs} +2 -1
- package/dist/es/chunk/{DhhdKtyu.mjs → DwKWIlzw.mjs} +9 -8
- package/dist/es/chunk/{BX-Ogf7p.mjs → FHvLvzEB.mjs} +23 -23
- package/dist/es/chunk/{CMABHk8B.mjs → HAog8AWU.mjs} +22 -22
- package/dist/es/chunk/{Spa-JKB4.mjs → NQBKROII.mjs} +127 -2
- package/dist/es/chunk/{BAtns-Mc.mjs → OEa4tYPF.mjs} +1 -1
- package/dist/es/chunk/{JCIyOUEY.mjs → XwSiBVsA.mjs} +3 -2
- package/dist/es/chunk/{CaTfZePA.mjs → axpwSky6.mjs} +5 -5
- package/dist/es/chunk/{DMHNh_tw.mjs → cPBw23yt.mjs} +3 -3
- package/dist/es/chunk/{nWBcrYxV.mjs → f0-vIQGp.mjs} +3 -5
- package/dist/es/components/awesome-icon/awesome-icon.mjs +4 -6
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.mjs +8 -8
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/choice-boolean/choice-boolean.mjs +1 -1
- package/dist/es/components/config-provider/config-provider.mjs +1 -1
- package/dist/es/components/config-provider/config-provider2.mjs +1 -1
- package/dist/es/components/cropper/cropper.mjs +150 -15
- package/dist/es/components/currency/currency.mjs +6 -6
- package/dist/es/components/daterange-picker/daterange-picker.mjs +25 -23
- package/dist/es/components/dialog/dialog.mjs +11 -12
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +20 -23
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +8 -13
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +12 -16
- package/dist/es/components/drag-verify/components/image.vue.d.ts +54 -0
- package/dist/es/components/drag-verify/components/text.vue.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +475 -0
- package/dist/es/components/drag-verify/drag-verify.vue.d.ts +123 -0
- package/dist/es/components/drag-verify/helper.d.ts +2 -0
- package/dist/es/components/drag-verify/index.css +117 -0
- package/dist/es/components/drag-verify/index.d.ts +4 -0
- package/dist/es/components/drag-verify/index.mjs +6 -0
- package/dist/es/components/drawer/drawer.mjs +12 -13
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/flag/flag.mjs +1 -1
- package/dist/es/components/icon/icon.mjs +2 -2
- package/dist/es/components/icon/icon2.mjs +1 -1
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/input/input.mjs +4 -4
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -23
- package/dist/es/components/qr-code/qr-code.mjs +1 -1
- package/dist/es/components/screenfull/screenfull.mjs +5 -5
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/single-player.mjs +16 -16
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +3 -3
- package/dist/es/components/tags/tags.mjs +9 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/thousand-input/thousand-input.mjs +4 -4
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +7 -10
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -12
- package/dist/es/components/upload-file/upload-file.mjs +6 -9
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +26 -24
- package/dist/es/use/useSmallScreen/index.mjs +1 -1
- package/dist/global.d.ts +1 -0
- package/dist/index.css +118 -1
- package/package.json +3 -6
- package/dist/es/chunk/BAGoDD49.mjs +0 -36
- package/dist/es/chunk/CD98REcR.mjs +0 -666
- package/dist/es/chunk/CEClY-_T.mjs +0 -445
- package/dist/es/chunk/Fo0dZYnz.mjs +0 -128
- package/dist/es/chunk/O-uhUKF4.mjs +0 -43
- package/dist/es/chunk/qY9OvNHY.mjs +0 -283
- package/dist/es/components/cdn-tag.vue.d.ts +0 -5
- package/dist/es/components/document.vue.d.ts +0 -14
- package/dist/es/components/example-wrapper.vue.d.ts +0 -19
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { inject, computed, getCurrentInstance, watch, nextTick, ref, toRaw, defineComponent, useSlots, createBlock, openBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, createElementVNode, createElementBlock, createCommentVNode, withDirectives, mergeProps, isRef, withModifiers, vModelCheckbox, renderSlot, Fragment, createTextVNode, toDisplayString, normalizeStyle, provide, toRefs, renderList, vModelRadio, onMounted, reactive } from 'vue';
|
|
2
|
-
import { u as useSizeProp } from './
|
|
3
|
-
import { a as flatRest, u as useAriaProps, p as pick } from './
|
|
2
|
+
import { u as useSizeProp } from './BsGCX4td.mjs';
|
|
3
|
+
import { a as flatRest, u as useAriaProps, p as pick } from './BpqBBo4z.mjs';
|
|
4
4
|
import { U as UPDATE_MODEL_EVENT, C as CHANGE_EVENT } from './Ct6q2FXg.mjs';
|
|
5
|
-
import { h as isString, f as isNumber,
|
|
6
|
-
import { _ as _export_sfc, a as withNoopInstall, w as withInstall } from './
|
|
7
|
-
import { b as formContextKey, u as useId } from './
|
|
8
|
-
import { b as useFormDisabled, u as useFormItem, c as useFormSize, a as useFormItemInputId } from './
|
|
9
|
-
import { i as isEqual } from '
|
|
10
|
-
import { u as useDeprecated } from './
|
|
11
|
-
import { d as baseGet,
|
|
12
|
-
import { g as getPrototype, c as copyObject, a as getAllKeysIn, b as baseClone } from './
|
|
13
|
-
import { i as isObjectLike, b as baseGetTag } from './Fo0dZYnz.mjs';
|
|
5
|
+
import { h as isString, f as isNumber, q as isBoolean, g as isUndefined, e as debugWarn, i as isArray, v as isPropAbsent, p as isObject, u as useNamespace, c as buildProps, d as definePropType } from './DRoyW749.mjs';
|
|
6
|
+
import { _ as _export_sfc, a as withNoopInstall, w as withInstall } from './DTLPXrjb.mjs';
|
|
7
|
+
import { b as formContextKey, u as useId } from './CBSopeeE.mjs';
|
|
8
|
+
import { b as useFormDisabled, u as useFormItem, c as useFormSize, a as useFormItemInputId } from './DXPWe_a5.mjs';
|
|
9
|
+
import { i as isEqual } from './BsLJxiSC.mjs';
|
|
10
|
+
import { u as useDeprecated } from './Cbhe4I9Z.mjs';
|
|
11
|
+
import { e as isObjectLike, f as baseGetTag, d as baseGet, g as castPath, t as toKey, a as arrayMap } from './NQBKROII.mjs';
|
|
12
|
+
import { g as getPrototype, c as copyObject, a as getAllKeysIn, b as baseClone } from './f0-vIQGp.mjs';
|
|
14
13
|
|
|
15
14
|
/** `Object#toString` result references. */
|
|
16
15
|
var objectTag = '[object Object]';
|
|
17
16
|
|
|
18
17
|
/** Used for built-in method references. */
|
|
19
18
|
var funcProto = Function.prototype,
|
|
20
|
-
objectProto = Object.prototype;
|
|
19
|
+
objectProto$1 = Object.prototype;
|
|
21
20
|
|
|
22
21
|
/** Used to resolve the decompiled source of functions. */
|
|
23
22
|
var funcToString = funcProto.toString;
|
|
24
23
|
|
|
25
24
|
/** Used to check objects for own properties. */
|
|
26
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
25
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
27
26
|
|
|
28
27
|
/** Used to infer the `Object` constructor. */
|
|
29
28
|
var objectCtorString = funcToString.call(Object);
|
|
@@ -64,7 +63,7 @@ function isPlainObject(value) {
|
|
|
64
63
|
if (proto === null) {
|
|
65
64
|
return true;
|
|
66
65
|
}
|
|
67
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
66
|
+
var Ctor = hasOwnProperty$1.call(proto, 'constructor') && proto.constructor;
|
|
68
67
|
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
69
68
|
funcToString.call(Ctor) == objectCtorString;
|
|
70
69
|
}
|
|
@@ -130,6 +129,12 @@ function parent(object, path) {
|
|
|
130
129
|
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
131
130
|
}
|
|
132
131
|
|
|
132
|
+
/** Used for built-in method references. */
|
|
133
|
+
var objectProto = Object.prototype;
|
|
134
|
+
|
|
135
|
+
/** Used to check objects for own properties. */
|
|
136
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
137
|
+
|
|
133
138
|
/**
|
|
134
139
|
* The base implementation of `_.unset`.
|
|
135
140
|
*
|
|
@@ -140,8 +145,47 @@ function parent(object, path) {
|
|
|
140
145
|
*/
|
|
141
146
|
function baseUnset(object, path) {
|
|
142
147
|
path = castPath(path, object);
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
|
|
149
|
+
// Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
|
|
150
|
+
var index = -1,
|
|
151
|
+
length = path.length;
|
|
152
|
+
|
|
153
|
+
if (!length) {
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
|
|
158
|
+
|
|
159
|
+
while (++index < length) {
|
|
160
|
+
var key = path[index];
|
|
161
|
+
|
|
162
|
+
// skip non-string keys (e.g., Symbols, numbers)
|
|
163
|
+
if (typeof key !== 'string') {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Always block "__proto__" anywhere in the path if it's not expected
|
|
168
|
+
if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Block "constructor.prototype" chains
|
|
173
|
+
if (key === 'constructor' &&
|
|
174
|
+
(index + 1) < length &&
|
|
175
|
+
typeof path[index + 1] === 'string' &&
|
|
176
|
+
path[index + 1] === 'prototype') {
|
|
177
|
+
|
|
178
|
+
// Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
|
|
179
|
+
if (isRootPrimitive && index === 0) {
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var obj = parent(object, path);
|
|
188
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
145
189
|
}
|
|
146
190
|
|
|
147
191
|
/**
|
|
@@ -1,55 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, inject, ref, computed, unref,
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The inverse of `_.toPairs`; this method returns an object composed
|
|
5
|
-
* from key-value `pairs`.
|
|
6
|
-
*
|
|
7
|
-
* @static
|
|
8
|
-
* @memberOf _
|
|
9
|
-
* @since 4.0.0
|
|
10
|
-
* @category Array
|
|
11
|
-
* @param {Array} pairs The key-value pairs.
|
|
12
|
-
* @returns {Object} Returns the new object.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* _.fromPairs([['a', 1], ['b', 2]]);
|
|
16
|
-
* // => { 'a': 1, 'b': 2 }
|
|
17
|
-
*/
|
|
18
|
-
function fromPairs(pairs) {
|
|
19
|
-
var index = -1,
|
|
20
|
-
length = pairs == null ? 0 : pairs.length,
|
|
21
|
-
result = {};
|
|
22
|
-
|
|
23
|
-
while (++index < length) {
|
|
24
|
-
var pair = pairs[index];
|
|
25
|
-
result[pair[0]] = pair[1];
|
|
26
|
-
}
|
|
27
|
-
return result;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Checks if `value` is `null` or `undefined`.
|
|
32
|
-
*
|
|
33
|
-
* @static
|
|
34
|
-
* @memberOf _
|
|
35
|
-
* @since 4.0.0
|
|
36
|
-
* @category Lang
|
|
37
|
-
* @param {*} value The value to check.
|
|
38
|
-
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
39
|
-
* @example
|
|
40
|
-
*
|
|
41
|
-
* _.isNil(null);
|
|
42
|
-
* // => true
|
|
43
|
-
*
|
|
44
|
-
* _.isNil(void 0);
|
|
45
|
-
* // => true
|
|
46
|
-
*
|
|
47
|
-
* _.isNil(NaN);
|
|
48
|
-
* // => false
|
|
49
|
-
*/
|
|
50
|
-
function isNil(value) {
|
|
51
|
-
return value == null;
|
|
52
|
-
}
|
|
1
|
+
import { getCurrentInstance, inject, ref, computed, unref, warn } from 'vue';
|
|
53
2
|
|
|
54
3
|
const defaultNamespace = "el";
|
|
55
4
|
const statePrefix = "is-";
|
|
@@ -139,11 +88,11 @@ const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
139
88
|
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
|
140
89
|
const isArray = Array.isArray;
|
|
141
90
|
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
142
|
-
const isFunction
|
|
143
|
-
const isString
|
|
91
|
+
const isFunction = (val) => typeof val === "function";
|
|
92
|
+
const isString = (val) => typeof val === "string";
|
|
144
93
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
145
94
|
const isPromise = (val) => {
|
|
146
|
-
return (isObject(val) || isFunction
|
|
95
|
+
return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
|
|
147
96
|
};
|
|
148
97
|
const objectToString = Object.prototype.toString;
|
|
149
98
|
const toTypeString = (value) => objectToString.call(value);
|
|
@@ -166,6 +115,57 @@ const hyphenate = cacheStringFunction(
|
|
|
166
115
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
167
116
|
);
|
|
168
117
|
|
|
118
|
+
/**
|
|
119
|
+
* The inverse of `_.toPairs`; this method returns an object composed
|
|
120
|
+
* from key-value `pairs`.
|
|
121
|
+
*
|
|
122
|
+
* @static
|
|
123
|
+
* @memberOf _
|
|
124
|
+
* @since 4.0.0
|
|
125
|
+
* @category Array
|
|
126
|
+
* @param {Array} pairs The key-value pairs.
|
|
127
|
+
* @returns {Object} Returns the new object.
|
|
128
|
+
* @example
|
|
129
|
+
*
|
|
130
|
+
* _.fromPairs([['a', 1], ['b', 2]]);
|
|
131
|
+
* // => { 'a': 1, 'b': 2 }
|
|
132
|
+
*/
|
|
133
|
+
function fromPairs(pairs) {
|
|
134
|
+
var index = -1,
|
|
135
|
+
length = pairs == null ? 0 : pairs.length,
|
|
136
|
+
result = {};
|
|
137
|
+
|
|
138
|
+
while (++index < length) {
|
|
139
|
+
var pair = pairs[index];
|
|
140
|
+
result[pair[0]] = pair[1];
|
|
141
|
+
}
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Checks if `value` is `null` or `undefined`.
|
|
147
|
+
*
|
|
148
|
+
* @static
|
|
149
|
+
* @memberOf _
|
|
150
|
+
* @since 4.0.0
|
|
151
|
+
* @category Lang
|
|
152
|
+
* @param {*} value The value to check.
|
|
153
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
154
|
+
* @example
|
|
155
|
+
*
|
|
156
|
+
* _.isNil(null);
|
|
157
|
+
* // => true
|
|
158
|
+
*
|
|
159
|
+
* _.isNil(void 0);
|
|
160
|
+
* // => true
|
|
161
|
+
*
|
|
162
|
+
* _.isNil(NaN);
|
|
163
|
+
* // => false
|
|
164
|
+
*/
|
|
165
|
+
function isNil(value) {
|
|
166
|
+
return value == null;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
169
|
const isUndefined = (val) => val === void 0;
|
|
170
170
|
const isBoolean = (val) => typeof val === "boolean";
|
|
171
171
|
const isNumber = (val) => typeof val === "number";
|
|
@@ -177,219 +177,13 @@ const isElement = (e) => {
|
|
|
177
177
|
};
|
|
178
178
|
const isPropAbsent = (prop) => isNil(prop);
|
|
179
179
|
const isStringNumber = (val) => {
|
|
180
|
-
if (!isString
|
|
180
|
+
if (!isString(val)) {
|
|
181
181
|
return false;
|
|
182
182
|
}
|
|
183
183
|
return !Number.isNaN(Number(val));
|
|
184
184
|
};
|
|
185
185
|
const isWindow = (val) => val === window;
|
|
186
186
|
|
|
187
|
-
var __defProp$9 = Object.defineProperty;
|
|
188
|
-
var __defProps$6 = Object.defineProperties;
|
|
189
|
-
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
190
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
191
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
192
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
193
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
194
|
-
var __spreadValues$9 = (a, b) => {
|
|
195
|
-
for (var prop in b || (b = {}))
|
|
196
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
197
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
198
|
-
if (__getOwnPropSymbols$b)
|
|
199
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
200
|
-
if (__propIsEnum$b.call(b, prop))
|
|
201
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
202
|
-
}
|
|
203
|
-
return a;
|
|
204
|
-
};
|
|
205
|
-
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
206
|
-
function computedEager(fn, options) {
|
|
207
|
-
var _a;
|
|
208
|
-
const result = shallowRef();
|
|
209
|
-
watchEffect(() => {
|
|
210
|
-
result.value = fn();
|
|
211
|
-
}, __spreadProps$6(__spreadValues$9({}, options), {
|
|
212
|
-
flush: (_a = void 0 ) != null ? _a : "sync"
|
|
213
|
-
}));
|
|
214
|
-
return readonly(result);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
var _a;
|
|
218
|
-
const isClient = typeof window !== "undefined";
|
|
219
|
-
const isDef = (val) => typeof val !== "undefined";
|
|
220
|
-
const isFunction = (val) => typeof val === "function";
|
|
221
|
-
const isString = (val) => typeof val === "string";
|
|
222
|
-
const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
223
|
-
const noop = () => {
|
|
224
|
-
};
|
|
225
|
-
const isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
226
|
-
|
|
227
|
-
function resolveUnref(r) {
|
|
228
|
-
return typeof r === "function" ? r() : unref(r);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
function createFilterWrapper(filter, fn) {
|
|
232
|
-
function wrapper(...args) {
|
|
233
|
-
return new Promise((resolve, reject) => {
|
|
234
|
-
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
return wrapper;
|
|
238
|
-
}
|
|
239
|
-
function debounceFilter(ms, options = {}) {
|
|
240
|
-
let timer;
|
|
241
|
-
let maxTimer;
|
|
242
|
-
let lastRejector = noop;
|
|
243
|
-
const _clearTimeout = (timer2) => {
|
|
244
|
-
clearTimeout(timer2);
|
|
245
|
-
lastRejector();
|
|
246
|
-
lastRejector = noop;
|
|
247
|
-
};
|
|
248
|
-
const filter = (invoke) => {
|
|
249
|
-
const duration = resolveUnref(ms);
|
|
250
|
-
const maxDuration = resolveUnref(options.maxWait);
|
|
251
|
-
if (timer)
|
|
252
|
-
_clearTimeout(timer);
|
|
253
|
-
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
254
|
-
if (maxTimer) {
|
|
255
|
-
_clearTimeout(maxTimer);
|
|
256
|
-
maxTimer = null;
|
|
257
|
-
}
|
|
258
|
-
return Promise.resolve(invoke());
|
|
259
|
-
}
|
|
260
|
-
return new Promise((resolve, reject) => {
|
|
261
|
-
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
262
|
-
if (maxDuration && !maxTimer) {
|
|
263
|
-
maxTimer = setTimeout(() => {
|
|
264
|
-
if (timer)
|
|
265
|
-
_clearTimeout(timer);
|
|
266
|
-
maxTimer = null;
|
|
267
|
-
resolve(invoke());
|
|
268
|
-
}, maxDuration);
|
|
269
|
-
}
|
|
270
|
-
timer = setTimeout(() => {
|
|
271
|
-
if (maxTimer)
|
|
272
|
-
_clearTimeout(maxTimer);
|
|
273
|
-
maxTimer = null;
|
|
274
|
-
resolve(invoke());
|
|
275
|
-
}, duration);
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
return filter;
|
|
279
|
-
}
|
|
280
|
-
function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
|
|
281
|
-
let lastExec = 0;
|
|
282
|
-
let timer;
|
|
283
|
-
let isLeading = true;
|
|
284
|
-
let lastRejector = noop;
|
|
285
|
-
let lastValue;
|
|
286
|
-
const clear = () => {
|
|
287
|
-
if (timer) {
|
|
288
|
-
clearTimeout(timer);
|
|
289
|
-
timer = void 0;
|
|
290
|
-
lastRejector();
|
|
291
|
-
lastRejector = noop;
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
const filter = (_invoke) => {
|
|
295
|
-
const duration = resolveUnref(ms);
|
|
296
|
-
const elapsed = Date.now() - lastExec;
|
|
297
|
-
const invoke = () => {
|
|
298
|
-
return lastValue = _invoke();
|
|
299
|
-
};
|
|
300
|
-
clear();
|
|
301
|
-
if (duration <= 0) {
|
|
302
|
-
lastExec = Date.now();
|
|
303
|
-
return invoke();
|
|
304
|
-
}
|
|
305
|
-
if (elapsed > duration && (leading || !isLeading)) {
|
|
306
|
-
lastExec = Date.now();
|
|
307
|
-
invoke();
|
|
308
|
-
} else if (trailing) {
|
|
309
|
-
lastValue = new Promise((resolve, reject) => {
|
|
310
|
-
lastRejector = rejectOnCancel ? reject : resolve;
|
|
311
|
-
timer = setTimeout(() => {
|
|
312
|
-
lastExec = Date.now();
|
|
313
|
-
isLeading = true;
|
|
314
|
-
resolve(invoke());
|
|
315
|
-
clear();
|
|
316
|
-
}, Math.max(0, duration - elapsed));
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
if (!leading && !timer)
|
|
320
|
-
timer = setTimeout(() => isLeading = true, duration);
|
|
321
|
-
isLeading = false;
|
|
322
|
-
return lastValue;
|
|
323
|
-
};
|
|
324
|
-
return filter;
|
|
325
|
-
}
|
|
326
|
-
function identity(arg) {
|
|
327
|
-
return arg;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function tryOnScopeDispose(fn) {
|
|
331
|
-
if (getCurrentScope()) {
|
|
332
|
-
onScopeDispose(fn);
|
|
333
|
-
return true;
|
|
334
|
-
}
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
339
|
-
return createFilterWrapper(debounceFilter(ms, options), fn);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
|
|
343
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
function tryOnMounted(fn, sync = true) {
|
|
347
|
-
if (getCurrentInstance())
|
|
348
|
-
onMounted(fn);
|
|
349
|
-
else if (sync)
|
|
350
|
-
fn();
|
|
351
|
-
else
|
|
352
|
-
nextTick(fn);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
356
|
-
const {
|
|
357
|
-
immediate = true
|
|
358
|
-
} = options;
|
|
359
|
-
const isPending = ref(false);
|
|
360
|
-
let timer = null;
|
|
361
|
-
function clear() {
|
|
362
|
-
if (timer) {
|
|
363
|
-
clearTimeout(timer);
|
|
364
|
-
timer = null;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
function stop() {
|
|
368
|
-
isPending.value = false;
|
|
369
|
-
clear();
|
|
370
|
-
}
|
|
371
|
-
function start(...args) {
|
|
372
|
-
clear();
|
|
373
|
-
isPending.value = true;
|
|
374
|
-
timer = setTimeout(() => {
|
|
375
|
-
isPending.value = false;
|
|
376
|
-
timer = null;
|
|
377
|
-
cb(...args);
|
|
378
|
-
}, resolveUnref(interval));
|
|
379
|
-
}
|
|
380
|
-
if (immediate) {
|
|
381
|
-
isPending.value = true;
|
|
382
|
-
if (isClient)
|
|
383
|
-
start();
|
|
384
|
-
}
|
|
385
|
-
tryOnScopeDispose(stop);
|
|
386
|
-
return {
|
|
387
|
-
isPending: readonly(isPending),
|
|
388
|
-
start,
|
|
389
|
-
stop
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
|
|
393
187
|
class ElementPlusError extends Error {
|
|
394
188
|
constructor(m) {
|
|
395
189
|
super(m);
|
|
@@ -401,7 +195,7 @@ function throwError(scope, m) {
|
|
|
401
195
|
}
|
|
402
196
|
function debugWarn(scope, message) {
|
|
403
197
|
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
|
|
404
|
-
const error = isString
|
|
198
|
+
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
405
199
|
console.warn(error);
|
|
406
200
|
}
|
|
407
201
|
}
|
|
@@ -446,4 +240,4 @@ const buildProps = (props) => fromPairs(Object.entries(props).map(([key, option]
|
|
|
446
240
|
buildProp(option, key)
|
|
447
241
|
]));
|
|
448
242
|
|
|
449
|
-
export {
|
|
243
|
+
export { isStringNumber as A, camelize as B, namespaceContextKey as C, NOOP as N, isEmpty as a, isDate as b, buildProps as c, definePropType as d, debugWarn as e, isNumber as f, isUndefined as g, isString as h, isArray as i, isFunction as j, isNil as k, isPlainObject as l, fromPairs as m, isElement as n, isWindow as o, isObject as p, isBoolean as q, buildProp as r, useGetDerivedNamespace as s, throwError as t, useNamespace as u, isPropAbsent as v, hyphenate as w, defaultNamespace as x, isPromise as y, hasOwn as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject, ref, getCurrentInstance, computed, onMounted, watch, toRef, onUnmounted, unref } from 'vue';
|
|
2
|
-
import { b as formContextKey, f as formItemContextKey, u as useId } from './
|
|
3
|
-
import { a as useGlobalSize } from './
|
|
2
|
+
import { b as formContextKey, f as formItemContextKey, u as useId } from './CBSopeeE.mjs';
|
|
3
|
+
import { a as useGlobalSize } from './BsGCX4td.mjs';
|
|
4
4
|
|
|
5
5
|
const useFormItem = () => {
|
|
6
6
|
const form = inject(formContextKey, void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as Stack, b as baseIsEqual, k as keys } from '
|
|
2
|
-
import { i as isObject, c as isKey, t as toKey, d as baseGet, b as isArray } from './
|
|
3
|
-
import { g as get } from './
|
|
4
|
-
import { h as hasIn, i as identity } from './
|
|
1
|
+
import { S as Stack, b as baseIsEqual, k as keys } from './BsLJxiSC.mjs';
|
|
2
|
+
import { i as isObject, c as isKey, t as toKey, d as baseGet, b as isArray } from './NQBKROII.mjs';
|
|
3
|
+
import { g as get } from './Dk6Bx0KT.mjs';
|
|
4
|
+
import { h as hasIn, i as identity } from './BpqBBo4z.mjs';
|
|
5
5
|
|
|
6
6
|
/** Used to compose bitmasks for value comparisons. */
|
|
7
7
|
var COMPARE_PARTIAL_FLAG$1 = 1,
|