@wfrog/vc-ui 1.11.10 → 1.11.12
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 +14 -13
- package/dist/es/components/choice/choice.mjs +11 -9
- package/dist/es/components/choice/index.css +1 -1
- package/dist/es/components/choice-boolean/choice-boolean.mjs +3 -3
- 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 +10 -12
- package/dist/es/components/daterange-picker/daterange-picker.mjs +10 -6255
- package/dist/es/components/dialog/dialog.mjs +14 -408
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +11 -14
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -4
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -1380
- 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 +16 -359
- package/dist/es/components/drawer/index.css +3 -3
- package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
- package/dist/es/components/explorer/explorer.mjs +8 -8
- 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 +18 -13
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +1 -1
- package/dist/es/components/explorer-list/index.css +16 -16
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +8 -7
- 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 +23 -271
- package/dist/es/components/explorer-tools/index.css +9 -9
- package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +1 -1
- package/dist/es/components/form-item/form-item.mjs +3 -3
- 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/index.css +1 -1
- package/dist/es/components/scrollbar/scrollbar.mjs +10 -10
- package/dist/es/components/select/index.css +1 -1
- package/dist/es/components/select/select.mjs +9 -10
- 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 +39 -8
- 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 +41 -68
- 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,643 +1,485 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import '
|
|
7
|
-
/* empty css */
|
|
8
|
-
import '../../chunk/NsldgdCh.mjs';
|
|
9
|
-
import '../../chunk/CCVL_Zj-.mjs';
|
|
10
|
-
import '../../chunk/CjLR27-a.mjs';
|
|
11
|
-
import { defineComponent, inject, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, provide, useSlots, ref, watch, onMounted, createElementBlock, createCommentVNode, createElementVNode, unref, nextTick, onBeforeUnmount, createTextVNode, toDisplayString, shallowRef, toRefs, Fragment, createVNode, renderList, useTemplateRef, mergeProps, isRef, useCssVars, useCssModule } from 'vue';
|
|
2
|
+
import { ElRow, ElCol, ElAnchor, ElAnchorLink, ElDivider, ElText, ElPopover, ElCascader } from 'element-plus/es';
|
|
3
|
+
import 'element-plus/es/components/base/style/css';
|
|
4
|
+
import 'element-plus/es/components/popover/style/css';
|
|
5
|
+
import 'element-plus/es/components/cascader/style/css';
|
|
6
|
+
import { ref, computed, shallowRef, defineComponent, toRefs, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, normalizeClass, toDisplayString, withCtx, renderList, createBlock, unref, useTemplateRef, watch, createCommentVNode, createTextVNode, onMounted, mergeProps, isRef, useCssVars, useCssModule, onBeforeUnmount, nextTick } from 'vue';
|
|
12
7
|
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
13
8
|
import { useInject, useProvide } from '../../use/useStore/index.mjs';
|
|
14
9
|
import { f as formatToPx } from '../../chunk/DZ5W9TaA.mjs';
|
|
15
10
|
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
16
|
-
import
|
|
11
|
+
import 'element-plus/es/components/anchor/style/css';
|
|
12
|
+
import 'element-plus/es/components/anchor-link/style/css';
|
|
13
|
+
import { useStorage, useVModel, useToggle, onClickOutside, useThrottleFn } from '@vueuse/core';
|
|
17
14
|
import { i as index } from '../../chunk/D9iEroQw.mjs';
|
|
18
|
-
import {
|
|
19
|
-
import { b as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import { E as ElDivider } from '../../chunk/CzdaOBtA.mjs';
|
|
29
|
-
import { E as ElText } from '../../chunk/DbhQlaOz.mjs';
|
|
30
|
-
import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
|
|
31
|
-
|
|
32
|
-
/** Used as references for various `Number` constants. */
|
|
33
|
-
var INFINITY = 1 / 0;
|
|
15
|
+
import { a as baseGet, d as isKey, t as toKey, h as hasIn, i as identity, e as arrayMap, b as baseFlatten } from '../../chunk/KanuIcmc.mjs';
|
|
16
|
+
import { S as Stack, b as baseIsEqual, k as keys, i as isArrayLike } from '../../chunk/uuUHUjSk.mjs';
|
|
17
|
+
import { i as isObject } from '../../chunk/CqTdDZkE.mjs';
|
|
18
|
+
import { a as isArray } from '../../chunk/DcouM6gM.mjs';
|
|
19
|
+
import 'element-plus/es/components/row/style/css';
|
|
20
|
+
import 'element-plus/es/components/col/style/css';
|
|
21
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
22
|
+
import 'element-plus/es/components/divider/style/css';
|
|
23
|
+
import 'element-plus/es/components/text/style/css';
|
|
24
|
+
import { P as PopoverCascader } from '../../chunk/Bw0Rhd-r.mjs';
|
|
34
25
|
|
|
35
26
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
27
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
28
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
38
29
|
*
|
|
39
30
|
* @static
|
|
40
31
|
* @memberOf _
|
|
41
|
-
* @since
|
|
42
|
-
* @category
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
45
|
-
* @
|
|
32
|
+
* @since 3.7.0
|
|
33
|
+
* @category Object
|
|
34
|
+
* @param {Object} object The object to query.
|
|
35
|
+
* @param {Array|string} path The path of the property to get.
|
|
36
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
37
|
+
* @returns {*} Returns the resolved value.
|
|
46
38
|
* @example
|
|
47
39
|
*
|
|
48
|
-
*
|
|
49
|
-
* return [[[n, n]]];
|
|
50
|
-
* }
|
|
40
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
51
41
|
*
|
|
52
|
-
* _.
|
|
53
|
-
* // =>
|
|
42
|
+
* _.get(object, 'a[0].b.c');
|
|
43
|
+
* // => 3
|
|
44
|
+
*
|
|
45
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
46
|
+
* // => 3
|
|
47
|
+
*
|
|
48
|
+
* _.get(object, 'a.b.c', 'default');
|
|
49
|
+
* // => 'default'
|
|
54
50
|
*/
|
|
55
|
-
function
|
|
56
|
-
|
|
51
|
+
function get(object, path, defaultValue) {
|
|
52
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
53
|
+
return result === undefined ? defaultValue : result;
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
default: "div"
|
|
63
|
-
},
|
|
64
|
-
span: {
|
|
65
|
-
type: Number,
|
|
66
|
-
default: 24
|
|
67
|
-
},
|
|
68
|
-
offset: {
|
|
69
|
-
type: Number,
|
|
70
|
-
default: 0
|
|
71
|
-
},
|
|
72
|
-
pull: {
|
|
73
|
-
type: Number,
|
|
74
|
-
default: 0
|
|
75
|
-
},
|
|
76
|
-
push: {
|
|
77
|
-
type: Number,
|
|
78
|
-
default: 0
|
|
79
|
-
},
|
|
80
|
-
xs: {
|
|
81
|
-
type: definePropType([Number, Object]),
|
|
82
|
-
default: () => mutable({})
|
|
83
|
-
},
|
|
84
|
-
sm: {
|
|
85
|
-
type: definePropType([Number, Object]),
|
|
86
|
-
default: () => mutable({})
|
|
87
|
-
},
|
|
88
|
-
md: {
|
|
89
|
-
type: definePropType([Number, Object]),
|
|
90
|
-
default: () => mutable({})
|
|
91
|
-
},
|
|
92
|
-
lg: {
|
|
93
|
-
type: definePropType([Number, Object]),
|
|
94
|
-
default: () => mutable({})
|
|
95
|
-
},
|
|
96
|
-
xl: {
|
|
97
|
-
type: definePropType([Number, Object]),
|
|
98
|
-
default: () => mutable({})
|
|
99
|
-
}
|
|
100
|
-
});
|
|
56
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
57
|
+
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
58
|
+
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
101
59
|
|
|
102
|
-
|
|
60
|
+
/**
|
|
61
|
+
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
62
|
+
*
|
|
63
|
+
* @private
|
|
64
|
+
* @param {Object} object The object to inspect.
|
|
65
|
+
* @param {Object} source The object of property values to match.
|
|
66
|
+
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
67
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
68
|
+
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
69
|
+
*/
|
|
70
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
71
|
+
var index = matchData.length,
|
|
72
|
+
length = index;
|
|
103
73
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
74
|
+
if (object == null) {
|
|
75
|
+
return !length;
|
|
76
|
+
}
|
|
77
|
+
object = Object(object);
|
|
78
|
+
while (index--) {
|
|
79
|
+
var data = matchData[index];
|
|
80
|
+
if ((data[2])
|
|
81
|
+
? data[1] !== object[data[0]]
|
|
82
|
+
: !(data[0] in object)
|
|
83
|
+
) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
while (++index < length) {
|
|
88
|
+
data = matchData[index];
|
|
89
|
+
var key = data[0],
|
|
90
|
+
objValue = object[key],
|
|
91
|
+
srcValue = data[1];
|
|
92
|
+
|
|
93
|
+
if (data[2]) {
|
|
94
|
+
if (objValue === undefined && !(key in object)) {
|
|
95
|
+
return false;
|
|
118
96
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (prop === "span")
|
|
128
|
-
classes.push(ns.b(`${props[prop]}`));
|
|
129
|
-
else if (size > 0)
|
|
130
|
-
classes.push(ns.b(`${prop}-${props[prop]}`));
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
134
|
-
sizes.forEach((size) => {
|
|
135
|
-
if (isNumber(props[size])) {
|
|
136
|
-
classes.push(ns.b(`${size}-${props[size]}`));
|
|
137
|
-
} else if (isObject(props[size])) {
|
|
138
|
-
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
139
|
-
classes.push(
|
|
140
|
-
prop !== "span" ? ns.b(`${size}-${prop}-${sizeProp}`) : ns.b(`${size}-${sizeProp}`)
|
|
141
|
-
);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
if (gutter.value) {
|
|
146
|
-
classes.push(ns.is("guttered"));
|
|
97
|
+
} else {
|
|
98
|
+
var stack = new Stack;
|
|
99
|
+
var result;
|
|
100
|
+
if (!(result === undefined
|
|
101
|
+
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
102
|
+
: result
|
|
103
|
+
)) {
|
|
104
|
+
return false;
|
|
147
105
|
}
|
|
148
|
-
|
|
149
|
-
});
|
|
150
|
-
return (_ctx, _cache) => {
|
|
151
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
152
|
-
class: normalizeClass(colKls.value),
|
|
153
|
-
style: normalizeStyle(style.value)
|
|
154
|
-
}, {
|
|
155
|
-
default: withCtx(() => [
|
|
156
|
-
renderSlot(_ctx.$slots, "default")
|
|
157
|
-
]),
|
|
158
|
-
_: 3
|
|
159
|
-
}, 8, ["class", "style"]);
|
|
160
|
-
};
|
|
106
|
+
}
|
|
161
107
|
}
|
|
162
|
-
|
|
163
|
-
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
164
110
|
|
|
165
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
113
|
+
*
|
|
114
|
+
* @private
|
|
115
|
+
* @param {*} value The value to check.
|
|
116
|
+
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
117
|
+
* equality comparisons, else `false`.
|
|
118
|
+
*/
|
|
119
|
+
function isStrictComparable(value) {
|
|
120
|
+
return value === value && !isObject(value);
|
|
121
|
+
}
|
|
166
122
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
tag: {
|
|
178
|
-
type: String,
|
|
179
|
-
default: "div"
|
|
180
|
-
},
|
|
181
|
-
gutter: {
|
|
182
|
-
type: Number,
|
|
183
|
-
default: 0
|
|
184
|
-
},
|
|
185
|
-
justify: {
|
|
186
|
-
type: String,
|
|
187
|
-
values: RowJustify,
|
|
188
|
-
default: "start"
|
|
189
|
-
},
|
|
190
|
-
align: {
|
|
191
|
-
type: String,
|
|
192
|
-
values: RowAlign
|
|
193
|
-
}
|
|
194
|
-
});
|
|
123
|
+
/**
|
|
124
|
+
* Gets the property names, values, and compare flags of `object`.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @param {Object} object The object to query.
|
|
128
|
+
* @returns {Array} Returns the match data of `object`.
|
|
129
|
+
*/
|
|
130
|
+
function getMatchData(object) {
|
|
131
|
+
var result = keys(object),
|
|
132
|
+
length = result.length;
|
|
195
133
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
props: rowProps,
|
|
202
|
-
setup(__props) {
|
|
203
|
-
const props = __props;
|
|
204
|
-
const ns = useNamespace("row");
|
|
205
|
-
const gutter = computed(() => props.gutter);
|
|
206
|
-
provide(rowContextKey, {
|
|
207
|
-
gutter
|
|
208
|
-
});
|
|
209
|
-
const style = computed(() => {
|
|
210
|
-
const styles = {};
|
|
211
|
-
if (!props.gutter) {
|
|
212
|
-
return styles;
|
|
213
|
-
}
|
|
214
|
-
styles.marginRight = styles.marginLeft = `-${props.gutter / 2}px`;
|
|
215
|
-
return styles;
|
|
216
|
-
});
|
|
217
|
-
const rowKls = computed(() => [
|
|
218
|
-
ns.b(),
|
|
219
|
-
ns.is(`justify-${props.justify}`, props.justify !== "start"),
|
|
220
|
-
ns.is(`align-${props.align}`, !!props.align)
|
|
221
|
-
]);
|
|
222
|
-
return (_ctx, _cache) => {
|
|
223
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
224
|
-
class: normalizeClass(rowKls.value),
|
|
225
|
-
style: normalizeStyle(style.value)
|
|
226
|
-
}, {
|
|
227
|
-
default: withCtx(() => [
|
|
228
|
-
renderSlot(_ctx.$slots, "default")
|
|
229
|
-
]),
|
|
230
|
-
_: 3
|
|
231
|
-
}, 8, ["class", "style"]);
|
|
232
|
-
};
|
|
134
|
+
while (length--) {
|
|
135
|
+
var key = result[length],
|
|
136
|
+
value = object[key];
|
|
137
|
+
|
|
138
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
233
139
|
}
|
|
234
|
-
|
|
235
|
-
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
236
142
|
|
|
237
|
-
|
|
143
|
+
/**
|
|
144
|
+
* A specialized version of `matchesProperty` for source values suitable
|
|
145
|
+
* for strict equality comparisons, i.e. `===`.
|
|
146
|
+
*
|
|
147
|
+
* @private
|
|
148
|
+
* @param {string} key The key of the property to get.
|
|
149
|
+
* @param {*} srcValue The value to match.
|
|
150
|
+
* @returns {Function} Returns the new spec function.
|
|
151
|
+
*/
|
|
152
|
+
function matchesStrictComparable(key, srcValue) {
|
|
153
|
+
return function(object) {
|
|
154
|
+
if (object == null) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
157
|
+
return object[key] === srcValue &&
|
|
158
|
+
(srcValue !== undefined || (key in Object(object)));
|
|
159
|
+
};
|
|
160
|
+
}
|
|
238
161
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
type: Number,
|
|
256
|
-
default: 300
|
|
257
|
-
},
|
|
258
|
-
marker: {
|
|
259
|
-
type: Boolean,
|
|
260
|
-
default: true
|
|
261
|
-
},
|
|
262
|
-
type: {
|
|
263
|
-
type: definePropType(String),
|
|
264
|
-
default: "default"
|
|
265
|
-
},
|
|
266
|
-
direction: {
|
|
267
|
-
type: definePropType(String),
|
|
268
|
-
default: "vertical"
|
|
269
|
-
},
|
|
270
|
-
selectScrollTop: Boolean
|
|
271
|
-
});
|
|
272
|
-
const anchorEmits = {
|
|
273
|
-
change: (href) => isString(href),
|
|
274
|
-
click: (e, href) => e instanceof MouseEvent && (isString(href) || isUndefined(href))
|
|
275
|
-
};
|
|
162
|
+
/**
|
|
163
|
+
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
164
|
+
*
|
|
165
|
+
* @private
|
|
166
|
+
* @param {Object} source The object of property values to match.
|
|
167
|
+
* @returns {Function} Returns the new spec function.
|
|
168
|
+
*/
|
|
169
|
+
function baseMatches(source) {
|
|
170
|
+
var matchData = getMatchData(source);
|
|
171
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
172
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
173
|
+
}
|
|
174
|
+
return function(object) {
|
|
175
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
276
178
|
|
|
277
|
-
|
|
179
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
180
|
+
var COMPARE_PARTIAL_FLAG = 1,
|
|
181
|
+
COMPARE_UNORDERED_FLAG = 2;
|
|
278
182
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
183
|
+
/**
|
|
184
|
+
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
185
|
+
*
|
|
186
|
+
* @private
|
|
187
|
+
* @param {string} path The path of the property to get.
|
|
188
|
+
* @param {*} srcValue The value to match.
|
|
189
|
+
* @returns {Function} Returns the new spec function.
|
|
190
|
+
*/
|
|
191
|
+
function baseMatchesProperty(path, srcValue) {
|
|
192
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
193
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
288
194
|
}
|
|
289
|
-
return
|
|
290
|
-
|
|
195
|
+
return function(object) {
|
|
196
|
+
var objValue = get(object, path);
|
|
197
|
+
return (objValue === undefined && objValue === srcValue)
|
|
198
|
+
? hasIn(object, path)
|
|
199
|
+
: baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
291
202
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
203
|
+
/**
|
|
204
|
+
* The base implementation of `_.property` without support for deep paths.
|
|
205
|
+
*
|
|
206
|
+
* @private
|
|
207
|
+
* @param {string} key The key of the property to get.
|
|
208
|
+
* @returns {Function} Returns the new accessor function.
|
|
209
|
+
*/
|
|
210
|
+
function baseProperty(key) {
|
|
211
|
+
return function(object) {
|
|
212
|
+
return object == null ? undefined : object[key];
|
|
302
213
|
};
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* A specialized version of `baseProperty` which supports deep paths.
|
|
218
|
+
*
|
|
219
|
+
* @private
|
|
220
|
+
* @param {Array|string} path The path of the property to get.
|
|
221
|
+
* @returns {Function} Returns the new accessor function.
|
|
222
|
+
*/
|
|
223
|
+
function basePropertyDeep(path) {
|
|
224
|
+
return function(object) {
|
|
225
|
+
return baseGet(object, path);
|
|
306
226
|
};
|
|
307
|
-
return throttle;
|
|
308
227
|
}
|
|
309
228
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
let clearAnimate = null;
|
|
349
|
-
let currentTargetHref = "";
|
|
350
|
-
const scrollToAnchor = (href) => {
|
|
351
|
-
if (!containerEl.value)
|
|
352
|
-
return;
|
|
353
|
-
const target = getElement(href);
|
|
354
|
-
if (!target)
|
|
355
|
-
return;
|
|
356
|
-
if (clearAnimate) {
|
|
357
|
-
if (currentTargetHref === href)
|
|
358
|
-
return;
|
|
359
|
-
clearAnimate();
|
|
360
|
-
}
|
|
361
|
-
currentTargetHref = href;
|
|
362
|
-
isScrolling = true;
|
|
363
|
-
const scrollEle = getScrollElement(target, containerEl.value);
|
|
364
|
-
const distance = getOffsetTopDistance(target, scrollEle);
|
|
365
|
-
const max = scrollEle.scrollHeight - scrollEle.clientHeight;
|
|
366
|
-
const to = Math.min(distance - props.offset, max);
|
|
367
|
-
clearAnimate = animateScrollTo(
|
|
368
|
-
containerEl.value,
|
|
369
|
-
currentScrollTop,
|
|
370
|
-
to,
|
|
371
|
-
props.duration,
|
|
372
|
-
() => {
|
|
373
|
-
setTimeout(() => {
|
|
374
|
-
isScrolling = false;
|
|
375
|
-
currentTargetHref = "";
|
|
376
|
-
}, 20);
|
|
377
|
-
}
|
|
378
|
-
);
|
|
379
|
-
};
|
|
380
|
-
const scrollTo = (href) => {
|
|
381
|
-
if (href) {
|
|
382
|
-
setCurrentAnchor(href);
|
|
383
|
-
scrollToAnchor(href);
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
const handleClick = (e, href) => {
|
|
387
|
-
emit("click", e, href);
|
|
388
|
-
scrollTo(href);
|
|
389
|
-
};
|
|
390
|
-
const handleScroll = throttleByRaf(() => {
|
|
391
|
-
if (containerEl.value) {
|
|
392
|
-
currentScrollTop = getScrollTop(containerEl.value);
|
|
393
|
-
}
|
|
394
|
-
const currentHref = getCurrentHref();
|
|
395
|
-
if (isScrolling || isUndefined(currentHref))
|
|
396
|
-
return;
|
|
397
|
-
setCurrentAnchor(currentHref);
|
|
398
|
-
});
|
|
399
|
-
const getCurrentHref = () => {
|
|
400
|
-
if (!containerEl.value)
|
|
401
|
-
return;
|
|
402
|
-
const scrollTop = getScrollTop(containerEl.value);
|
|
403
|
-
const anchorTopList = [];
|
|
404
|
-
for (const href of Object.keys(links)) {
|
|
405
|
-
const target = getElement(href);
|
|
406
|
-
if (!target)
|
|
407
|
-
continue;
|
|
408
|
-
const scrollEle = getScrollElement(target, containerEl.value);
|
|
409
|
-
const distance = getOffsetTopDistance(target, scrollEle);
|
|
410
|
-
anchorTopList.push({
|
|
411
|
-
top: distance - props.offset - props.bound,
|
|
412
|
-
href
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
anchorTopList.sort((prev, next) => prev.top - next.top);
|
|
416
|
-
for (let i = 0; i < anchorTopList.length; i++) {
|
|
417
|
-
const item = anchorTopList[i];
|
|
418
|
-
const next = anchorTopList[i + 1];
|
|
419
|
-
if (i === 0 && scrollTop === 0) {
|
|
420
|
-
return props.selectScrollTop ? item.href : "";
|
|
421
|
-
}
|
|
422
|
-
if (item.top <= scrollTop && (!next || next.top > scrollTop)) {
|
|
423
|
-
return item.href;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
const getContainer = () => {
|
|
428
|
-
const el = getElement(props.container);
|
|
429
|
-
if (!el || isWindow(el)) {
|
|
430
|
-
containerEl.value = window;
|
|
431
|
-
} else {
|
|
432
|
-
containerEl.value = el;
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
useEventListener(containerEl, "scroll", handleScroll);
|
|
436
|
-
const updateMarkerStyle = () => {
|
|
437
|
-
nextTick(() => {
|
|
438
|
-
if (!anchorRef.value || !markerRef.value || !currentAnchor.value) {
|
|
439
|
-
markerStyle.value = {};
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
const currentLinkEl = links[currentAnchor.value];
|
|
443
|
-
if (!currentLinkEl) {
|
|
444
|
-
markerStyle.value = {};
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
const anchorRect = anchorRef.value.getBoundingClientRect();
|
|
448
|
-
const markerRect = markerRef.value.getBoundingClientRect();
|
|
449
|
-
const linkRect = currentLinkEl.getBoundingClientRect();
|
|
450
|
-
if (props.direction === "horizontal") {
|
|
451
|
-
const left = linkRect.left - anchorRect.left;
|
|
452
|
-
markerStyle.value = {
|
|
453
|
-
left: `${left}px`,
|
|
454
|
-
width: `${linkRect.width}px`,
|
|
455
|
-
opacity: 1
|
|
456
|
-
};
|
|
457
|
-
} else {
|
|
458
|
-
const top = linkRect.top - anchorRect.top + (linkRect.height - markerRect.height) / 2;
|
|
459
|
-
markerStyle.value = {
|
|
460
|
-
top: `${top}px`,
|
|
461
|
-
opacity: 1
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
};
|
|
466
|
-
watch(currentAnchor, updateMarkerStyle);
|
|
467
|
-
watch(() => {
|
|
468
|
-
var _a;
|
|
469
|
-
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
470
|
-
}, updateMarkerStyle);
|
|
471
|
-
onMounted(() => {
|
|
472
|
-
getContainer();
|
|
473
|
-
const hash = decodeURIComponent(window.location.hash);
|
|
474
|
-
const target = getElement(hash);
|
|
475
|
-
if (target) {
|
|
476
|
-
scrollTo(hash);
|
|
477
|
-
} else {
|
|
478
|
-
handleScroll();
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
watch(
|
|
482
|
-
() => props.container,
|
|
483
|
-
() => {
|
|
484
|
-
getContainer();
|
|
485
|
-
}
|
|
486
|
-
);
|
|
487
|
-
provide(anchorKey, {
|
|
488
|
-
ns,
|
|
489
|
-
direction: props.direction,
|
|
490
|
-
currentAnchor,
|
|
491
|
-
addLink,
|
|
492
|
-
removeLink,
|
|
493
|
-
handleClick
|
|
494
|
-
});
|
|
495
|
-
__expose({
|
|
496
|
-
scrollTo
|
|
497
|
-
});
|
|
498
|
-
return (_ctx, _cache) => {
|
|
499
|
-
return openBlock(), createElementBlock(
|
|
500
|
-
"div",
|
|
501
|
-
{
|
|
502
|
-
ref_key: "anchorRef",
|
|
503
|
-
ref: anchorRef,
|
|
504
|
-
class: normalizeClass(cls.value)
|
|
505
|
-
},
|
|
506
|
-
[
|
|
507
|
-
_ctx.marker ? (openBlock(), createElementBlock(
|
|
508
|
-
"div",
|
|
509
|
-
{
|
|
510
|
-
key: 0,
|
|
511
|
-
ref_key: "markerRef",
|
|
512
|
-
ref: markerRef,
|
|
513
|
-
class: normalizeClass(unref(ns).e("marker")),
|
|
514
|
-
style: normalizeStyle(markerStyle.value)
|
|
515
|
-
},
|
|
516
|
-
null,
|
|
517
|
-
6
|
|
518
|
-
)) : createCommentVNode("v-if", true),
|
|
519
|
-
createElementVNode(
|
|
520
|
-
"div",
|
|
521
|
-
{
|
|
522
|
-
class: normalizeClass(unref(ns).e("list"))
|
|
523
|
-
},
|
|
524
|
-
[
|
|
525
|
-
renderSlot(_ctx.$slots, "default")
|
|
526
|
-
],
|
|
527
|
-
2
|
|
528
|
-
)
|
|
529
|
-
],
|
|
530
|
-
2
|
|
531
|
-
);
|
|
532
|
-
};
|
|
229
|
+
/**
|
|
230
|
+
* Creates a function that returns the value at `path` of a given object.
|
|
231
|
+
*
|
|
232
|
+
* @static
|
|
233
|
+
* @memberOf _
|
|
234
|
+
* @since 2.4.0
|
|
235
|
+
* @category Util
|
|
236
|
+
* @param {Array|string} path The path of the property to get.
|
|
237
|
+
* @returns {Function} Returns the new accessor function.
|
|
238
|
+
* @example
|
|
239
|
+
*
|
|
240
|
+
* var objects = [
|
|
241
|
+
* { 'a': { 'b': 2 } },
|
|
242
|
+
* { 'a': { 'b': 1 } }
|
|
243
|
+
* ];
|
|
244
|
+
*
|
|
245
|
+
* _.map(objects, _.property('a.b'));
|
|
246
|
+
* // => [2, 1]
|
|
247
|
+
*
|
|
248
|
+
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
249
|
+
* // => [1, 2]
|
|
250
|
+
*/
|
|
251
|
+
function property(path) {
|
|
252
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The base implementation of `_.iteratee`.
|
|
257
|
+
*
|
|
258
|
+
* @private
|
|
259
|
+
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
260
|
+
* @returns {Function} Returns the iteratee.
|
|
261
|
+
*/
|
|
262
|
+
function baseIteratee(value) {
|
|
263
|
+
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
264
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
265
|
+
if (typeof value == 'function') {
|
|
266
|
+
return value;
|
|
533
267
|
}
|
|
534
|
-
|
|
535
|
-
|
|
268
|
+
if (value == null) {
|
|
269
|
+
return identity;
|
|
270
|
+
}
|
|
271
|
+
if (typeof value == 'object') {
|
|
272
|
+
return isArray(value)
|
|
273
|
+
? baseMatchesProperty(value[0], value[1])
|
|
274
|
+
: baseMatches(value);
|
|
275
|
+
}
|
|
276
|
+
return property(value);
|
|
277
|
+
}
|
|
536
278
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
281
|
+
*
|
|
282
|
+
* @private
|
|
283
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
284
|
+
* @returns {Function} Returns the new base function.
|
|
285
|
+
*/
|
|
286
|
+
function createBaseFor(fromRight) {
|
|
287
|
+
return function(object, iteratee, keysFunc) {
|
|
288
|
+
var index = -1,
|
|
289
|
+
iterable = Object(object),
|
|
290
|
+
props = keysFunc(object),
|
|
291
|
+
length = props.length;
|
|
541
292
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
},
|
|
547
|
-
__name: "anchor-link",
|
|
548
|
-
props: anchorLinkProps,
|
|
549
|
-
setup(__props) {
|
|
550
|
-
const props = __props;
|
|
551
|
-
const linkRef = ref(null);
|
|
552
|
-
const {
|
|
553
|
-
ns,
|
|
554
|
-
direction,
|
|
555
|
-
currentAnchor,
|
|
556
|
-
addLink,
|
|
557
|
-
removeLink,
|
|
558
|
-
handleClick: contextHandleClick
|
|
559
|
-
} = inject(anchorKey);
|
|
560
|
-
const cls = computed(() => [
|
|
561
|
-
ns.e("link"),
|
|
562
|
-
ns.is("active", currentAnchor.value === props.href)
|
|
563
|
-
]);
|
|
564
|
-
const handleClick = (e) => {
|
|
565
|
-
contextHandleClick(e, props.href);
|
|
566
|
-
};
|
|
567
|
-
watch(
|
|
568
|
-
() => props.href,
|
|
569
|
-
(val, oldVal) => {
|
|
570
|
-
nextTick(() => {
|
|
571
|
-
if (oldVal)
|
|
572
|
-
removeLink(oldVal);
|
|
573
|
-
if (val) {
|
|
574
|
-
addLink({
|
|
575
|
-
href: val,
|
|
576
|
-
el: linkRef.value
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
);
|
|
582
|
-
onMounted(() => {
|
|
583
|
-
const { href } = props;
|
|
584
|
-
if (href) {
|
|
585
|
-
addLink({
|
|
586
|
-
href,
|
|
587
|
-
el: linkRef.value
|
|
588
|
-
});
|
|
293
|
+
while (length--) {
|
|
294
|
+
var key = props[++index];
|
|
295
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
296
|
+
break;
|
|
589
297
|
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
298
|
+
}
|
|
299
|
+
return object;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
|
305
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
306
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
307
|
+
*
|
|
308
|
+
* @private
|
|
309
|
+
* @param {Object} object The object to iterate over.
|
|
310
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
311
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
312
|
+
* @returns {Object} Returns `object`.
|
|
313
|
+
*/
|
|
314
|
+
var baseFor = createBaseFor();
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
318
|
+
*
|
|
319
|
+
* @private
|
|
320
|
+
* @param {Object} object The object to iterate over.
|
|
321
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
322
|
+
* @returns {Object} Returns `object`.
|
|
323
|
+
*/
|
|
324
|
+
function baseForOwn(object, iteratee) {
|
|
325
|
+
return object && baseFor(object, iteratee, keys);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Creates a `baseEach` or `baseEachRight` function.
|
|
330
|
+
*
|
|
331
|
+
* @private
|
|
332
|
+
* @param {Function} eachFunc The function to iterate over a collection.
|
|
333
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
334
|
+
* @returns {Function} Returns the new base function.
|
|
335
|
+
*/
|
|
336
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
337
|
+
return function(collection, iteratee) {
|
|
338
|
+
if (collection == null) {
|
|
339
|
+
return collection;
|
|
340
|
+
}
|
|
341
|
+
if (!isArrayLike(collection)) {
|
|
342
|
+
return eachFunc(collection, iteratee);
|
|
343
|
+
}
|
|
344
|
+
var length = collection.length,
|
|
345
|
+
index = -1,
|
|
346
|
+
iterable = Object(collection);
|
|
347
|
+
|
|
348
|
+
while ((++index < length)) {
|
|
349
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
350
|
+
break;
|
|
595
351
|
}
|
|
596
|
-
}
|
|
597
|
-
return
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
{
|
|
601
|
-
class: normalizeClass(unref(ns).e("item"))
|
|
602
|
-
},
|
|
603
|
-
[
|
|
604
|
-
createElementVNode("a", {
|
|
605
|
-
ref_key: "linkRef",
|
|
606
|
-
ref: linkRef,
|
|
607
|
-
class: normalizeClass(cls.value),
|
|
608
|
-
href: _ctx.href,
|
|
609
|
-
onClick: handleClick
|
|
610
|
-
}, [
|
|
611
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
612
|
-
createTextVNode(
|
|
613
|
-
toDisplayString(_ctx.title),
|
|
614
|
-
1
|
|
615
|
-
)
|
|
616
|
-
])
|
|
617
|
-
], 10, _hoisted_1$6),
|
|
618
|
-
_ctx.$slots["sub-link"] && unref(direction) === "vertical" ? (openBlock(), createElementBlock(
|
|
619
|
-
"div",
|
|
620
|
-
{
|
|
621
|
-
key: 0,
|
|
622
|
-
class: normalizeClass(unref(ns).e("list"))
|
|
623
|
-
},
|
|
624
|
-
[
|
|
625
|
-
renderSlot(_ctx.$slots, "sub-link")
|
|
626
|
-
],
|
|
627
|
-
2
|
|
628
|
-
)) : createCommentVNode("v-if", true)
|
|
629
|
-
],
|
|
630
|
-
2
|
|
631
|
-
);
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
});
|
|
635
|
-
var AnchorLink = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);
|
|
352
|
+
}
|
|
353
|
+
return collection;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
636
356
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
357
|
+
/**
|
|
358
|
+
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
359
|
+
*
|
|
360
|
+
* @private
|
|
361
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
362
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
363
|
+
* @returns {Array|Object} Returns `collection`.
|
|
364
|
+
*/
|
|
365
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
369
|
+
*
|
|
370
|
+
* @private
|
|
371
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
372
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
373
|
+
* @returns {Array} Returns the new mapped array.
|
|
374
|
+
*/
|
|
375
|
+
function baseMap(collection, iteratee) {
|
|
376
|
+
var index = -1,
|
|
377
|
+
result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
378
|
+
|
|
379
|
+
baseEach(collection, function(value, key, collection) {
|
|
380
|
+
result[++index] = iteratee(value, key, collection);
|
|
381
|
+
});
|
|
382
|
+
return result;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Creates an array of values by running each element in `collection` thru
|
|
387
|
+
* `iteratee`. The iteratee is invoked with three arguments:
|
|
388
|
+
* (value, index|key, collection).
|
|
389
|
+
*
|
|
390
|
+
* Many lodash methods are guarded to work as iteratees for methods like
|
|
391
|
+
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
|
392
|
+
*
|
|
393
|
+
* The guarded methods are:
|
|
394
|
+
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
|
395
|
+
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
|
396
|
+
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
|
397
|
+
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
|
398
|
+
*
|
|
399
|
+
* @static
|
|
400
|
+
* @memberOf _
|
|
401
|
+
* @since 0.1.0
|
|
402
|
+
* @category Collection
|
|
403
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
404
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
405
|
+
* @returns {Array} Returns the new mapped array.
|
|
406
|
+
* @example
|
|
407
|
+
*
|
|
408
|
+
* function square(n) {
|
|
409
|
+
* return n * n;
|
|
410
|
+
* }
|
|
411
|
+
*
|
|
412
|
+
* _.map([4, 8], square);
|
|
413
|
+
* // => [16, 64]
|
|
414
|
+
*
|
|
415
|
+
* _.map({ 'a': 4, 'b': 8 }, square);
|
|
416
|
+
* // => [16, 64] (iteration order is not guaranteed)
|
|
417
|
+
*
|
|
418
|
+
* var users = [
|
|
419
|
+
* { 'user': 'barney' },
|
|
420
|
+
* { 'user': 'fred' }
|
|
421
|
+
* ];
|
|
422
|
+
*
|
|
423
|
+
* // The `_.property` iteratee shorthand.
|
|
424
|
+
* _.map(users, 'user');
|
|
425
|
+
* // => ['barney', 'fred']
|
|
426
|
+
*/
|
|
427
|
+
function map(collection, iteratee) {
|
|
428
|
+
var func = isArray(collection) ? arrayMap : baseMap;
|
|
429
|
+
return func(collection, baseIteratee(iteratee));
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Creates a flattened array of values by running each element in `collection`
|
|
434
|
+
* thru `iteratee` and flattening the mapped results. The iteratee is invoked
|
|
435
|
+
* with three arguments: (value, index|key, collection).
|
|
436
|
+
*
|
|
437
|
+
* @static
|
|
438
|
+
* @memberOf _
|
|
439
|
+
* @since 4.0.0
|
|
440
|
+
* @category Collection
|
|
441
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
442
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
443
|
+
* @returns {Array} Returns the new flattened array.
|
|
444
|
+
* @example
|
|
445
|
+
*
|
|
446
|
+
* function duplicate(n) {
|
|
447
|
+
* return [n, n];
|
|
448
|
+
* }
|
|
449
|
+
*
|
|
450
|
+
* _.flatMap([1, 2], duplicate);
|
|
451
|
+
* // => [1, 1, 2, 2]
|
|
452
|
+
*/
|
|
453
|
+
function flatMap(collection, iteratee) {
|
|
454
|
+
return baseFlatten(map(collection, iteratee), 1);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** Used as references for various `Number` constants. */
|
|
458
|
+
var INFINITY = 1 / 0;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* This method is like `_.flatMap` except that it recursively flattens the
|
|
462
|
+
* mapped results.
|
|
463
|
+
*
|
|
464
|
+
* @static
|
|
465
|
+
* @memberOf _
|
|
466
|
+
* @since 4.7.0
|
|
467
|
+
* @category Collection
|
|
468
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
469
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
470
|
+
* @returns {Array} Returns the new flattened array.
|
|
471
|
+
* @example
|
|
472
|
+
*
|
|
473
|
+
* function duplicate(n) {
|
|
474
|
+
* return [[[n, n]]];
|
|
475
|
+
* }
|
|
476
|
+
*
|
|
477
|
+
* _.flatMapDeep([1, 2], duplicate);
|
|
478
|
+
* // => [1, 1, 2, 2]
|
|
479
|
+
*/
|
|
480
|
+
function flatMapDeep(collection, iteratee) {
|
|
481
|
+
return baseFlatten(map(collection, iteratee), INFINITY);
|
|
482
|
+
}
|
|
641
483
|
|
|
642
484
|
function usePCAData(params) {
|
|
643
485
|
const loading = ref(false);
|
|
@@ -879,7 +721,7 @@ const style0$2 = {
|
|
|
879
721
|
const cssModules$2 = {
|
|
880
722
|
"$style": style0$2
|
|
881
723
|
};
|
|
882
|
-
const ElevatorItem = /* @__PURE__ */ _export_sfc
|
|
724
|
+
const ElevatorItem = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__cssModules", cssModules$2]]);
|
|
883
725
|
|
|
884
726
|
const _hoisted_1$4 = { key: 0 };
|
|
885
727
|
const _hoisted_2$2 = { key: 1 };
|
|
@@ -1005,7 +847,7 @@ const style0$1 = {
|
|
|
1005
847
|
const cssModules$1 = {
|
|
1006
848
|
"$style": style0$1
|
|
1007
849
|
};
|
|
1008
|
-
const CPicker = /* @__PURE__ */ _export_sfc
|
|
850
|
+
const CPicker = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__cssModules", cssModules$1]]);
|
|
1009
851
|
|
|
1010
852
|
const _hoisted_1$3 = { class: "vc-pca-wrapper" };
|
|
1011
853
|
const _hoisted_2$1 = ["onClick"];
|
|
@@ -1490,7 +1332,7 @@ const style0 = {
|
|
|
1490
1332
|
const cssModules = {
|
|
1491
1333
|
"$style": style0
|
|
1492
1334
|
};
|
|
1493
|
-
const Component = /* @__PURE__ */ _export_sfc
|
|
1335
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
1494
1336
|
|
|
1495
1337
|
const __vite_glob_0_42 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
1496
1338
|
__proto__: null,
|