@wfrog/vc-ui 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/es/chunk/{BMzd-IS6.mjs → 09Ec85_u.mjs} +13 -13
- package/dist/es/chunk/{su2Zrql0.mjs → 4eyJqDa9.mjs} +1 -1
- package/dist/es/chunk/{Dqz1zvKN.mjs → 73YgKz3H.mjs} +1 -1
- package/dist/es/chunk/{Dh4jaUSg.mjs → B5UQmWXg.mjs} +5 -5
- package/dist/es/chunk/{CVlj9F0I.mjs → BHsNc7jl.mjs} +4 -3
- package/dist/es/chunk/{CEm0brzD.mjs → BI0vrXwX.mjs} +2 -1
- package/dist/es/chunk/{BJS5Pdfp.mjs → BTpNRPQW.mjs} +1 -1
- package/dist/es/chunk/{De_EXLIy.mjs → BUEEWLrd.mjs} +1 -1
- package/dist/es/chunk/BaJ7k5Lg.mjs +209 -0
- package/dist/es/chunk/{C5hWsUfD.mjs → BcTuAX8r.mjs} +2 -2
- package/dist/es/chunk/{DyDMGLoF.mjs → Bl2KlMdP.mjs} +3 -2
- package/dist/es/chunk/{ViP2SEY4.mjs → Bp9jXKX0.mjs} +2 -3
- package/dist/es/chunk/{C2LgraHx.mjs → BpqBBo4z.mjs} +2 -3
- package/dist/es/chunk/{CS4VKsqy.mjs → BsGCX4td.mjs} +1 -1
- package/dist/es/chunk/{-EkpfdcW.mjs → BsLJxiSC.mjs} +46 -8
- package/dist/es/chunk/{zfg5SOj1.mjs → BtTIs3tG.mjs} +3 -3
- package/dist/es/chunk/{B_tU9Nax.mjs → BzedaLtg.mjs} +1 -1
- package/dist/es/chunk/{Dvi7RsXg.mjs → C7wQNvSS.mjs} +10 -9
- package/dist/es/chunk/{8rLUmOVR.mjs → CBSopeeE.mjs} +3 -2
- package/dist/es/chunk/{Coex0GxM.mjs → CLCfXfvv.mjs} +10 -10
- package/dist/es/chunk/{DqUIKX7f.mjs → CLMc8GzD.mjs} +8 -7
- package/dist/es/chunk/{D3uV7vm-.mjs → CLbj8G-F.mjs} +3 -3
- package/dist/es/chunk/{C7iSSBUr.mjs → CPERtDRX.mjs} +5 -5
- package/dist/es/chunk/{VAdRxe-1.mjs → Cbhe4I9Z.mjs} +1 -1
- package/dist/es/chunk/{D5259bwd.mjs → CizMbf5K.mjs} +2 -1
- package/dist/es/chunk/CsLIbnzG.mjs +64 -0
- package/dist/es/chunk/{Ce9ApjrT.mjs → Cu6erWl4.mjs} +4 -4
- package/dist/es/chunk/{VCrtRnxt.mjs → D0LB3gF-.mjs} +7 -7
- package/dist/es/chunk/{BdDihk0t.mjs → D9iEroQw.mjs} +387 -564
- package/dist/es/chunk/{D3DXeVfC.mjs → DFOLES4O.mjs} +60 -16
- package/dist/es/chunk/{E_WRn0OP.mjs → DRoyW749.mjs} +58 -264
- package/dist/es/chunk/{D389hx_T.mjs → DTLPXrjb.mjs} +1 -1
- package/dist/es/chunk/{DZACQ9LT.mjs → DXPWe_a5.mjs} +2 -2
- package/dist/es/chunk/{BWcCXRRK.mjs → DZD-YnCt.mjs} +4 -4
- package/dist/es/chunk/{CZ4ggqDE.mjs → DihosKp1.mjs} +6 -6
- package/dist/es/chunk/{aibQ9WSZ.mjs → Dk6Bx0KT.mjs} +1 -1
- package/dist/es/chunk/{CyxEcbcy.mjs → DouIsSPi.mjs} +1 -1
- package/dist/es/chunk/{HSv8BL8o.mjs → DrgvuOYH.mjs} +2 -1
- package/dist/es/chunk/{DhhdKtyu.mjs → DwKWIlzw.mjs} +9 -8
- package/dist/es/chunk/{BX-Ogf7p.mjs → FHvLvzEB.mjs} +23 -23
- package/dist/es/chunk/{CMABHk8B.mjs → HAog8AWU.mjs} +22 -22
- package/dist/es/chunk/{Spa-JKB4.mjs → NQBKROII.mjs} +127 -2
- package/dist/es/chunk/{BAtns-Mc.mjs → OEa4tYPF.mjs} +1 -1
- package/dist/es/chunk/{JCIyOUEY.mjs → XwSiBVsA.mjs} +3 -2
- package/dist/es/chunk/{CaTfZePA.mjs → axpwSky6.mjs} +5 -5
- package/dist/es/chunk/{DMHNh_tw.mjs → cPBw23yt.mjs} +3 -3
- package/dist/es/chunk/{nWBcrYxV.mjs → f0-vIQGp.mjs} +3 -5
- package/dist/es/components/awesome-icon/awesome-icon.mjs +5 -6
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.mjs +8 -8
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/choice-boolean/choice-boolean.mjs +1 -1
- package/dist/es/components/config-provider/config-provider.d.ts +1 -0
- package/dist/es/components/config-provider/config-provider.mjs +13 -5
- package/dist/es/components/config-provider/config-provider2.mjs +1 -1
- package/dist/es/components/cropper/cropper.mjs +151 -15
- package/dist/es/components/currency/currency.mjs +6 -6
- package/dist/es/components/daterange-picker/daterange-picker.mjs +25 -23
- package/dist/es/components/dialog/dialog.mjs +11 -12
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +20 -23
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +9 -13
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +12 -16
- package/dist/es/components/drag-verify/components/image.vue.d.ts +54 -0
- package/dist/es/components/drag-verify/components/text.vue.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +475 -0
- package/dist/es/components/drag-verify/drag-verify.vue.d.ts +123 -0
- package/dist/es/components/drag-verify/helper.d.ts +2 -0
- package/dist/es/components/drag-verify/index.css +117 -0
- package/dist/es/components/drag-verify/index.d.ts +4 -0
- package/dist/es/components/drag-verify/index.mjs +6 -0
- package/dist/es/components/drawer/drawer.mjs +12 -13
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/flag/flag.mjs +2 -1
- package/dist/es/components/icon/icon.mjs +2 -2
- package/dist/es/components/icon/icon2.mjs +1 -1
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/input/input.mjs +4 -4
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -23
- package/dist/es/components/qr-code/qr-code.mjs +2 -1
- package/dist/es/components/screenfull/screenfull.mjs +6 -5
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/single-player.mjs +16 -16
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +3 -3
- package/dist/es/components/tags/tags.mjs +9 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/thousand-input/thousand-input.mjs +5 -4
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +9 -11
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -12
- package/dist/es/components/upload-file/upload-file.mjs +6 -9
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +26 -24
- package/dist/es/use/useSmallScreen/index.mjs +1 -1
- package/dist/global.d.ts +1 -0
- package/dist/index.css +118 -1
- package/package.json +3 -6
- package/dist/es/chunk/BAGoDD49.mjs +0 -36
- package/dist/es/chunk/CD98REcR.mjs +0 -666
- package/dist/es/chunk/CEClY-_T.mjs +0 -445
- package/dist/es/chunk/Fo0dZYnz.mjs +0 -128
- package/dist/es/chunk/O-uhUKF4.mjs +0 -43
- package/dist/es/chunk/qY9OvNHY.mjs +0 -283
- package/dist/es/components/cdn-tag.vue.d.ts +0 -5
- package/dist/es/components/document.vue.d.ts +0 -14
- package/dist/es/components/example-wrapper.vue.d.ts +0 -19
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { i as isArray, a as isEmpty, b as isDate, c as buildProps, d as definePropType, u as useNamespace, e as debugWarn, N as NOOP, f as isNumber, g as isUndefined, h as isString, j as isFunction } from '../../chunk/
|
|
2
|
-
import { E as ElInput } from '../../chunk/
|
|
3
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
5
|
-
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/
|
|
1
|
+
import { i as isArray, a as isEmpty, b as isDate, c as buildProps, d as definePropType, u as useNamespace, e as debugWarn, N as NOOP, f as isNumber, g as isUndefined, h as isString, j as isFunction } from '../../chunk/DRoyW749.mjs';
|
|
2
|
+
import { E as ElInput } from '../../chunk/C7wQNvSS.mjs';
|
|
3
|
+
import { E as ElScrollbar } from '../../chunk/axpwSky6.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
5
|
+
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/CLMc8GzD.mjs';
|
|
6
6
|
import { ref, computed, defineComponent, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createElementVNode, mergeProps, useAttrs as useAttrs$1, inject, watch, nextTick, onBeforeUnmount, provide, createBlock, withCtx, withModifiers, createCommentVNode, resolveDynamicComponent, toDisplayString, onMounted, Fragment, renderList, createTextVNode, withDirectives, createVNode, Transition, withKeys, useSlots, toRef, vShow, getCurrentInstance, toRefs, isVNode, isRef } from 'vue';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { E as ElIcon } from '../../chunk/DMHNh_tw.mjs';
|
|
7
|
+
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
8
|
+
import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
|
|
10
9
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
11
|
-
import { u as useLocale } from '../../chunk/
|
|
12
|
-
import { u as useAriaProps, f as flatten } from '../../chunk/
|
|
13
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
14
|
-
import { g as getStyle, h as hasClass } from '../../chunk/
|
|
15
|
-
import { v as vRepeatClick } from '../../chunk/
|
|
10
|
+
import { u as useLocale } from '../../chunk/Dk6Bx0KT.mjs';
|
|
11
|
+
import { u as useAriaProps, f as flatten } from '../../chunk/BpqBBo4z.mjs';
|
|
12
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
|
|
13
|
+
import { g as getStyle, h as hasClass } from '../../chunk/CizMbf5K.mjs';
|
|
14
|
+
import { v as vRepeatClick } from '../../chunk/4eyJqDa9.mjs';
|
|
16
15
|
import { U as UPDATE_MODEL_EVENT, C as CHANGE_EVENT } from '../../chunk/Ct6q2FXg.mjs';
|
|
17
|
-
import { d as debounce } from '../../chunk/
|
|
18
|
-
import { g as getEventCode, E as EVENT_CODE } from '../../chunk/
|
|
19
|
-
import { C as ClickOutside } from '../../chunk/
|
|
20
|
-
import { u as useFormItem, a as useFormItemInputId, b as useFormDisabled, c as useFormSize } from '../../chunk/
|
|
21
|
-
import { i as isEqual } from '../../chunk
|
|
22
|
-
import { u as useSizeProp } from '../../chunk/
|
|
23
|
-
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/
|
|
24
|
-
import {
|
|
25
|
-
import { u as
|
|
26
|
-
|
|
16
|
+
import { d as debounce } from '../../chunk/Bp9jXKX0.mjs';
|
|
17
|
+
import { g as getEventCode, E as EVENT_CODE } from '../../chunk/BTpNRPQW.mjs';
|
|
18
|
+
import { C as ClickOutside } from '../../chunk/DrgvuOYH.mjs';
|
|
19
|
+
import { u as useFormItem, a as useFormItemInputId, b as useFormDisabled, c as useFormSize } from '../../chunk/DXPWe_a5.mjs';
|
|
20
|
+
import { i as isEqual } from '../../chunk/BsLJxiSC.mjs';
|
|
21
|
+
import { u as useSizeProp } from '../../chunk/BsGCX4td.mjs';
|
|
22
|
+
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/BcTuAX8r.mjs';
|
|
23
|
+
import { u as useAttrs } from '../../chunk/BUEEWLrd.mjs';
|
|
24
|
+
import { u as useFocusController } from '../../chunk/XwSiBVsA.mjs';
|
|
25
|
+
|
|
26
|
+
function getDefaultExportFromCjs (x) {
|
|
27
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
28
|
+
}
|
|
27
29
|
|
|
28
30
|
var dayjs_min$1 = {exports: {}};
|
|
29
31
|
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { u as useNamespace } from '../../chunk/
|
|
3
|
-
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/
|
|
4
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
5
|
-
import { E as ElButton } from '../../chunk/
|
|
2
|
+
import { u as useNamespace } from '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/DwKWIlzw.mjs';
|
|
4
|
+
import { E as ElScrollbar } from '../../chunk/axpwSky6.mjs';
|
|
5
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
6
6
|
import { ref, onMounted, watchEffect, onBeforeUnmount, defineComponent, inject, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createCommentVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, useSlots, provide, Transition, mergeProps, withDirectives, createSlots, vShow, useCssVars, useCssModule, watch, isRef, createTextVNode } from 'vue';
|
|
7
7
|
import { CopyDocument, FullScreen, Close } from '@element-plus/icons-vue';
|
|
8
8
|
import { C as Component$1 } from '../button/button.mjs';
|
|
9
|
-
import {
|
|
10
|
-
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/
|
|
11
|
-
import { E as ElIcon } from '../../chunk/
|
|
12
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
13
|
-
import { a as addUnit } from '../../chunk/
|
|
9
|
+
import { useVModel, useToggle } from '@vueuse/core';
|
|
10
|
+
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/CLMc8GzD.mjs';
|
|
11
|
+
import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
|
|
12
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
|
|
13
|
+
import { a as addUnit } from '../../chunk/CizMbf5K.mjs';
|
|
14
14
|
import { C as CloseComponents } from '../icon/icon2.mjs';
|
|
15
|
-
import { u as useLocale } from '../../chunk/
|
|
16
|
-
import { u as useDeprecated } from '../../chunk/
|
|
17
|
-
import { u as useToggle } from '../../chunk/qY9OvNHY.mjs';
|
|
15
|
+
import { u as useLocale } from '../../chunk/Dk6Bx0KT.mjs';
|
|
16
|
+
import { u as useDeprecated } from '../../chunk/Cbhe4I9Z.mjs';
|
|
18
17
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
19
18
|
|
|
20
19
|
const useDraggable = (targetRef, dragRef, draggable, overflow) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '../../chunk/
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
5
|
-
import '../../chunk/
|
|
6
|
-
import { E as ElSelect, a as ElOption } from '../../chunk/
|
|
7
|
-
import '../../chunk/
|
|
8
|
-
import '../../chunk/
|
|
9
|
-
import { E as ElAlert } from '../../chunk/
|
|
10
|
-
import { E as ElImage } from '../../chunk/
|
|
2
|
+
import '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import { v as vLoading } from '../../chunk/BHsNc7jl.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
5
|
+
import '../../chunk/DihosKp1.mjs';
|
|
6
|
+
import { E as ElSelect, a as ElOption } from '../../chunk/HAog8AWU.mjs';
|
|
7
|
+
import '../../chunk/axpwSky6.mjs';
|
|
8
|
+
import '../../chunk/CLMc8GzD.mjs';
|
|
9
|
+
import { E as ElAlert } from '../../chunk/BtTIs3tG.mjs';
|
|
10
|
+
import { E as ElImage } from '../../chunk/09Ec85_u.mjs';
|
|
11
11
|
import { ref, defineComponent, useTemplateRef, reactive, computed, watch, createBlock, openBlock, unref, isRef, withCtx, withDirectives, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createVNode, vShow, createElementVNode, Transition, Fragment, renderList, createTextVNode } from 'vue';
|
|
12
12
|
import { Camera, Upload } from '@element-plus/icons-vue';
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
13
|
+
import { C as Component$3, i as index } from '../cropper/cropper.mjs';
|
|
14
|
+
import '../../chunk/D9iEroQw.mjs';
|
|
15
15
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
16
16
|
import { C as Component$2 } from '../upload-file/upload-file.mjs';
|
|
17
|
-
import {
|
|
18
|
-
import { E as ElIcon } from '../../chunk/
|
|
17
|
+
import { useUserMedia } from '@vueuse/core';
|
|
18
|
+
import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
|
|
19
19
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
20
20
|
|
|
21
21
|
const TYPE_UPLOAD = "upload";
|
|
@@ -157,14 +157,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
157
|
start();
|
|
158
158
|
}
|
|
159
159
|
function handleShoot() {
|
|
160
|
-
if (!
|
|
160
|
+
if (!canvasRef.value || !videoRef.value) {
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
toggleWindow(WINDOW_CANVAS);
|
|
164
164
|
const context = canvasRef.value.getContext("2d");
|
|
165
165
|
context.drawImage(videoRef.value, 0, 0, props.width, props.height);
|
|
166
|
-
myFile =
|
|
167
|
-
const localUrl =
|
|
166
|
+
myFile = index.dataURLToFile(canvasRef.value.toDataURL(), "camera.png");
|
|
167
|
+
const localUrl = window.URL.createObjectURL(myFile);
|
|
168
168
|
blobImage.value = localUrl;
|
|
169
169
|
showAlert("success", TIPS_SHOOT_SUCCESS);
|
|
170
170
|
}
|
|
@@ -179,11 +179,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
179
179
|
cropperVisible.value = true;
|
|
180
180
|
}
|
|
181
181
|
function handleFinished(_canvas, blob) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
myFile = file.blobToFile(blob, "cropper.png");
|
|
186
|
-
const localUrl = defaultWindow.URL.createObjectURL(myFile);
|
|
182
|
+
myFile = index.blobToFile(blob, "cropper.png");
|
|
183
|
+
const localUrl = window.URL.createObjectURL(myFile);
|
|
187
184
|
blobImage.value = localUrl;
|
|
188
185
|
toggleWindow(WINDOW_IMAGE);
|
|
189
186
|
}
|
|
@@ -385,13 +382,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
385
382
|
}
|
|
386
383
|
});
|
|
387
384
|
|
|
388
|
-
/* unplugin-vue-components disabled */const window = "_window_2ntq2_1";
|
|
385
|
+
/* unplugin-vue-components disabled */const window$1 = "_window_2ntq2_1";
|
|
389
386
|
const alert = "_alert_2ntq2_13";
|
|
390
387
|
const placeholder = "_placeholder_2ntq2_23";
|
|
391
388
|
const footer = "_footer_2ntq2_63";
|
|
392
389
|
const select = "_select_2ntq2_68";
|
|
393
390
|
const style0 = {
|
|
394
|
-
window: window,
|
|
391
|
+
window: window$1,
|
|
395
392
|
alert: alert,
|
|
396
393
|
placeholder: placeholder,
|
|
397
394
|
"placeholder-opacity": "_placeholder-opacity_2ntq2_59",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '../../chunk/
|
|
3
|
-
import { E as ElInput } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
2
|
+
import '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import { E as ElInput } from '../../chunk/C7wQNvSS.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
5
5
|
import { defineComponent, useTemplateRef, ref, computed, watch, nextTick, onMounted, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeStyle, normalizeClass, createVNode, withKeys, createTextVNode } from 'vue';
|
|
6
6
|
import { Search } from '@element-plus/icons-vue';
|
|
7
|
-
import {
|
|
7
|
+
import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
|
|
8
|
+
import '../../chunk/D9iEroQw.mjs';
|
|
8
9
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
10
|
+
import { defaultDocument } from '@vueuse/core';
|
|
9
11
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
12
|
|
|
11
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -23,15 +25,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
25
|
const containerRef = useTemplateRef("containerRef");
|
|
24
26
|
const keywords = ref("");
|
|
25
27
|
const dialogWidth = computed(() => {
|
|
26
|
-
|
|
27
|
-
return "500px";
|
|
28
|
-
}
|
|
29
|
-
const width = document.body.clientWidth * 0.8;
|
|
28
|
+
const width = defaultDocument ? defaultDocument.body.clientWidth * 0.8 : 0;
|
|
30
29
|
const maxWidth = 1e3;
|
|
31
30
|
return `${width > maxWidth ? maxWidth : width}px`;
|
|
32
31
|
});
|
|
33
32
|
const containerStyle = computed(() => {
|
|
34
|
-
const height =
|
|
33
|
+
const height = defaultDocument ? defaultDocument.body.clientHeight * 0.8 : 0;
|
|
35
34
|
const maxHeight = 600;
|
|
36
35
|
return { height: `${height > maxHeight ? maxHeight : height}px` };
|
|
37
36
|
});
|
|
@@ -48,10 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
47
|
let local;
|
|
49
48
|
const point = ref({ lng: 0, lat: 0 });
|
|
50
49
|
function init() {
|
|
51
|
-
|
|
52
|
-
return "";
|
|
53
|
-
}
|
|
54
|
-
const { BMapGL } = defaultWindow;
|
|
50
|
+
const { BMapGL } = window;
|
|
55
51
|
map = new BMapGL.Map(containerRef.value, { enableMapClick: false });
|
|
56
52
|
map.setDefaultCursor("default");
|
|
57
53
|
let marker = null;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { c as buildProps, d as definePropType, u as useNamespace, j as isFunction, h as isString, t as throwError, i as isArray, k as isNil, N as NOOP, l as isPlainObject, e as debugWarn } from '../../chunk/
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
2
|
+
import { c as buildProps, d as definePropType, u as useNamespace, j as isFunction, h as isString, t as throwError, i as isArray, k as isNil, N as NOOP, l as isPlainObject, e as debugWarn } from '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import { v as vLoading } from '../../chunk/BHsNc7jl.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
5
5
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, toDisplayString, createBlock, withCtx, resolveDynamicComponent, ref, TransitionGroup, Fragment, renderList, withKeys, withModifiers, createVNode, inject, shallowRef, watch, nextTick, onBeforeUnmount, provide, toRef, createSlots, mergeProps, isRef, withDirectives, createTextVNode } from 'vue';
|
|
6
|
-
import { d as defaultWindow } from '../../chunk/BdDihk0t.mjs';
|
|
7
6
|
import Draggable from 'vuedraggable-es-fix';
|
|
8
7
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
9
8
|
import { C as Component$2 } from '../el-icon/el-icon.mjs';
|
|
10
|
-
import { E as ElIcon } from '../../chunk/
|
|
9
|
+
import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
|
|
11
10
|
import { WarningFilled, CircleCheck, CircleClose, Check, Close, Document, ZoomIn, Delete } from '@element-plus/icons-vue';
|
|
12
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
11
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
|
|
13
12
|
import { m as mutable } from '../../chunk/B-rxnVJv.mjs';
|
|
14
|
-
import { u as useLocale } from '../../chunk/
|
|
15
|
-
import { b as useFormDisabled } from '../../chunk/
|
|
13
|
+
import { u as useLocale } from '../../chunk/Dk6Bx0KT.mjs';
|
|
14
|
+
import { b as useFormDisabled } from '../../chunk/DXPWe_a5.mjs';
|
|
16
15
|
import { e as entriesOf } from '../../chunk/DVNTpOBR.mjs';
|
|
17
|
-
import { c as cloneDeep } from '../../chunk/
|
|
18
|
-
import { i as isEqual } from '../../chunk
|
|
19
|
-
import {
|
|
16
|
+
import { c as cloneDeep } from '../../chunk/DouIsSPi.mjs';
|
|
17
|
+
import { i as isEqual } from '../../chunk/BsLJxiSC.mjs';
|
|
18
|
+
import { useVModel } from '@vueuse/core';
|
|
20
19
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
21
20
|
|
|
22
21
|
const progressProps = buildProps({
|
|
@@ -1224,14 +1223,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1224
1223
|
}
|
|
1225
1224
|
});
|
|
1226
1225
|
function getImgUrl(file) {
|
|
1227
|
-
if (!defaultWindow) {
|
|
1228
|
-
return "";
|
|
1229
|
-
}
|
|
1230
1226
|
const data = file;
|
|
1231
1227
|
if (data.url) {
|
|
1232
1228
|
return data.url;
|
|
1233
1229
|
}
|
|
1234
|
-
return
|
|
1230
|
+
return window.URL.createObjectURL(data);
|
|
1235
1231
|
}
|
|
1236
1232
|
function handleConfirm() {
|
|
1237
1233
|
emits("update:modelValue", imgList.value);
|
|
@@ -1281,7 +1277,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1281
1277
|
emits("error", message);
|
|
1282
1278
|
}
|
|
1283
1279
|
function handleOnPreview(file) {
|
|
1284
|
-
|
|
1280
|
+
window.open(getImgUrl(file));
|
|
1285
1281
|
}
|
|
1286
1282
|
return (_ctx, _cache) => {
|
|
1287
1283
|
const _component_ElUpload = ElUpload;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IDragVerifyProps } from '../drag-verify';
|
|
2
|
+
declare function setImage(): void;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<Required<IDragVerifyProps>, {
|
|
4
|
+
reset: typeof setImage;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
success: () => any;
|
|
7
|
+
failed: () => any;
|
|
8
|
+
"update:success": (success: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Required<IDragVerifyProps>> & Readonly<{
|
|
10
|
+
onSuccess?: (() => any) | undefined;
|
|
11
|
+
onFailed?: (() => any) | undefined;
|
|
12
|
+
"onUpdate:success"?: ((success: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
imgRef: HTMLImageElement;
|
|
15
|
+
mainRef: HTMLCanvasElement;
|
|
16
|
+
moveRef: HTMLCanvasElement;
|
|
17
|
+
textRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../drag-verify').IDragVerifyTextProps> & Readonly<{
|
|
18
|
+
onSuccess?: (() => any) | undefined;
|
|
19
|
+
onFailed?: (() => any) | undefined;
|
|
20
|
+
"onUpdate:success"?: ((success: boolean) => any) | undefined;
|
|
21
|
+
onDragStart?: ((startX: number) => any) | undefined;
|
|
22
|
+
onDragMoving?: ((moveX: number) => any) | undefined;
|
|
23
|
+
onDragFinished?: ((moveX: number) => any) | undefined;
|
|
24
|
+
onDragEnd?: ((currentX: number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
reset: () => void;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
28
|
+
success: () => any;
|
|
29
|
+
failed: () => any;
|
|
30
|
+
"update:success": (success: boolean) => any;
|
|
31
|
+
dragStart: (startX: number) => any;
|
|
32
|
+
dragMoving: (moveX: number) => any;
|
|
33
|
+
dragFinished: (moveX: number) => any;
|
|
34
|
+
dragEnd: (currentX: number) => any;
|
|
35
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
36
|
+
P: {};
|
|
37
|
+
B: {};
|
|
38
|
+
D: {};
|
|
39
|
+
C: {};
|
|
40
|
+
M: {};
|
|
41
|
+
Defaults: {};
|
|
42
|
+
}, Readonly<import('../drag-verify').IDragVerifyTextProps> & Readonly<{
|
|
43
|
+
onSuccess?: (() => any) | undefined;
|
|
44
|
+
onFailed?: (() => any) | undefined;
|
|
45
|
+
"onUpdate:success"?: ((success: boolean) => any) | undefined;
|
|
46
|
+
onDragStart?: ((startX: number) => any) | undefined;
|
|
47
|
+
onDragMoving?: ((moveX: number) => any) | undefined;
|
|
48
|
+
onDragFinished?: ((moveX: number) => any) | undefined;
|
|
49
|
+
onDragEnd?: ((currentX: number) => any) | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
reset: () => void;
|
|
52
|
+
}, {}, {}, {}, {}> | null;
|
|
53
|
+
}, HTMLDivElement>;
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IDragVerifyTextProps } from '../drag-verify';
|
|
2
|
+
declare function reset(): void;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<IDragVerifyTextProps, {
|
|
4
|
+
reset: typeof reset;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
success: () => any;
|
|
7
|
+
failed: () => any;
|
|
8
|
+
"update:success": (success: boolean) => any;
|
|
9
|
+
dragStart: (startX: number) => any;
|
|
10
|
+
dragMoving: (moveX: number) => any;
|
|
11
|
+
dragFinished: (moveX: number) => any;
|
|
12
|
+
dragEnd: (currentX: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<IDragVerifyTextProps> & Readonly<{
|
|
14
|
+
onSuccess?: (() => any) | undefined;
|
|
15
|
+
onFailed?: (() => any) | undefined;
|
|
16
|
+
"onUpdate:success"?: ((success: boolean) => any) | undefined;
|
|
17
|
+
onDragStart?: ((startX: number) => any) | undefined;
|
|
18
|
+
onDragMoving?: ((moveX: number) => any) | undefined;
|
|
19
|
+
onDragFinished?: ((moveX: number) => any) | undefined;
|
|
20
|
+
onDragEnd?: ((currentX: number) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IDragVerifyProps {
|
|
2
|
+
type: 'text' | 'image';
|
|
3
|
+
diffWidth?: number;
|
|
4
|
+
imgs?: string[];
|
|
5
|
+
success?: boolean;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
background?: [string, string, string];
|
|
9
|
+
circle?: boolean;
|
|
10
|
+
radius?: number;
|
|
11
|
+
text?: string;
|
|
12
|
+
successText?: string;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
stopToCheck?: boolean;
|
|
15
|
+
tips?: boolean;
|
|
16
|
+
refresh?: boolean;
|
|
17
|
+
successTips?: string;
|
|
18
|
+
failedTips?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IDragVerifyTextProps extends Required<IDragVerifyProps> {
|
|
21
|
+
successRange?: [number, number];
|
|
22
|
+
}
|