@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,55 +0,0 @@
|
|
|
1
|
-
import { f as isFunction } from './Gk1J52Yw.mjs';
|
|
2
|
-
|
|
3
|
-
const REPEAT_INTERVAL = 100;
|
|
4
|
-
const REPEAT_DELAY = 600;
|
|
5
|
-
const SCOPE = "_RepeatClick";
|
|
6
|
-
const vRepeatClick = {
|
|
7
|
-
beforeMount(el, binding) {
|
|
8
|
-
const value = binding.value;
|
|
9
|
-
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction(
|
|
10
|
-
value
|
|
11
|
-
) ? {} : value;
|
|
12
|
-
let intervalId;
|
|
13
|
-
let delayId;
|
|
14
|
-
const handler = () => isFunction(value) ? value() : value.handler();
|
|
15
|
-
const clear = () => {
|
|
16
|
-
if (delayId) {
|
|
17
|
-
clearTimeout(delayId);
|
|
18
|
-
delayId = void 0;
|
|
19
|
-
}
|
|
20
|
-
if (intervalId) {
|
|
21
|
-
clearInterval(intervalId);
|
|
22
|
-
intervalId = void 0;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const start = (evt) => {
|
|
26
|
-
if (evt.button !== 0)
|
|
27
|
-
return;
|
|
28
|
-
clear();
|
|
29
|
-
handler();
|
|
30
|
-
document.addEventListener("mouseup", clear, { once: true });
|
|
31
|
-
delayId = setTimeout(() => {
|
|
32
|
-
intervalId = setInterval(() => {
|
|
33
|
-
handler();
|
|
34
|
-
}, interval);
|
|
35
|
-
}, delay);
|
|
36
|
-
};
|
|
37
|
-
el[SCOPE] = { start, clear };
|
|
38
|
-
el.addEventListener("mousedown", start);
|
|
39
|
-
},
|
|
40
|
-
unmounted(el) {
|
|
41
|
-
if (!el[SCOPE])
|
|
42
|
-
return;
|
|
43
|
-
const { start, clear } = el[SCOPE];
|
|
44
|
-
if (start) {
|
|
45
|
-
el.removeEventListener("mousedown", start);
|
|
46
|
-
}
|
|
47
|
-
if (clear) {
|
|
48
|
-
clear();
|
|
49
|
-
document.removeEventListener("mouseup", clear);
|
|
50
|
-
}
|
|
51
|
-
el[SCOPE] = null;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export { vRepeatClick as v };
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementBlock, normalizeClass, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
-
import { u as useTooltipContentProps, r as roleTypes, f as useTooltipTriggerProps, a as ElTooltip } from './CoGexPPD.mjs';
|
|
3
|
-
import { b as buildProps, d as definePropType, u as useNamespace } from './Gk1J52Yw.mjs';
|
|
4
|
-
import { E as EVENT_CODE } from './BTpNRPQW.mjs';
|
|
5
|
-
import { i as iconPropType } from '../components/icon/icon2.mjs';
|
|
6
|
-
import { d as isBoolean } from './Bc6yUGLs.mjs';
|
|
7
|
-
import { _ as _export_sfc, w as withInstall, b as withInstallDirective } from './V6KjsUQN.mjs';
|
|
8
|
-
import { a as addUnit } from './DodoD9a9.mjs';
|
|
9
|
-
|
|
10
|
-
const dropdownProps = buildProps({
|
|
11
|
-
trigger: {
|
|
12
|
-
...useTooltipTriggerProps.trigger,
|
|
13
|
-
type: definePropType([
|
|
14
|
-
String,
|
|
15
|
-
Array
|
|
16
|
-
])
|
|
17
|
-
},
|
|
18
|
-
triggerKeys: {
|
|
19
|
-
type: definePropType(Array),
|
|
20
|
-
default: () => [
|
|
21
|
-
EVENT_CODE.enter,
|
|
22
|
-
EVENT_CODE.numpadEnter,
|
|
23
|
-
EVENT_CODE.space,
|
|
24
|
-
EVENT_CODE.down
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
virtualTriggering: useTooltipTriggerProps.virtualTriggering,
|
|
28
|
-
virtualRef: useTooltipTriggerProps.virtualRef,
|
|
29
|
-
effect: {
|
|
30
|
-
...useTooltipContentProps.effect,
|
|
31
|
-
default: "light"
|
|
32
|
-
},
|
|
33
|
-
type: {
|
|
34
|
-
type: definePropType(String)
|
|
35
|
-
},
|
|
36
|
-
placement: {
|
|
37
|
-
type: definePropType(String),
|
|
38
|
-
default: "bottom"
|
|
39
|
-
},
|
|
40
|
-
popperOptions: {
|
|
41
|
-
type: definePropType(Object),
|
|
42
|
-
default: () => ({})
|
|
43
|
-
},
|
|
44
|
-
id: String,
|
|
45
|
-
size: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: ""
|
|
48
|
-
},
|
|
49
|
-
splitButton: Boolean,
|
|
50
|
-
hideOnClick: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: true
|
|
53
|
-
},
|
|
54
|
-
loop: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: true
|
|
57
|
-
},
|
|
58
|
-
showArrow: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: true
|
|
61
|
-
},
|
|
62
|
-
showTimeout: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 150
|
|
65
|
-
},
|
|
66
|
-
hideTimeout: {
|
|
67
|
-
type: Number,
|
|
68
|
-
default: 150
|
|
69
|
-
},
|
|
70
|
-
tabindex: {
|
|
71
|
-
type: definePropType([Number, String]),
|
|
72
|
-
default: 0
|
|
73
|
-
},
|
|
74
|
-
maxHeight: {
|
|
75
|
-
type: definePropType([Number, String]),
|
|
76
|
-
default: ""
|
|
77
|
-
},
|
|
78
|
-
popperClass: useTooltipContentProps.popperClass,
|
|
79
|
-
popperStyle: useTooltipContentProps.popperStyle,
|
|
80
|
-
disabled: Boolean,
|
|
81
|
-
role: {
|
|
82
|
-
type: String,
|
|
83
|
-
values: roleTypes,
|
|
84
|
-
default: "menu"
|
|
85
|
-
},
|
|
86
|
-
buttonProps: {
|
|
87
|
-
type: definePropType(Object)
|
|
88
|
-
},
|
|
89
|
-
teleported: useTooltipContentProps.teleported,
|
|
90
|
-
appendTo: useTooltipContentProps.appendTo,
|
|
91
|
-
persistent: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: true
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
buildProps({
|
|
97
|
-
command: {
|
|
98
|
-
type: [Object, String, Number],
|
|
99
|
-
default: () => ({})
|
|
100
|
-
},
|
|
101
|
-
disabled: Boolean,
|
|
102
|
-
divided: Boolean,
|
|
103
|
-
textValue: String,
|
|
104
|
-
icon: {
|
|
105
|
-
type: iconPropType
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
buildProps({
|
|
109
|
-
onKeydown: { type: definePropType(Function) }
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
const popoverProps = buildProps({
|
|
113
|
-
trigger: useTooltipTriggerProps.trigger,
|
|
114
|
-
triggerKeys: useTooltipTriggerProps.triggerKeys,
|
|
115
|
-
placement: dropdownProps.placement,
|
|
116
|
-
disabled: useTooltipTriggerProps.disabled,
|
|
117
|
-
visible: useTooltipContentProps.visible,
|
|
118
|
-
transition: useTooltipContentProps.transition,
|
|
119
|
-
popperOptions: dropdownProps.popperOptions,
|
|
120
|
-
tabindex: dropdownProps.tabindex,
|
|
121
|
-
content: useTooltipContentProps.content,
|
|
122
|
-
popperStyle: useTooltipContentProps.popperStyle,
|
|
123
|
-
popperClass: useTooltipContentProps.popperClass,
|
|
124
|
-
enterable: {
|
|
125
|
-
...useTooltipContentProps.enterable,
|
|
126
|
-
default: true
|
|
127
|
-
},
|
|
128
|
-
effect: {
|
|
129
|
-
...useTooltipContentProps.effect,
|
|
130
|
-
default: "light"
|
|
131
|
-
},
|
|
132
|
-
teleported: useTooltipContentProps.teleported,
|
|
133
|
-
appendTo: useTooltipContentProps.appendTo,
|
|
134
|
-
title: String,
|
|
135
|
-
width: {
|
|
136
|
-
type: [String, Number],
|
|
137
|
-
default: 150
|
|
138
|
-
},
|
|
139
|
-
offset: {
|
|
140
|
-
type: Number,
|
|
141
|
-
default: void 0
|
|
142
|
-
},
|
|
143
|
-
showAfter: {
|
|
144
|
-
type: Number,
|
|
145
|
-
default: 0
|
|
146
|
-
},
|
|
147
|
-
hideAfter: {
|
|
148
|
-
type: Number,
|
|
149
|
-
default: 200
|
|
150
|
-
},
|
|
151
|
-
autoClose: {
|
|
152
|
-
type: Number,
|
|
153
|
-
default: 0
|
|
154
|
-
},
|
|
155
|
-
showArrow: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
default: true
|
|
158
|
-
},
|
|
159
|
-
persistent: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
default: true
|
|
162
|
-
},
|
|
163
|
-
"onUpdate:visible": {
|
|
164
|
-
type: Function
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
const popoverEmits = {
|
|
168
|
-
"update:visible": (value) => isBoolean(value),
|
|
169
|
-
"before-enter": () => true,
|
|
170
|
-
"before-leave": () => true,
|
|
171
|
-
"after-enter": () => true,
|
|
172
|
-
"after-leave": () => true
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
const updateEventKeyRaw = `onUpdate:visible`;
|
|
176
|
-
const _sfc_main = defineComponent({
|
|
177
|
-
...{
|
|
178
|
-
name: "ElPopover"
|
|
179
|
-
},
|
|
180
|
-
__name: "popover",
|
|
181
|
-
props: popoverProps,
|
|
182
|
-
emits: popoverEmits,
|
|
183
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
184
|
-
const props = __props;
|
|
185
|
-
const emit = __emit;
|
|
186
|
-
const onUpdateVisible = computed(() => {
|
|
187
|
-
return props[updateEventKeyRaw];
|
|
188
|
-
});
|
|
189
|
-
const ns = useNamespace("popover");
|
|
190
|
-
const tooltipRef = ref();
|
|
191
|
-
const popperRef = computed(() => {
|
|
192
|
-
var _a;
|
|
193
|
-
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
194
|
-
});
|
|
195
|
-
const style = computed(() => {
|
|
196
|
-
return [
|
|
197
|
-
{
|
|
198
|
-
width: addUnit(props.width)
|
|
199
|
-
},
|
|
200
|
-
props.popperStyle
|
|
201
|
-
];
|
|
202
|
-
});
|
|
203
|
-
const kls = computed(() => {
|
|
204
|
-
return [ns.b(), props.popperClass, { [ns.m("plain")]: !!props.content }];
|
|
205
|
-
});
|
|
206
|
-
const gpuAcceleration = computed(() => {
|
|
207
|
-
return props.transition === `${ns.namespace.value}-fade-in-linear`;
|
|
208
|
-
});
|
|
209
|
-
const hide = () => {
|
|
210
|
-
var _a;
|
|
211
|
-
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
212
|
-
};
|
|
213
|
-
const beforeEnter = () => {
|
|
214
|
-
emit("before-enter");
|
|
215
|
-
};
|
|
216
|
-
const beforeLeave = () => {
|
|
217
|
-
emit("before-leave");
|
|
218
|
-
};
|
|
219
|
-
const afterEnter = () => {
|
|
220
|
-
emit("after-enter");
|
|
221
|
-
};
|
|
222
|
-
const afterLeave = () => {
|
|
223
|
-
emit("update:visible", false);
|
|
224
|
-
emit("after-leave");
|
|
225
|
-
};
|
|
226
|
-
__expose({
|
|
227
|
-
popperRef,
|
|
228
|
-
hide
|
|
229
|
-
});
|
|
230
|
-
return (_ctx, _cache) => {
|
|
231
|
-
return openBlock(), createBlock(unref(ElTooltip), mergeProps({
|
|
232
|
-
ref_key: "tooltipRef",
|
|
233
|
-
ref: tooltipRef
|
|
234
|
-
}, _ctx.$attrs, {
|
|
235
|
-
trigger: _ctx.trigger,
|
|
236
|
-
"trigger-keys": _ctx.triggerKeys,
|
|
237
|
-
placement: _ctx.placement,
|
|
238
|
-
disabled: _ctx.disabled,
|
|
239
|
-
visible: _ctx.visible,
|
|
240
|
-
transition: _ctx.transition,
|
|
241
|
-
"popper-options": _ctx.popperOptions,
|
|
242
|
-
tabindex: _ctx.tabindex,
|
|
243
|
-
content: _ctx.content,
|
|
244
|
-
offset: _ctx.offset,
|
|
245
|
-
"show-after": _ctx.showAfter,
|
|
246
|
-
"hide-after": _ctx.hideAfter,
|
|
247
|
-
"auto-close": _ctx.autoClose,
|
|
248
|
-
"show-arrow": _ctx.showArrow,
|
|
249
|
-
"aria-label": _ctx.title,
|
|
250
|
-
effect: _ctx.effect,
|
|
251
|
-
enterable: _ctx.enterable,
|
|
252
|
-
"popper-class": kls.value,
|
|
253
|
-
"popper-style": style.value,
|
|
254
|
-
teleported: _ctx.teleported,
|
|
255
|
-
"append-to": _ctx.appendTo,
|
|
256
|
-
persistent: _ctx.persistent,
|
|
257
|
-
"gpu-acceleration": gpuAcceleration.value,
|
|
258
|
-
"onUpdate:visible": onUpdateVisible.value,
|
|
259
|
-
onBeforeShow: beforeEnter,
|
|
260
|
-
onBeforeHide: beforeLeave,
|
|
261
|
-
onShow: afterEnter,
|
|
262
|
-
onHide: afterLeave
|
|
263
|
-
}), {
|
|
264
|
-
content: withCtx(() => [
|
|
265
|
-
_ctx.title ? (openBlock(), createElementBlock(
|
|
266
|
-
"div",
|
|
267
|
-
{
|
|
268
|
-
key: 0,
|
|
269
|
-
class: normalizeClass(unref(ns).e("title")),
|
|
270
|
-
role: "title"
|
|
271
|
-
},
|
|
272
|
-
toDisplayString(_ctx.title),
|
|
273
|
-
3
|
|
274
|
-
)) : createCommentVNode("v-if", true),
|
|
275
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
276
|
-
createTextVNode(
|
|
277
|
-
toDisplayString(_ctx.content),
|
|
278
|
-
1
|
|
279
|
-
)
|
|
280
|
-
])
|
|
281
|
-
]),
|
|
282
|
-
default: withCtx(() => [
|
|
283
|
-
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
284
|
-
]),
|
|
285
|
-
_: 3
|
|
286
|
-
}, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]);
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
291
|
-
|
|
292
|
-
const attachEvents = (el, binding) => {
|
|
293
|
-
const popperComponent = binding.arg || binding.value;
|
|
294
|
-
const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
|
|
295
|
-
if (popover) {
|
|
296
|
-
popover.triggerRef = el;
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
var PopoverDirective = {
|
|
300
|
-
mounted(el, binding) {
|
|
301
|
-
attachEvents(el, binding);
|
|
302
|
-
},
|
|
303
|
-
updated(el, binding) {
|
|
304
|
-
attachEvents(el, binding);
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
const VPopover = "popover";
|
|
308
|
-
|
|
309
|
-
const ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover);
|
|
310
|
-
const ElPopover = withInstall(Popover, {
|
|
311
|
-
directive: ElPopoverDirective
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
export { ElPopover as E };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, onUpdated, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, useAttrs } from 'vue';
|
|
2
|
-
import { b as buildProps, u as useNamespace } from './Gk1J52Yw.mjs';
|
|
3
|
-
import { c as componentSizes } from './vPhxogl3.mjs';
|
|
4
|
-
import { _ as _export_sfc, w as withInstall } from './V6KjsUQN.mjs';
|
|
5
|
-
import { c as useFormSize } from './CBMjhoFP.mjs';
|
|
6
|
-
import { c as isUndefined } from './Bc6yUGLs.mjs';
|
|
7
|
-
|
|
8
|
-
const textProps = buildProps({
|
|
9
|
-
type: {
|
|
10
|
-
type: String,
|
|
11
|
-
values: ["primary", "success", "info", "warning", "danger", ""],
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
type: String,
|
|
16
|
-
values: componentSizes,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
truncated: Boolean,
|
|
20
|
-
lineClamp: {
|
|
21
|
-
type: [String, Number]
|
|
22
|
-
},
|
|
23
|
-
tag: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "span"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const _sfc_main = defineComponent({
|
|
30
|
-
...{
|
|
31
|
-
name: "ElText"
|
|
32
|
-
},
|
|
33
|
-
__name: "text",
|
|
34
|
-
props: textProps,
|
|
35
|
-
setup(__props) {
|
|
36
|
-
const props = __props;
|
|
37
|
-
const textRef = ref();
|
|
38
|
-
const textSize = useFormSize();
|
|
39
|
-
const ns = useNamespace("text");
|
|
40
|
-
const textKls = computed(() => [
|
|
41
|
-
ns.b(),
|
|
42
|
-
ns.m(props.type),
|
|
43
|
-
ns.m(textSize.value),
|
|
44
|
-
ns.is("truncated", props.truncated),
|
|
45
|
-
ns.is("line-clamp", !isUndefined(props.lineClamp))
|
|
46
|
-
]);
|
|
47
|
-
const bindTitle = () => {
|
|
48
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
49
|
-
const inheritTitle = useAttrs().title;
|
|
50
|
-
if (inheritTitle)
|
|
51
|
-
return;
|
|
52
|
-
let shouldAddTitle = false;
|
|
53
|
-
const text = ((_a = textRef.value) == null ? void 0 : _a.textContent) || "";
|
|
54
|
-
if (props.truncated) {
|
|
55
|
-
const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
|
|
56
|
-
const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
|
|
57
|
-
if (width && scrollWidth && scrollWidth > width) {
|
|
58
|
-
shouldAddTitle = true;
|
|
59
|
-
}
|
|
60
|
-
} else if (!isUndefined(props.lineClamp)) {
|
|
61
|
-
const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
|
|
62
|
-
const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
|
|
63
|
-
if (height && scrollHeight && scrollHeight > height) {
|
|
64
|
-
shouldAddTitle = true;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
if (shouldAddTitle) {
|
|
68
|
-
(_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
|
|
69
|
-
} else {
|
|
70
|
-
(_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
onMounted(bindTitle);
|
|
74
|
-
onUpdated(bindTitle);
|
|
75
|
-
return (_ctx, _cache) => {
|
|
76
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
77
|
-
ref_key: "textRef",
|
|
78
|
-
ref: textRef,
|
|
79
|
-
class: normalizeClass(textKls.value),
|
|
80
|
-
style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
|
|
81
|
-
}, {
|
|
82
|
-
default: withCtx(() => [
|
|
83
|
-
renderSlot(_ctx.$slots, "default")
|
|
84
|
-
]),
|
|
85
|
-
_: 3
|
|
86
|
-
}, 8, ["class", "style"]);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
|
|
91
|
-
|
|
92
|
-
const ElText = withInstall(Text);
|
|
93
|
-
|
|
94
|
-
export { ElText as E };
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, h, renderSlot, ref, watchEffect, createVNode, createTextVNode, isVNode, Comment } from 'vue';
|
|
2
|
-
import { b as buildProps, u as useNamespace, c as isArray, i as isString, d as definePropType } from './Gk1J52Yw.mjs';
|
|
3
|
-
import { b as isNumber } from './Bc6yUGLs.mjs';
|
|
4
|
-
import { P as PatchFlags, i as isFragment, a as isValidElementNode } from './DRwwUUhy.mjs';
|
|
5
|
-
import { c as componentSizes } from './vPhxogl3.mjs';
|
|
6
|
-
import { w as withInstall } from './V6KjsUQN.mjs';
|
|
7
|
-
|
|
8
|
-
const spaceItemProps = buildProps({
|
|
9
|
-
prefixCls: {
|
|
10
|
-
type: String
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const SpaceItem = defineComponent({
|
|
14
|
-
name: "ElSpaceItem",
|
|
15
|
-
props: spaceItemProps,
|
|
16
|
-
setup(props, { slots }) {
|
|
17
|
-
const ns = useNamespace("space");
|
|
18
|
-
const classes = computed(() => `${props.prefixCls || ns.b()}__item`);
|
|
19
|
-
return () => h("div", { class: classes.value }, renderSlot(slots, "default"));
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const SIZE_MAP = {
|
|
24
|
-
small: 8,
|
|
25
|
-
default: 12,
|
|
26
|
-
large: 16
|
|
27
|
-
};
|
|
28
|
-
function useSpace(props) {
|
|
29
|
-
const ns = useNamespace("space");
|
|
30
|
-
const classes = computed(() => [ns.b(), ns.m(props.direction), props.class]);
|
|
31
|
-
const horizontalSize = ref(0);
|
|
32
|
-
const verticalSize = ref(0);
|
|
33
|
-
const containerStyle = computed(() => {
|
|
34
|
-
const wrapKls = props.wrap || props.fill ? { flexWrap: "wrap" } : {};
|
|
35
|
-
const alignment = {
|
|
36
|
-
alignItems: props.alignment
|
|
37
|
-
};
|
|
38
|
-
const gap = {
|
|
39
|
-
rowGap: `${verticalSize.value}px`,
|
|
40
|
-
columnGap: `${horizontalSize.value}px`
|
|
41
|
-
};
|
|
42
|
-
return [wrapKls, alignment, gap, props.style];
|
|
43
|
-
});
|
|
44
|
-
const itemStyle = computed(() => {
|
|
45
|
-
return props.fill ? { flexGrow: 1, minWidth: `${props.fillRatio}%` } : {};
|
|
46
|
-
});
|
|
47
|
-
watchEffect(() => {
|
|
48
|
-
const { size = "small", wrap, direction: dir, fill } = props;
|
|
49
|
-
if (isArray(size)) {
|
|
50
|
-
const [h = 0, v = 0] = size;
|
|
51
|
-
horizontalSize.value = h;
|
|
52
|
-
verticalSize.value = v;
|
|
53
|
-
} else {
|
|
54
|
-
let val;
|
|
55
|
-
if (isNumber(size)) {
|
|
56
|
-
val = size;
|
|
57
|
-
} else {
|
|
58
|
-
val = SIZE_MAP[size || "small"] || SIZE_MAP.small;
|
|
59
|
-
}
|
|
60
|
-
if ((wrap || fill) && dir === "horizontal") {
|
|
61
|
-
horizontalSize.value = verticalSize.value = val;
|
|
62
|
-
} else {
|
|
63
|
-
if (dir === "horizontal") {
|
|
64
|
-
horizontalSize.value = val;
|
|
65
|
-
verticalSize.value = 0;
|
|
66
|
-
} else {
|
|
67
|
-
verticalSize.value = val;
|
|
68
|
-
horizontalSize.value = 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
return {
|
|
74
|
-
classes,
|
|
75
|
-
containerStyle,
|
|
76
|
-
itemStyle
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const spaceProps = buildProps({
|
|
81
|
-
direction: {
|
|
82
|
-
type: String,
|
|
83
|
-
values: ["horizontal", "vertical"],
|
|
84
|
-
default: "horizontal"
|
|
85
|
-
},
|
|
86
|
-
class: {
|
|
87
|
-
type: definePropType([
|
|
88
|
-
String,
|
|
89
|
-
Object,
|
|
90
|
-
Array
|
|
91
|
-
]),
|
|
92
|
-
default: ""
|
|
93
|
-
},
|
|
94
|
-
style: {
|
|
95
|
-
type: definePropType([String, Array, Object]),
|
|
96
|
-
default: ""
|
|
97
|
-
},
|
|
98
|
-
alignment: {
|
|
99
|
-
type: definePropType(String),
|
|
100
|
-
default: "center"
|
|
101
|
-
},
|
|
102
|
-
prefixCls: {
|
|
103
|
-
type: String
|
|
104
|
-
},
|
|
105
|
-
spacer: {
|
|
106
|
-
type: definePropType([Object, String, Number, Array]),
|
|
107
|
-
default: null,
|
|
108
|
-
validator: (val) => isVNode(val) || isNumber(val) || isString(val)
|
|
109
|
-
},
|
|
110
|
-
wrap: Boolean,
|
|
111
|
-
fill: Boolean,
|
|
112
|
-
fillRatio: {
|
|
113
|
-
type: Number,
|
|
114
|
-
default: 100
|
|
115
|
-
},
|
|
116
|
-
size: {
|
|
117
|
-
type: [String, Array, Number],
|
|
118
|
-
values: componentSizes,
|
|
119
|
-
validator: (val) => {
|
|
120
|
-
return isNumber(val) || isArray(val) && val.length === 2 && val.every(isNumber);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
const Space = defineComponent({
|
|
125
|
-
name: "ElSpace",
|
|
126
|
-
props: spaceProps,
|
|
127
|
-
setup(props, { slots }) {
|
|
128
|
-
const { classes, containerStyle, itemStyle } = useSpace(props);
|
|
129
|
-
function extractChildren(children, parentKey = "", extractedChildren = []) {
|
|
130
|
-
const { prefixCls } = props;
|
|
131
|
-
children.forEach((child, loopKey) => {
|
|
132
|
-
if (isFragment(child)) {
|
|
133
|
-
if (isArray(child.children)) {
|
|
134
|
-
child.children.forEach((nested, key) => {
|
|
135
|
-
if (isFragment(nested) && isArray(nested.children)) {
|
|
136
|
-
extractChildren(
|
|
137
|
-
nested.children,
|
|
138
|
-
`${parentKey + key}-`,
|
|
139
|
-
extractedChildren
|
|
140
|
-
);
|
|
141
|
-
} else {
|
|
142
|
-
if (isVNode(nested) && (nested == null ? void 0 : nested.type) === Comment) {
|
|
143
|
-
extractedChildren.push(nested);
|
|
144
|
-
} else {
|
|
145
|
-
extractedChildren.push(
|
|
146
|
-
createVNode(
|
|
147
|
-
SpaceItem,
|
|
148
|
-
{
|
|
149
|
-
style: itemStyle.value,
|
|
150
|
-
prefixCls,
|
|
151
|
-
key: `nested-${parentKey + key}`
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
default: () => [nested]
|
|
155
|
-
},
|
|
156
|
-
PatchFlags.PROPS | PatchFlags.STYLE,
|
|
157
|
-
["style", "prefixCls"]
|
|
158
|
-
)
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
} else if (isValidElementNode(child)) {
|
|
165
|
-
extractedChildren.push(
|
|
166
|
-
createVNode(
|
|
167
|
-
SpaceItem,
|
|
168
|
-
{
|
|
169
|
-
style: itemStyle.value,
|
|
170
|
-
prefixCls,
|
|
171
|
-
key: `LoopKey${parentKey + loopKey}`
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
default: () => [child]
|
|
175
|
-
},
|
|
176
|
-
PatchFlags.PROPS | PatchFlags.STYLE,
|
|
177
|
-
["style", "prefixCls"]
|
|
178
|
-
)
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
return extractedChildren;
|
|
183
|
-
}
|
|
184
|
-
return () => {
|
|
185
|
-
var _a;
|
|
186
|
-
const { spacer, direction } = props;
|
|
187
|
-
const children = renderSlot(slots, "default", { key: 0 }, () => []);
|
|
188
|
-
if (((_a = children.children) != null ? _a : []).length === 0)
|
|
189
|
-
return null;
|
|
190
|
-
if (isArray(children.children)) {
|
|
191
|
-
let extractedChildren = extractChildren(children.children);
|
|
192
|
-
if (spacer) {
|
|
193
|
-
const len = extractedChildren.length - 1;
|
|
194
|
-
extractedChildren = extractedChildren.reduce(
|
|
195
|
-
(acc, child, idx) => {
|
|
196
|
-
const children2 = [...acc, child];
|
|
197
|
-
if (idx !== len) {
|
|
198
|
-
children2.push(
|
|
199
|
-
createVNode(
|
|
200
|
-
"span",
|
|
201
|
-
{
|
|
202
|
-
style: [
|
|
203
|
-
itemStyle.value,
|
|
204
|
-
direction === "vertical" ? "width: 100%" : null
|
|
205
|
-
],
|
|
206
|
-
key: idx
|
|
207
|
-
},
|
|
208
|
-
[
|
|
209
|
-
isVNode(spacer) ? spacer : createTextVNode(spacer, PatchFlags.TEXT)
|
|
210
|
-
],
|
|
211
|
-
PatchFlags.STYLE
|
|
212
|
-
)
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
return children2;
|
|
216
|
-
},
|
|
217
|
-
[]
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
return createVNode(
|
|
221
|
-
"div",
|
|
222
|
-
{
|
|
223
|
-
class: classes.value,
|
|
224
|
-
style: containerStyle.value
|
|
225
|
-
},
|
|
226
|
-
extractedChildren,
|
|
227
|
-
PatchFlags.STYLE | PatchFlags.CLASS
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
return children.children;
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
|
|
235
|
-
const ElSpace = withInstall(Space);
|
|
236
|
-
|
|
237
|
-
export { ElSpace as E };
|