@wfrog/vc-ui 1.11.10 → 1.11.11
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/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
- package/dist/es/chunk/CqTdDZkE.mjs +31 -0
- package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
- package/dist/es/chunk/D229kQ56.mjs +28 -0
- package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
- package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
- package/dist/es/chunk/KanuIcmc.mjs +412 -0
- package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
- package/dist/es/components/backbottom/backbottom.mjs +3 -2
- package/dist/es/components/button/button.mjs +4 -5
- package/dist/es/components/choice/choice.mjs +4 -4
- package/dist/es/components/choice/index.css +1 -1
- package/dist/es/components/color-switch/color-switch.mjs +73 -1046
- package/dist/es/components/color-switch/index.css +1 -1
- package/dist/es/components/cropper/cropper.mjs +11 -117
- package/dist/es/components/cropper/index.css +1 -1
- package/dist/es/components/currency/currency.mjs +4 -5
- package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
- package/dist/es/components/dialog/dialog.mjs +7 -400
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
- package/dist/es/components/dialog-upload-images/index.css +1 -1
- package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
- package/dist/es/components/drawer/drawer.mjs +10 -352
- package/dist/es/components/drawer/index.css +1 -1
- package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
- package/dist/es/components/explorer/explorer.mjs +3 -3
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
- package/dist/es/components/explorer-column-table/index.css +1 -1
- package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
- package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
- package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
- package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
- package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
- package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
- package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
- package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-table/explorer-table.mjs +5 -8
- package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
- package/dist/es/components/explorer-tools/index.css +1 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
- package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
- package/dist/es/components/input/input.mjs +3 -2
- package/dist/es/components/input-number/input-number.mjs +3 -3
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
- package/dist/es/components/screenfull/screenfull.mjs +4 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
- package/dist/es/components/select/select.mjs +3 -5
- package/dist/es/components/single-player/index.css +1 -1
- package/dist/es/components/single-player/single-player.mjs +10 -1087
- package/dist/es/components/splitter/splitter.mjs +3 -3
- package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
- package/dist/es/components/switch/index.css +1 -1
- package/dist/es/components/switch/switch.mjs +9 -395
- package/dist/es/components/tags/tags.mjs +7 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
- package/dist/es/components/tinymce/tinymce.mjs +4 -3
- package/dist/es/components/transfer/transfer.mjs +3 -4
- package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +13 -40
- package/package.json +1 -1
- package/dist/es/chunk/B-rxnVJv.mjs +0 -3
- package/dist/es/chunk/B5HpgPRt.mjs +0 -69
- package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
- package/dist/es/chunk/BDcsaNYa.mjs +0 -59
- package/dist/es/chunk/BTSSEFfD.mjs +0 -319
- package/dist/es/chunk/BTpNRPQW.mjs +0 -55
- package/dist/es/chunk/BVBK1U57.mjs +0 -96
- package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
- package/dist/es/chunk/BjVI1XMz.mjs +0 -40
- package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
- package/dist/es/chunk/BpJKnxlF.mjs +0 -476
- package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
- package/dist/es/chunk/BunQI8Jb.mjs +0 -390
- package/dist/es/chunk/C0XgBrDz.mjs +0 -775
- package/dist/es/chunk/C0pTANRX.mjs +0 -109
- package/dist/es/chunk/CBMjhoFP.mjs +0 -101
- package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
- package/dist/es/chunk/CBlJeNBO.mjs +0 -890
- package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
- package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
- package/dist/es/chunk/CJK5_jsA.mjs +0 -53
- package/dist/es/chunk/CKOcwq5V.mjs +0 -44
- package/dist/es/chunk/COs9dJZa.mjs +0 -66
- package/dist/es/chunk/CPt6MxJW.mjs +0 -375
- package/dist/es/chunk/CVqW0jzp.mjs +0 -107
- package/dist/es/chunk/CccIsEqA.mjs +0 -128
- package/dist/es/chunk/CjLR27-a.mjs +0 -582
- package/dist/es/chunk/CoGexPPD.mjs +0 -2192
- package/dist/es/chunk/CsLIbnzG.mjs +0 -64
- package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
- package/dist/es/chunk/Cuq5meQh.mjs +0 -184
- package/dist/es/chunk/CvYIOfT1.mjs +0 -23
- package/dist/es/chunk/CxHJBf4l.mjs +0 -31
- package/dist/es/chunk/CzdaOBtA.mjs +0 -66
- package/dist/es/chunk/D0QTifnI.mjs +0 -54
- package/dist/es/chunk/D1QnA2iT.mjs +0 -229
- package/dist/es/chunk/D3AvJlVX.mjs +0 -188
- package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
- package/dist/es/chunk/DCkPv0hy.mjs +0 -29
- package/dist/es/chunk/DRwwUUhy.mjs +0 -49
- package/dist/es/chunk/DX-2VRY2.mjs +0 -836
- package/dist/es/chunk/DZ2oTFad.mjs +0 -687
- package/dist/es/chunk/D_bou1py.mjs +0 -55
- package/dist/es/chunk/Da199A5L.mjs +0 -314
- package/dist/es/chunk/DbhQlaOz.mjs +0 -94
- package/dist/es/chunk/Dgu95mOy.mjs +0 -237
- package/dist/es/chunk/DhGOsWxx.mjs +0 -6
- package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
- package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
- package/dist/es/chunk/DodoD9a9.mjs +0 -52
- package/dist/es/chunk/DrrVDcwm.mjs +0 -955
- package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
- package/dist/es/chunk/DxxbB5jY.mjs +0 -34
- package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
- package/dist/es/chunk/NsldgdCh.mjs +0 -704
- package/dist/es/chunk/V6KjsUQN.mjs +0 -35
- package/dist/es/chunk/eEsLFV3s.mjs +0 -76
- package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
- package/dist/es/chunk/nxVM7re4.mjs +0 -35
- package/dist/es/chunk/s7HLrANj.mjs +0 -215
- package/dist/es/chunk/vPhxogl3.mjs +0 -19
- package/dist/es/components/icon/icon2.mjs +0 -27
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { isClient } from '@vueuse/core';
|
|
2
|
-
|
|
3
|
-
const isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
|
|
4
|
-
const isAndroid = () => isClient && /android/i.test(window.navigator.userAgent);
|
|
5
|
-
|
|
6
|
-
const isHTMLElement = (e) => {
|
|
7
|
-
if (typeof Element === "undefined")
|
|
8
|
-
return false;
|
|
9
|
-
return e instanceof Element;
|
|
10
|
-
};
|
|
11
|
-
const isFocusable = (element) => {
|
|
12
|
-
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
switch (element.nodeName) {
|
|
19
|
-
case "A": {
|
|
20
|
-
return !!element.href && element.rel !== "ignore";
|
|
21
|
-
}
|
|
22
|
-
case "INPUT": {
|
|
23
|
-
return !(element.type === "hidden" || element.type === "file");
|
|
24
|
-
}
|
|
25
|
-
case "BUTTON":
|
|
26
|
-
case "SELECT":
|
|
27
|
-
case "TEXTAREA": {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
default: {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const isLeaf = (el) => !el.getAttribute("aria-owns");
|
|
36
|
-
const getSibling = (el, distance, elClass) => {
|
|
37
|
-
const { parentNode } = el;
|
|
38
|
-
if (!parentNode)
|
|
39
|
-
return null;
|
|
40
|
-
const siblings = parentNode.querySelectorAll(elClass);
|
|
41
|
-
const index = Array.prototype.indexOf.call(siblings, el);
|
|
42
|
-
return siblings[index + distance] || null;
|
|
43
|
-
};
|
|
44
|
-
const focusElement = (el, options) => {
|
|
45
|
-
if (!el || !el.focus)
|
|
46
|
-
return;
|
|
47
|
-
let cleanup = false;
|
|
48
|
-
if (isHTMLElement(el) && !isFocusable(el) && !el.getAttribute("tabindex")) {
|
|
49
|
-
el.setAttribute("tabindex", "-1");
|
|
50
|
-
cleanup = true;
|
|
51
|
-
}
|
|
52
|
-
el.focus(options);
|
|
53
|
-
if (isHTMLElement(el) && cleanup) {
|
|
54
|
-
el.removeAttribute("tabindex");
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const focusNode = (el) => {
|
|
58
|
-
if (!el)
|
|
59
|
-
return;
|
|
60
|
-
focusElement(el);
|
|
61
|
-
!isLeaf(el) && el.click();
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export { isFocusable as a, isLeaf as b, focusNode as c, isAndroid as d, focusElement as f, getSibling as g, isFirefox as i };
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { b as baseFlatten } from './BunQI8Jb.mjs';
|
|
2
|
-
import { w as arrayMap, f as isArray } from './Cxx_YWUC.mjs';
|
|
3
|
-
import { b as baseIteratee } from './D1QnA2iT.mjs';
|
|
4
|
-
import { k as keys, a as isArrayLike } from './B71xEPfK.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
8
|
-
*
|
|
9
|
-
* @private
|
|
10
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
11
|
-
* @returns {Function} Returns the new base function.
|
|
12
|
-
*/
|
|
13
|
-
function createBaseFor(fromRight) {
|
|
14
|
-
return function(object, iteratee, keysFunc) {
|
|
15
|
-
var index = -1,
|
|
16
|
-
iterable = Object(object),
|
|
17
|
-
props = keysFunc(object),
|
|
18
|
-
length = props.length;
|
|
19
|
-
|
|
20
|
-
while (length--) {
|
|
21
|
-
var key = props[++index];
|
|
22
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return object;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
32
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
33
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
34
|
-
*
|
|
35
|
-
* @private
|
|
36
|
-
* @param {Object} object The object to iterate over.
|
|
37
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
38
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
39
|
-
* @returns {Object} Returns `object`.
|
|
40
|
-
*/
|
|
41
|
-
var baseFor = createBaseFor();
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
45
|
-
*
|
|
46
|
-
* @private
|
|
47
|
-
* @param {Object} object The object to iterate over.
|
|
48
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
49
|
-
* @returns {Object} Returns `object`.
|
|
50
|
-
*/
|
|
51
|
-
function baseForOwn(object, iteratee) {
|
|
52
|
-
return object && baseFor(object, iteratee, keys);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Creates a `baseEach` or `baseEachRight` function.
|
|
57
|
-
*
|
|
58
|
-
* @private
|
|
59
|
-
* @param {Function} eachFunc The function to iterate over a collection.
|
|
60
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
61
|
-
* @returns {Function} Returns the new base function.
|
|
62
|
-
*/
|
|
63
|
-
function createBaseEach(eachFunc, fromRight) {
|
|
64
|
-
return function(collection, iteratee) {
|
|
65
|
-
if (collection == null) {
|
|
66
|
-
return collection;
|
|
67
|
-
}
|
|
68
|
-
if (!isArrayLike(collection)) {
|
|
69
|
-
return eachFunc(collection, iteratee);
|
|
70
|
-
}
|
|
71
|
-
var length = collection.length,
|
|
72
|
-
index = -1,
|
|
73
|
-
iterable = Object(collection);
|
|
74
|
-
|
|
75
|
-
while ((++index < length)) {
|
|
76
|
-
if (iteratee(iterable[index], index, iterable) === false) {
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return collection;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
86
|
-
*
|
|
87
|
-
* @private
|
|
88
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
89
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
90
|
-
* @returns {Array|Object} Returns `collection`.
|
|
91
|
-
*/
|
|
92
|
-
var baseEach = createBaseEach(baseForOwn);
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
96
|
-
*
|
|
97
|
-
* @private
|
|
98
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
99
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
100
|
-
* @returns {Array} Returns the new mapped array.
|
|
101
|
-
*/
|
|
102
|
-
function baseMap(collection, iteratee) {
|
|
103
|
-
var index = -1,
|
|
104
|
-
result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
105
|
-
|
|
106
|
-
baseEach(collection, function(value, key, collection) {
|
|
107
|
-
result[++index] = iteratee(value, key, collection);
|
|
108
|
-
});
|
|
109
|
-
return result;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Creates an array of values by running each element in `collection` thru
|
|
114
|
-
* `iteratee`. The iteratee is invoked with three arguments:
|
|
115
|
-
* (value, index|key, collection).
|
|
116
|
-
*
|
|
117
|
-
* Many lodash methods are guarded to work as iteratees for methods like
|
|
118
|
-
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
|
119
|
-
*
|
|
120
|
-
* The guarded methods are:
|
|
121
|
-
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
|
122
|
-
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
|
123
|
-
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
|
124
|
-
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
|
125
|
-
*
|
|
126
|
-
* @static
|
|
127
|
-
* @memberOf _
|
|
128
|
-
* @since 0.1.0
|
|
129
|
-
* @category Collection
|
|
130
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
131
|
-
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
132
|
-
* @returns {Array} Returns the new mapped array.
|
|
133
|
-
* @example
|
|
134
|
-
*
|
|
135
|
-
* function square(n) {
|
|
136
|
-
* return n * n;
|
|
137
|
-
* }
|
|
138
|
-
*
|
|
139
|
-
* _.map([4, 8], square);
|
|
140
|
-
* // => [16, 64]
|
|
141
|
-
*
|
|
142
|
-
* _.map({ 'a': 4, 'b': 8 }, square);
|
|
143
|
-
* // => [16, 64] (iteration order is not guaranteed)
|
|
144
|
-
*
|
|
145
|
-
* var users = [
|
|
146
|
-
* { 'user': 'barney' },
|
|
147
|
-
* { 'user': 'fred' }
|
|
148
|
-
* ];
|
|
149
|
-
*
|
|
150
|
-
* // The `_.property` iteratee shorthand.
|
|
151
|
-
* _.map(users, 'user');
|
|
152
|
-
* // => ['barney', 'fred']
|
|
153
|
-
*/
|
|
154
|
-
function map(collection, iteratee) {
|
|
155
|
-
var func = isArray(collection) ? arrayMap : baseMap;
|
|
156
|
-
return func(collection, baseIteratee(iteratee));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Creates a flattened array of values by running each element in `collection`
|
|
161
|
-
* thru `iteratee` and flattening the mapped results. The iteratee is invoked
|
|
162
|
-
* with three arguments: (value, index|key, collection).
|
|
163
|
-
*
|
|
164
|
-
* @static
|
|
165
|
-
* @memberOf _
|
|
166
|
-
* @since 4.0.0
|
|
167
|
-
* @category Collection
|
|
168
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
169
|
-
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
170
|
-
* @returns {Array} Returns the new flattened array.
|
|
171
|
-
* @example
|
|
172
|
-
*
|
|
173
|
-
* function duplicate(n) {
|
|
174
|
-
* return [n, n];
|
|
175
|
-
* }
|
|
176
|
-
*
|
|
177
|
-
* _.flatMap([1, 2], duplicate);
|
|
178
|
-
* // => [1, 1, 2, 2]
|
|
179
|
-
*/
|
|
180
|
-
function flatMap(collection, iteratee) {
|
|
181
|
-
return baseFlatten(map(collection, iteratee), 1);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export { baseFor as b, flatMap as f, map as m };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { watch, unref } from 'vue';
|
|
2
|
-
import { a as debugWarn } from './Gk1J52Yw.mjs';
|
|
3
|
-
|
|
4
|
-
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
|
5
|
-
watch(
|
|
6
|
-
() => unref(condition),
|
|
7
|
-
(val) => {
|
|
8
|
-
if (val) {
|
|
9
|
-
debugWarn(
|
|
10
|
-
scope,
|
|
11
|
-
`[${type}] ${from} is about to be deprecated in version ${version}, please use ${replacement} instead.
|
|
12
|
-
For more detail, please visit: ${ref}
|
|
13
|
-
`
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
immediate: true
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { useDeprecated as u };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { computed, getCurrentInstance } from 'vue';
|
|
2
|
-
import { a as debugWarn, l as fromPairs } from './Gk1J52Yw.mjs';
|
|
3
|
-
|
|
4
|
-
const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
|
|
5
|
-
const LISTENER_PREFIX = /^on[A-Z]/;
|
|
6
|
-
const useAttrs = (params = {}) => {
|
|
7
|
-
const { excludeListeners = false, excludeKeys } = params;
|
|
8
|
-
const allExcludeKeys = computed(() => {
|
|
9
|
-
return ((excludeKeys == null ? void 0 : excludeKeys.value) || []).concat(DEFAULT_EXCLUDE_KEYS);
|
|
10
|
-
});
|
|
11
|
-
const instance = getCurrentInstance();
|
|
12
|
-
if (!instance) {
|
|
13
|
-
debugWarn(
|
|
14
|
-
"use-attrs",
|
|
15
|
-
"getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"
|
|
16
|
-
);
|
|
17
|
-
return computed(() => ({}));
|
|
18
|
-
}
|
|
19
|
-
return computed(
|
|
20
|
-
() => {
|
|
21
|
-
var _a;
|
|
22
|
-
return fromPairs(
|
|
23
|
-
Object.entries((_a = instance.proxy) == null ? void 0 : _a.$attrs).filter(
|
|
24
|
-
([key]) => !allExcludeKeys.value.includes(key) && !(excludeListeners && LISTENER_PREFIX.test(key))
|
|
25
|
-
)
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { useAttrs as u };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, renderSlot } from 'vue';
|
|
2
|
-
import { b as buildProps, d as definePropType, u as useNamespace } from './Gk1J52Yw.mjs';
|
|
3
|
-
import { _ as _export_sfc, w as withInstall } from './V6KjsUQN.mjs';
|
|
4
|
-
|
|
5
|
-
const dividerProps = buildProps({
|
|
6
|
-
direction: {
|
|
7
|
-
type: String,
|
|
8
|
-
values: ["horizontal", "vertical"],
|
|
9
|
-
default: "horizontal"
|
|
10
|
-
},
|
|
11
|
-
contentPosition: {
|
|
12
|
-
type: String,
|
|
13
|
-
values: ["left", "center", "right"],
|
|
14
|
-
default: "center"
|
|
15
|
-
},
|
|
16
|
-
borderStyle: {
|
|
17
|
-
type: definePropType(String),
|
|
18
|
-
default: "solid"
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const _sfc_main = defineComponent({
|
|
23
|
-
...{
|
|
24
|
-
name: "ElDivider"
|
|
25
|
-
},
|
|
26
|
-
__name: "divider",
|
|
27
|
-
props: dividerProps,
|
|
28
|
-
setup(__props) {
|
|
29
|
-
const props = __props;
|
|
30
|
-
const ns = useNamespace("divider");
|
|
31
|
-
const dividerStyle = computed(() => {
|
|
32
|
-
return ns.cssVar({
|
|
33
|
-
"border-style": props.borderStyle
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
|
41
|
-
style: normalizeStyle(dividerStyle.value),
|
|
42
|
-
role: "separator"
|
|
43
|
-
},
|
|
44
|
-
[
|
|
45
|
-
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
key: 0,
|
|
49
|
-
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
|
50
|
-
},
|
|
51
|
-
[
|
|
52
|
-
renderSlot(_ctx.$slots, "default")
|
|
53
|
-
],
|
|
54
|
-
2
|
|
55
|
-
)) : createCommentVNode("v-if", true)
|
|
56
|
-
],
|
|
57
|
-
6
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
63
|
-
|
|
64
|
-
const ElDivider = withInstall(Divider);
|
|
65
|
-
|
|
66
|
-
export { ElDivider as E };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot } from 'vue';
|
|
2
|
-
import { b as buildProps, d as definePropType, u as useNamespace } from './Gk1J52Yw.mjs';
|
|
3
|
-
import { _ as _export_sfc, w as withInstall } from './V6KjsUQN.mjs';
|
|
4
|
-
import { a as addUnit } from './DodoD9a9.mjs';
|
|
5
|
-
|
|
6
|
-
const iconProps = buildProps({
|
|
7
|
-
size: {
|
|
8
|
-
type: definePropType([Number, String])
|
|
9
|
-
},
|
|
10
|
-
color: {
|
|
11
|
-
type: String
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const _sfc_main = defineComponent({
|
|
16
|
-
...{
|
|
17
|
-
name: "ElIcon",
|
|
18
|
-
inheritAttrs: false
|
|
19
|
-
},
|
|
20
|
-
__name: "icon",
|
|
21
|
-
props: iconProps,
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const ns = useNamespace("icon");
|
|
25
|
-
const style = computed(() => {
|
|
26
|
-
const { size, color } = props;
|
|
27
|
-
const fontSize = addUnit(size);
|
|
28
|
-
if (!fontSize && !color)
|
|
29
|
-
return {};
|
|
30
|
-
return {
|
|
31
|
-
fontSize,
|
|
32
|
-
"--color": color
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createElementBlock(
|
|
37
|
-
"i",
|
|
38
|
-
mergeProps({
|
|
39
|
-
class: unref(ns).b(),
|
|
40
|
-
style: style.value
|
|
41
|
-
}, _ctx.$attrs),
|
|
42
|
-
[
|
|
43
|
-
renderSlot(_ctx.$slots, "default")
|
|
44
|
-
],
|
|
45
|
-
16
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
|
|
51
|
-
|
|
52
|
-
const ElIcon = withInstall(Icon);
|
|
53
|
-
|
|
54
|
-
export { ElIcon as E };
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { S as Stack, m as baseIsEqual, k as keys } from './B71xEPfK.mjs';
|
|
2
|
-
import { a as isObject, y as isKey, t as toKey, n as baseGet, f as isArray } from './Cxx_YWUC.mjs';
|
|
3
|
-
import { g as get } from './CEl4MyfJ.mjs';
|
|
4
|
-
import { c as hasIn, i as identity } from './BunQI8Jb.mjs';
|
|
5
|
-
|
|
6
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
7
|
-
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
8
|
-
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
12
|
-
*
|
|
13
|
-
* @private
|
|
14
|
-
* @param {Object} object The object to inspect.
|
|
15
|
-
* @param {Object} source The object of property values to match.
|
|
16
|
-
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
17
|
-
* @param {Function} [customizer] The function to customize comparisons.
|
|
18
|
-
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
19
|
-
*/
|
|
20
|
-
function baseIsMatch(object, source, matchData, customizer) {
|
|
21
|
-
var index = matchData.length,
|
|
22
|
-
length = index;
|
|
23
|
-
|
|
24
|
-
if (object == null) {
|
|
25
|
-
return !length;
|
|
26
|
-
}
|
|
27
|
-
object = Object(object);
|
|
28
|
-
while (index--) {
|
|
29
|
-
var data = matchData[index];
|
|
30
|
-
if ((data[2])
|
|
31
|
-
? data[1] !== object[data[0]]
|
|
32
|
-
: !(data[0] in object)
|
|
33
|
-
) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
while (++index < length) {
|
|
38
|
-
data = matchData[index];
|
|
39
|
-
var key = data[0],
|
|
40
|
-
objValue = object[key],
|
|
41
|
-
srcValue = data[1];
|
|
42
|
-
|
|
43
|
-
if (data[2]) {
|
|
44
|
-
if (objValue === undefined && !(key in object)) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
var stack = new Stack;
|
|
49
|
-
var result;
|
|
50
|
-
if (!(result === undefined
|
|
51
|
-
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
52
|
-
: result
|
|
53
|
-
)) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
63
|
-
*
|
|
64
|
-
* @private
|
|
65
|
-
* @param {*} value The value to check.
|
|
66
|
-
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
67
|
-
* equality comparisons, else `false`.
|
|
68
|
-
*/
|
|
69
|
-
function isStrictComparable(value) {
|
|
70
|
-
return value === value && !isObject(value);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Gets the property names, values, and compare flags of `object`.
|
|
75
|
-
*
|
|
76
|
-
* @private
|
|
77
|
-
* @param {Object} object The object to query.
|
|
78
|
-
* @returns {Array} Returns the match data of `object`.
|
|
79
|
-
*/
|
|
80
|
-
function getMatchData(object) {
|
|
81
|
-
var result = keys(object),
|
|
82
|
-
length = result.length;
|
|
83
|
-
|
|
84
|
-
while (length--) {
|
|
85
|
-
var key = result[length],
|
|
86
|
-
value = object[key];
|
|
87
|
-
|
|
88
|
-
result[length] = [key, value, isStrictComparable(value)];
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* A specialized version of `matchesProperty` for source values suitable
|
|
95
|
-
* for strict equality comparisons, i.e. `===`.
|
|
96
|
-
*
|
|
97
|
-
* @private
|
|
98
|
-
* @param {string} key The key of the property to get.
|
|
99
|
-
* @param {*} srcValue The value to match.
|
|
100
|
-
* @returns {Function} Returns the new spec function.
|
|
101
|
-
*/
|
|
102
|
-
function matchesStrictComparable(key, srcValue) {
|
|
103
|
-
return function(object) {
|
|
104
|
-
if (object == null) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
return object[key] === srcValue &&
|
|
108
|
-
(srcValue !== undefined || (key in Object(object)));
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
114
|
-
*
|
|
115
|
-
* @private
|
|
116
|
-
* @param {Object} source The object of property values to match.
|
|
117
|
-
* @returns {Function} Returns the new spec function.
|
|
118
|
-
*/
|
|
119
|
-
function baseMatches(source) {
|
|
120
|
-
var matchData = getMatchData(source);
|
|
121
|
-
if (matchData.length == 1 && matchData[0][2]) {
|
|
122
|
-
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
123
|
-
}
|
|
124
|
-
return function(object) {
|
|
125
|
-
return object === source || baseIsMatch(object, source, matchData);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
130
|
-
var COMPARE_PARTIAL_FLAG = 1,
|
|
131
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
135
|
-
*
|
|
136
|
-
* @private
|
|
137
|
-
* @param {string} path The path of the property to get.
|
|
138
|
-
* @param {*} srcValue The value to match.
|
|
139
|
-
* @returns {Function} Returns the new spec function.
|
|
140
|
-
*/
|
|
141
|
-
function baseMatchesProperty(path, srcValue) {
|
|
142
|
-
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
143
|
-
return matchesStrictComparable(toKey(path), srcValue);
|
|
144
|
-
}
|
|
145
|
-
return function(object) {
|
|
146
|
-
var objValue = get(object, path);
|
|
147
|
-
return (objValue === undefined && objValue === srcValue)
|
|
148
|
-
? hasIn(object, path)
|
|
149
|
-
: baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The base implementation of `_.property` without support for deep paths.
|
|
155
|
-
*
|
|
156
|
-
* @private
|
|
157
|
-
* @param {string} key The key of the property to get.
|
|
158
|
-
* @returns {Function} Returns the new accessor function.
|
|
159
|
-
*/
|
|
160
|
-
function baseProperty(key) {
|
|
161
|
-
return function(object) {
|
|
162
|
-
return object == null ? undefined : object[key];
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* A specialized version of `baseProperty` which supports deep paths.
|
|
168
|
-
*
|
|
169
|
-
* @private
|
|
170
|
-
* @param {Array|string} path The path of the property to get.
|
|
171
|
-
* @returns {Function} Returns the new accessor function.
|
|
172
|
-
*/
|
|
173
|
-
function basePropertyDeep(path) {
|
|
174
|
-
return function(object) {
|
|
175
|
-
return baseGet(object, path);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Creates a function that returns the value at `path` of a given object.
|
|
181
|
-
*
|
|
182
|
-
* @static
|
|
183
|
-
* @memberOf _
|
|
184
|
-
* @since 2.4.0
|
|
185
|
-
* @category Util
|
|
186
|
-
* @param {Array|string} path The path of the property to get.
|
|
187
|
-
* @returns {Function} Returns the new accessor function.
|
|
188
|
-
* @example
|
|
189
|
-
*
|
|
190
|
-
* var objects = [
|
|
191
|
-
* { 'a': { 'b': 2 } },
|
|
192
|
-
* { 'a': { 'b': 1 } }
|
|
193
|
-
* ];
|
|
194
|
-
*
|
|
195
|
-
* _.map(objects, _.property('a.b'));
|
|
196
|
-
* // => [2, 1]
|
|
197
|
-
*
|
|
198
|
-
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
199
|
-
* // => [1, 2]
|
|
200
|
-
*/
|
|
201
|
-
function property(path) {
|
|
202
|
-
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* The base implementation of `_.iteratee`.
|
|
207
|
-
*
|
|
208
|
-
* @private
|
|
209
|
-
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
210
|
-
* @returns {Function} Returns the iteratee.
|
|
211
|
-
*/
|
|
212
|
-
function baseIteratee(value) {
|
|
213
|
-
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
214
|
-
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
215
|
-
if (typeof value == 'function') {
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
if (value == null) {
|
|
219
|
-
return identity;
|
|
220
|
-
}
|
|
221
|
-
if (typeof value == 'object') {
|
|
222
|
-
return isArray(value)
|
|
223
|
-
? baseMatchesProperty(value[0], value[1])
|
|
224
|
-
: baseMatches(value);
|
|
225
|
-
}
|
|
226
|
-
return property(value);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export { baseIteratee as b };
|