@wfrog/vc-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/es/chunk/{BMzd-IS6.mjs → 09Ec85_u.mjs} +13 -13
- package/dist/es/chunk/{su2Zrql0.mjs → 4eyJqDa9.mjs} +1 -1
- package/dist/es/chunk/{Dqz1zvKN.mjs → 73YgKz3H.mjs} +1 -1
- package/dist/es/chunk/{Dh4jaUSg.mjs → B5UQmWXg.mjs} +5 -5
- package/dist/es/chunk/{CVlj9F0I.mjs → BHsNc7jl.mjs} +4 -3
- package/dist/es/chunk/{CEm0brzD.mjs → BI0vrXwX.mjs} +2 -1
- package/dist/es/chunk/{BJS5Pdfp.mjs → BTpNRPQW.mjs} +1 -1
- package/dist/es/chunk/{De_EXLIy.mjs → BUEEWLrd.mjs} +1 -1
- package/dist/es/chunk/{C5hWsUfD.mjs → BcTuAX8r.mjs} +2 -2
- package/dist/es/chunk/{DyDMGLoF.mjs → Bl2KlMdP.mjs} +3 -2
- package/dist/es/chunk/{ViP2SEY4.mjs → Bp9jXKX0.mjs} +2 -3
- package/dist/es/chunk/{C2LgraHx.mjs → BpqBBo4z.mjs} +2 -3
- package/dist/es/chunk/{CS4VKsqy.mjs → BsGCX4td.mjs} +1 -1
- package/dist/es/chunk/{-EkpfdcW.mjs → BsLJxiSC.mjs} +46 -8
- package/dist/es/chunk/{zfg5SOj1.mjs → BtTIs3tG.mjs} +3 -3
- package/dist/es/chunk/{B_tU9Nax.mjs → BzedaLtg.mjs} +1 -1
- package/dist/es/chunk/{Dvi7RsXg.mjs → C7wQNvSS.mjs} +10 -9
- package/dist/es/chunk/{8rLUmOVR.mjs → CBSopeeE.mjs} +3 -2
- package/dist/es/chunk/{Coex0GxM.mjs → CLCfXfvv.mjs} +10 -10
- package/dist/es/chunk/{DqUIKX7f.mjs → CLMc8GzD.mjs} +8 -7
- package/dist/es/chunk/{D3uV7vm-.mjs → CLbj8G-F.mjs} +3 -3
- package/dist/es/chunk/{C7iSSBUr.mjs → CPERtDRX.mjs} +5 -5
- package/dist/es/chunk/{VAdRxe-1.mjs → Cbhe4I9Z.mjs} +1 -1
- package/dist/es/chunk/{D5259bwd.mjs → CizMbf5K.mjs} +2 -1
- package/dist/es/chunk/CsLIbnzG.mjs +64 -0
- package/dist/es/chunk/{Ce9ApjrT.mjs → Cu6erWl4.mjs} +4 -4
- package/dist/es/chunk/{VCrtRnxt.mjs → D0LB3gF-.mjs} +7 -7
- package/dist/es/chunk/{D3DXeVfC.mjs → DFOLES4O.mjs} +60 -16
- package/dist/es/chunk/{E_WRn0OP.mjs → DRoyW749.mjs} +58 -264
- package/dist/es/chunk/{D389hx_T.mjs → DTLPXrjb.mjs} +1 -1
- package/dist/es/chunk/{DZACQ9LT.mjs → DXPWe_a5.mjs} +2 -2
- package/dist/es/chunk/{BWcCXRRK.mjs → DZD-YnCt.mjs} +4 -4
- package/dist/es/chunk/{BdDihk0t.mjs → DaCDeO95.mjs} +591 -562
- package/dist/es/chunk/{CZ4ggqDE.mjs → DihosKp1.mjs} +6 -6
- package/dist/es/chunk/{aibQ9WSZ.mjs → Dk6Bx0KT.mjs} +1 -1
- package/dist/es/chunk/{CyxEcbcy.mjs → DouIsSPi.mjs} +1 -1
- package/dist/es/chunk/{HSv8BL8o.mjs → DrgvuOYH.mjs} +2 -1
- package/dist/es/chunk/{DhhdKtyu.mjs → DwKWIlzw.mjs} +9 -8
- package/dist/es/chunk/{BX-Ogf7p.mjs → FHvLvzEB.mjs} +23 -23
- package/dist/es/chunk/{CMABHk8B.mjs → HAog8AWU.mjs} +22 -22
- package/dist/es/chunk/{Spa-JKB4.mjs → NQBKROII.mjs} +127 -2
- package/dist/es/chunk/{BAtns-Mc.mjs → OEa4tYPF.mjs} +1 -1
- package/dist/es/chunk/{JCIyOUEY.mjs → XwSiBVsA.mjs} +3 -2
- package/dist/es/chunk/{CaTfZePA.mjs → axpwSky6.mjs} +5 -5
- package/dist/es/chunk/{DMHNh_tw.mjs → cPBw23yt.mjs} +3 -3
- package/dist/es/chunk/{nWBcrYxV.mjs → f0-vIQGp.mjs} +3 -5
- package/dist/es/components/awesome-icon/awesome-icon.mjs +4 -6
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.mjs +8 -8
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/choice-boolean/choice-boolean.mjs +1 -1
- package/dist/es/components/config-provider/config-provider.mjs +1 -1
- package/dist/es/components/config-provider/config-provider2.mjs +1 -1
- package/dist/es/components/cropper/cropper.mjs +150 -15
- package/dist/es/components/currency/currency.mjs +6 -6
- package/dist/es/components/daterange-picker/daterange-picker.mjs +25 -23
- package/dist/es/components/dialog/dialog.mjs +11 -12
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +20 -23
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +8 -13
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +12 -16
- package/dist/es/components/drag-verify/components/image.vue.d.ts +54 -0
- package/dist/es/components/drag-verify/components/text.vue.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +475 -0
- package/dist/es/components/drag-verify/drag-verify.vue.d.ts +123 -0
- package/dist/es/components/drag-verify/helper.d.ts +2 -0
- package/dist/es/components/drag-verify/index.css +117 -0
- package/dist/es/components/drag-verify/index.d.ts +4 -0
- package/dist/es/components/drag-verify/index.mjs +6 -0
- package/dist/es/components/drawer/drawer.mjs +12 -13
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/flag/flag.mjs +1 -1
- package/dist/es/components/icon/icon.mjs +2 -2
- package/dist/es/components/icon/icon2.mjs +1 -1
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/input/input.mjs +4 -4
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -23
- package/dist/es/components/qr-code/qr-code.mjs +1 -1
- package/dist/es/components/screenfull/screenfull.mjs +5 -5
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/single-player.mjs +16 -16
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +3 -3
- package/dist/es/components/tags/tags.mjs +9 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/thousand-input/thousand-input.mjs +4 -4
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +7 -10
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -12
- package/dist/es/components/upload-file/upload-file.mjs +6 -9
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +26 -24
- package/dist/es/use/useSmallScreen/index.mjs +1 -1
- package/dist/global.d.ts +1 -0
- package/dist/index.css +118 -1
- package/package.json +3 -6
- package/dist/es/chunk/BAGoDD49.mjs +0 -36
- package/dist/es/chunk/CD98REcR.mjs +0 -666
- package/dist/es/chunk/CEClY-_T.mjs +0 -445
- package/dist/es/chunk/Fo0dZYnz.mjs +0 -128
- package/dist/es/chunk/O-uhUKF4.mjs +0 -43
- package/dist/es/chunk/qY9OvNHY.mjs +0 -283
- package/dist/es/components/cdn-tag.vue.d.ts +0 -5
- package/dist/es/components/document.vue.d.ts +0 -14
- package/dist/es/components/example-wrapper.vue.d.ts +0 -19
|
@@ -1,19 +1,154 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { c as buildProps,
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElSpace } from '../../chunk/
|
|
5
|
-
import { E as ElButton } from '../../chunk/
|
|
2
|
+
import { c as buildProps, q as isBoolean, u as useNamespace } from '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import { v as vLoading } from '../../chunk/BHsNc7jl.mjs';
|
|
4
|
+
import { E as ElSpace } from '../../chunk/Cu6erWl4.mjs';
|
|
5
|
+
import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
|
|
6
6
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, renderSlot, withCtx, resolveDynamicComponent, ref, useTemplateRef, shallowRef, watch, nextTick, onMounted, onUnmounted, withDirectives, isRef, createElementVNode, normalizeStyle, createVNode, createTextVNode } from 'vue';
|
|
7
|
-
import {
|
|
7
|
+
import { i as index$1 } from '../../chunk/DaCDeO95.mjs';
|
|
8
8
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
9
|
-
import {
|
|
9
|
+
import { defaultWindow } from '@vueuse/core';
|
|
10
|
+
import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
|
|
10
11
|
import { i as iconPropType } from '../icon/icon2.mjs';
|
|
11
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
12
|
-
import { u as useGlobalConfig } from '../../chunk/
|
|
13
|
-
import { u as useDeprecated } from '../../chunk/
|
|
14
|
-
import { d as debounce } from '../../chunk/
|
|
12
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
|
|
13
|
+
import { u as useGlobalConfig } from '../../chunk/B5UQmWXg.mjs';
|
|
14
|
+
import { u as useDeprecated } from '../../chunk/Cbhe4I9Z.mjs';
|
|
15
|
+
import { d as debounce } from '../../chunk/Bp9jXKX0.mjs';
|
|
15
16
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
16
17
|
|
|
18
|
+
const defaultImageOption = {
|
|
19
|
+
format: "image/png",
|
|
20
|
+
quality: 1
|
|
21
|
+
};
|
|
22
|
+
function canvasToDataURL(canvas, option) {
|
|
23
|
+
const myOption = { ...defaultImageOption, ...option };
|
|
24
|
+
return canvas.toDataURL(myOption.format, myOption.quality);
|
|
25
|
+
}
|
|
26
|
+
function imageToCanvas(data, crossOrigin) {
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
const canvas = document.createElement("canvas");
|
|
29
|
+
const ctx = canvas.getContext("2d");
|
|
30
|
+
const img = new Image();
|
|
31
|
+
if (crossOrigin)
|
|
32
|
+
img.crossOrigin = crossOrigin;
|
|
33
|
+
img.onload = () => {
|
|
34
|
+
try {
|
|
35
|
+
if (!ctx) {
|
|
36
|
+
reject(new Error("无法获取 canvas 上下文"));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
canvas.width = img.width;
|
|
40
|
+
canvas.height = img.height;
|
|
41
|
+
ctx.drawImage(img, 0, 0);
|
|
42
|
+
resolve(canvas);
|
|
43
|
+
} catch (err) {
|
|
44
|
+
reject(err);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
img.onerror = () => {
|
|
48
|
+
reject(new Error("图片加载错误"));
|
|
49
|
+
};
|
|
50
|
+
img.src = data;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function canvasToImage(canvas, option) {
|
|
54
|
+
const img = new Image();
|
|
55
|
+
img.src = canvasToDataURL(canvas, option);
|
|
56
|
+
return img;
|
|
57
|
+
}
|
|
58
|
+
function fileOrBlobToDataURL(obj) {
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
const reader = new FileReader();
|
|
61
|
+
reader.onload = () => {
|
|
62
|
+
const r = reader.result;
|
|
63
|
+
if (typeof r === "string") {
|
|
64
|
+
resolve(r);
|
|
65
|
+
} else {
|
|
66
|
+
reject(new Error("读取到非字符串的结果"));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
reader.onerror = () => {
|
|
70
|
+
reject(new Error("文件加载错误"));
|
|
71
|
+
};
|
|
72
|
+
reader.readAsDataURL(obj);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function dataURLtoUint8Array(dataurl) {
|
|
76
|
+
const arr = dataurl.split(",");
|
|
77
|
+
if (arr.length < 2) {
|
|
78
|
+
throw new Error("dataURL 数据格式错误");
|
|
79
|
+
}
|
|
80
|
+
const match = arr[0].match(/:(.*?);/);
|
|
81
|
+
if (!match) {
|
|
82
|
+
throw new Error("dataURL 数据错误");
|
|
83
|
+
}
|
|
84
|
+
const mime = match[1];
|
|
85
|
+
const bstr = atob(arr[1]);
|
|
86
|
+
let n = bstr.length;
|
|
87
|
+
const u8arr = new Uint8Array(n);
|
|
88
|
+
while (n--) {
|
|
89
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
90
|
+
}
|
|
91
|
+
return { uint8Array: u8arr, type: mime };
|
|
92
|
+
}
|
|
93
|
+
function dataURLToBlob(dataurl) {
|
|
94
|
+
const data = dataURLtoUint8Array(dataurl);
|
|
95
|
+
return new Blob([data.uint8Array], { type: data.type });
|
|
96
|
+
}
|
|
97
|
+
function dataURLToFile(dataurl, fileName) {
|
|
98
|
+
const data = dataURLtoUint8Array(dataurl);
|
|
99
|
+
return new File([data.uint8Array], fileName, { type: data.type });
|
|
100
|
+
}
|
|
101
|
+
const blobToFile = (blob, fileName) => new File([blob], fileName, { type: blob.type, lastModified: Date.now() });
|
|
102
|
+
function blobToImage(blob, crossOrigin) {
|
|
103
|
+
return fileOrBlobToDataURL(blob).then((dataurl) => {
|
|
104
|
+
return new Promise((resolve, reject) => {
|
|
105
|
+
const img = new Image();
|
|
106
|
+
if (crossOrigin)
|
|
107
|
+
img.crossOrigin = crossOrigin;
|
|
108
|
+
img.onload = () => resolve(img);
|
|
109
|
+
img.onerror = () => reject(new Error("图片加载错误"));
|
|
110
|
+
img.src = dataurl;
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function imageToBlob(data, crossOrigin) {
|
|
115
|
+
return imageToCanvas(data, crossOrigin).then((canvas) => {
|
|
116
|
+
return dataURLToBlob(canvasToDataURL(canvas));
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function blobToCanvas(blob, crossOrigin) {
|
|
120
|
+
return fileOrBlobToDataURL(blob).then((dataurl) => imageToCanvas(dataurl, crossOrigin));
|
|
121
|
+
}
|
|
122
|
+
const canvasToBlob = (canvas) => dataURLToBlob(canvasToDataURL(canvas));
|
|
123
|
+
function imageToDataURL(data, crossOrigin) {
|
|
124
|
+
return imageToCanvas(data, crossOrigin).then((canvas) => canvasToDataURL(canvas));
|
|
125
|
+
}
|
|
126
|
+
function dataURLToImage(dataurl) {
|
|
127
|
+
const img = new Image();
|
|
128
|
+
img.src = dataurl;
|
|
129
|
+
return img;
|
|
130
|
+
}
|
|
131
|
+
function stringToArrayBuffer(s) {
|
|
132
|
+
return new TextEncoder().encode(s).buffer;
|
|
133
|
+
}
|
|
134
|
+
const index = {
|
|
135
|
+
canvasToDataURL,
|
|
136
|
+
imageToCanvas,
|
|
137
|
+
canvasToImage,
|
|
138
|
+
fileOrBlobToDataURL,
|
|
139
|
+
dataURLtoUint8Array,
|
|
140
|
+
dataURLToBlob,
|
|
141
|
+
dataURLToFile,
|
|
142
|
+
blobToImage,
|
|
143
|
+
imageToBlob,
|
|
144
|
+
blobToCanvas,
|
|
145
|
+
blobToFile,
|
|
146
|
+
canvasToBlob,
|
|
147
|
+
imageToDataURL,
|
|
148
|
+
dataURLToImage,
|
|
149
|
+
stringToArrayBuffer
|
|
150
|
+
};
|
|
151
|
+
|
|
17
152
|
const linkProps = buildProps({
|
|
18
153
|
type: {
|
|
19
154
|
type: String,
|
|
@@ -146,9 +281,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
281
|
return img;
|
|
147
282
|
}
|
|
148
283
|
const file2 = props.image;
|
|
149
|
-
if (
|
|
284
|
+
if (file2?.size) {
|
|
150
285
|
const img = new Image();
|
|
151
|
-
const blob = defaultWindow
|
|
286
|
+
const blob = defaultWindow?.URL.createObjectURL(file2) || "";
|
|
152
287
|
img.src = blob;
|
|
153
288
|
return img;
|
|
154
289
|
}
|
|
@@ -170,7 +305,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
305
|
isNeedInit.value = false;
|
|
171
306
|
workbenchRef.value.childNodes.forEach((item) => workbenchRef.value?.removeChild(item));
|
|
172
307
|
workbenchRef.value.appendChild(image.value);
|
|
173
|
-
const Cropper = await index.loadCdnSingle("cropper");
|
|
308
|
+
const Cropper = await index$1.loadCdnSingle("cropper");
|
|
174
309
|
cropperRef.value = new Cropper(image.value, {
|
|
175
310
|
dragMode: "move",
|
|
176
311
|
viewMode: 1,
|
|
@@ -213,7 +348,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
213
348
|
if (!canvas) {
|
|
214
349
|
return void 0;
|
|
215
350
|
}
|
|
216
|
-
return
|
|
351
|
+
return index.canvasToBlob(canvas);
|
|
217
352
|
}
|
|
218
353
|
function handleFinish() {
|
|
219
354
|
const canvas = getCroppedCanvas();
|
|
@@ -330,4 +465,4 @@ const __vite_glob_0_7 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePro
|
|
|
330
465
|
default: Component
|
|
331
466
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
332
467
|
|
|
333
|
-
export { Component as C, __vite_glob_0_7 as _ };
|
|
468
|
+
export { Component as C, __vite_glob_0_7 as _, index as i };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '../../chunk/
|
|
3
|
-
import '../../chunk/
|
|
4
|
-
import { E as ElSelect, a as ElOption } from '../../chunk/
|
|
5
|
-
import '../../chunk/
|
|
6
|
-
import '../../chunk/
|
|
2
|
+
import '../../chunk/DRoyW749.mjs';
|
|
3
|
+
import '../../chunk/DihosKp1.mjs';
|
|
4
|
+
import { E as ElSelect, a as ElOption } from '../../chunk/HAog8AWU.mjs';
|
|
5
|
+
import '../../chunk/axpwSky6.mjs';
|
|
6
|
+
import '../../chunk/CLMc8GzD.mjs';
|
|
7
7
|
import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from 'vue';
|
|
8
8
|
import { _ as _sfc_main$1 } from '../flag/flag.mjs';
|
|
9
9
|
import { C as Component$1 } from '../thousand-input/thousand-input.mjs';
|
|
10
|
-
import {
|
|
10
|
+
import { useVModel } from '@vueuse/core';
|
|
11
11
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
12
12
|
|
|
13
13
|
const data = [
|
|
@@ -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/DaCDeO95.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,12 @@
|
|
|
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/DaCDeO95.mjs';
|
|
8
8
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
9
|
+
import { defaultDocument } from '@vueuse/core';
|
|
9
10
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
11
|
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -23,15 +24,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
24
|
const containerRef = useTemplateRef("containerRef");
|
|
24
25
|
const keywords = ref("");
|
|
25
26
|
const dialogWidth = computed(() => {
|
|
26
|
-
|
|
27
|
-
return "500px";
|
|
28
|
-
}
|
|
29
|
-
const width = document.body.clientWidth * 0.8;
|
|
27
|
+
const width = defaultDocument ? defaultDocument.body.clientWidth * 0.8 : 0;
|
|
30
28
|
const maxWidth = 1e3;
|
|
31
29
|
return `${width > maxWidth ? maxWidth : width}px`;
|
|
32
30
|
});
|
|
33
31
|
const containerStyle = computed(() => {
|
|
34
|
-
const height =
|
|
32
|
+
const height = defaultDocument ? defaultDocument.body.clientHeight * 0.8 : 0;
|
|
35
33
|
const maxHeight = 600;
|
|
36
34
|
return { height: `${height > maxHeight ? maxHeight : height}px` };
|
|
37
35
|
});
|
|
@@ -48,10 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
46
|
let local;
|
|
49
47
|
const point = ref({ lng: 0, lat: 0 });
|
|
50
48
|
function init() {
|
|
51
|
-
|
|
52
|
-
return "";
|
|
53
|
-
}
|
|
54
|
-
const { BMapGL } = defaultWindow;
|
|
49
|
+
const { BMapGL } = window;
|
|
55
50
|
map = new BMapGL.Map(containerRef.value, { enableMapClick: false });
|
|
56
51
|
map.setDefaultCursor("default");
|
|
57
52
|
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
|
+
}
|