@qynpm/ui 1.0.29 → 1.0.32
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 +79 -8
- package/dist/index.cjs +4 -2
- package/dist/index.mjs +67 -58
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-button/index.cjs +1 -1
- package/dist/qy-button/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-drawer/index.cjs +1 -0
- package/dist/qy-drawer/index.mjs +5 -0
- package/dist/qy-dropdown/index.cjs +1 -1
- package/dist/qy-dropdown/index.mjs +1 -1
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon-picker/index.cjs +1 -1
- package/dist/qy-icon-picker/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-loading/index.cjs +1 -0
- package/dist/qy-loading/index.mjs +9 -0
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -0
- package/dist/qy-result/index.mjs +7 -0
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-C7V-LeFg.mjs → index-1LT6Q6XJ.mjs} +1 -1
- package/dist/shared/{index-BQj_q6rA.mjs → index-4wZQbpy3.mjs} +833 -822
- package/dist/shared/index-B1zDCCqy.mjs +78 -0
- package/dist/shared/{index-B9RYNZUh.cjs → index-BWDaV6FO.cjs} +1 -1
- package/dist/shared/{index-Czrv5jUt.mjs → index-BmJPEXUM.mjs} +1 -1
- package/dist/shared/index-BvKFjDgX.cjs +1 -0
- package/dist/shared/{index-BNQxyXzB.cjs → index-D-YyFaZ6.cjs} +1 -1
- package/dist/shared/index-Dvf1zJ7h.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BLF3RNlY.mjs +331 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DXtovY1E.mjs → index.vue_vue_type_script_setup_true_lang-C91DUwOD.mjs} +1 -1
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DXGjuA2f.cjs → index.vue_vue_type_script_setup_true_lang-CuXBYNXZ.cjs} +1 -1
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CUox3Lm-.mjs → index.vue_vue_type_script_setup_true_lang-DP-jqqo2.mjs} +1 -1
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-kje3Rtlw.cjs → index.vue_vue_type_script_setup_true_lang-DkDEcB4G.cjs} +1 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-S6QPMZay.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-BTqKOZ4L.cjs → index.vue_vue_type_style_index_0_lang-CL_IFx-Z.cjs} +1 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CUqnwExG.mjs +80 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Bc-Ya_zS.mjs → index.vue_vue_type_style_index_0_lang-DXQ9l1XF.mjs} +1 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-lmRmXLwB.cjs +1 -0
- package/index.d.ts +62 -30
- package/package.json +20 -1
- package/qy-drawer/index.d.ts +55 -0
- package/qy-loading/index.d.ts +25 -0
- package/qy-result/index.d.ts +64 -0
- package/dist/shared/index-qwzyfx9S.cjs +0 -1
- /package/dist/shared/{index-D7A0RzWH.cjs → index-BDdhBEFr.cjs} +0 -0
- /package/dist/shared/{index-PlyLRNmb.cjs → index-Bmw9BNXm.cjs} +0 -0
- /package/dist/shared/{index-UGOgNLvm.cjs → index-BpI0jwYK.cjs} +0 -0
- /package/dist/shared/{index-C2n0R6rA.mjs → index-Bs2OQHXk.mjs} +0 -0
- /package/dist/shared/{index-DA3GVIZY.cjs → index-BxvS3vlc.cjs} +0 -0
- /package/dist/shared/{index-DMiZy6gD.cjs → index-Bxz4crCd.cjs} +0 -0
- /package/dist/shared/{index-YsBzyp9n.mjs → index-C-ZAw_DP.mjs} +0 -0
- /package/dist/shared/{index-CUITnlPr.mjs → index-C31wpivi.mjs} +0 -0
- /package/dist/shared/{index-BqV6vW9P.cjs → index-CCZttbsg.cjs} +0 -0
- /package/dist/shared/{index-DjyaOKUS.cjs → index-CltDZpF9.cjs} +0 -0
- /package/dist/shared/{index-mTWXYnLm.mjs → index-CmRclPWX.mjs} +0 -0
- /package/dist/shared/{index-DvA3Wy_F.mjs → index-Co0_4YEV.mjs} +0 -0
- /package/dist/shared/{index-C509sCx9.cjs → index-CpvFUems.cjs} +0 -0
- /package/dist/shared/{index-YM4DcbBZ.cjs → index-CwzztWPU.cjs} +0 -0
- /package/dist/shared/{index-WP9Dbscv.mjs → index-D6ybNdgn.mjs} +0 -0
- /package/dist/shared/{index-CtF8Nz3g.mjs → index-DEZF-Fkt.mjs} +0 -0
- /package/dist/shared/{index-D30m6gKz.cjs → index-DIs6iPjF.cjs} +0 -0
- /package/dist/shared/{index-Bs6yjkZ5.cjs → index-DLLDXfic.cjs} +0 -0
- /package/dist/shared/{index-BSxEaYHx.mjs → index-D_rRdrge.mjs} +0 -0
- /package/dist/shared/{index-CR6yQfR2.mjs → index-DfR8Z9MN.mjs} +0 -0
- /package/dist/shared/{index-DJT4yz0h.mjs → index-hEy-3mcr.mjs} +0 -0
- /package/dist/shared/{index-DHJf8Zto.mjs → index-kiAR2M_e.mjs} +0 -0
- /package/dist/shared/{index-4cLP6sJP.cjs → index-rcu9CzSn.cjs} +0 -0
- /package/dist/shared/{index-D0L-u1nt.mjs → index-seQHtqdh.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CJaF7Ecm.mjs → index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CqKs13Fp.cjs → index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CC2-igG3.cjs → index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Dc84vYSd.mjs → index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs} +0 -0
|
@@ -1,63 +1,67 @@
|
|
|
1
|
-
import { ElUpload as
|
|
2
|
-
import { ref as q, onMounted as Xe, computed as F, watch as fe, nextTick as Oe, onBeforeUnmount as ft, openBlock as v, createElementBlock as A, normalizeStyle as Pe, normalizeClass as ke, createVNode as O, withCtx as h, withModifiers as ue, unref as $, Fragment as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import { ElMessage as he, ElLoading as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { I as
|
|
7
|
-
import { _ as
|
|
8
|
-
import
|
|
9
|
-
import { useBreakpoints as
|
|
10
|
-
import { B as
|
|
11
|
-
import { D as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { C as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { R as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { M as
|
|
20
|
-
import { T as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { S as tt } from "./index-
|
|
23
|
-
import { T as St } from "./index-
|
|
24
|
-
import { T as We } from "./index-
|
|
25
|
-
import { F as
|
|
26
|
-
import { S as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ as
|
|
29
|
-
import { _ as
|
|
30
|
-
import { _ as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { F as
|
|
1
|
+
import { ElUpload as Ma, ElIcon as ct, ElPopover as Oa, ElInput as _a, ElImageViewer as La, ElDialog as dt, ElLoadingDirective as Ua } from "element-plus/es";
|
|
2
|
+
import { ref as q, onMounted as Xe, computed as F, watch as fe, nextTick as Oe, onBeforeUnmount as ft, openBlock as v, createElementBlock as A, normalizeStyle as Pe, normalizeClass as ke, createVNode as O, withCtx as h, withModifiers as ue, unref as $, Fragment as ze, createElementVNode as T, toDisplayString as pe, createCommentVNode as P, createBlock as ce, createTextVNode as be, useAttrs as Be, mergeProps as xe, defineComponent as qe, useSlots as mt, useModel as Ka, watchEffect as Ea, h as nt, onUnmounted as yt, createSlots as _e, renderSlot as z, withDirectives as Ye, vShow as pt, mergeModels as rt, renderList as et, withKeys as Ee, normalizeProps as gt, guardReactiveProps as vt, getCurrentInstance as ja, reactive as Ze } from "vue";
|
|
3
|
+
import { Plus as Na, InfoFilled as Ha, Close as Za } from "@element-plus/icons-vue";
|
|
4
|
+
import { ElMessage as he, ElLoading as Wa, ElButton as Ve, ElSelect as ht, ElOption as bt, ElInput as Me, ElPopover as Ga, ElUpload as Ja, ElAutocomplete as Xa, ElForm as wt, ElFormItem as Ie, ElTable as Ya, ElTableColumn as eo, ElPagination as to, ElTreeSelect as ao } from "element-plus";
|
|
5
|
+
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
import { I as oo } from "./index-hEy-3mcr.mjs";
|
|
7
|
+
import { _ as lo } from "./index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs";
|
|
8
|
+
import no from "clsx";
|
|
9
|
+
import { useBreakpoints as ro, useDraggable as io } from "@vueuse/core";
|
|
10
|
+
import { B as so } from "./index-seQHtqdh.mjs";
|
|
11
|
+
import { D as uo } from "./index-DEZF-Fkt.mjs";
|
|
12
|
+
import { _ as co } from "./index-Bs2OQHXk.mjs";
|
|
13
|
+
import { _ as fo } from "./index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs";
|
|
14
|
+
import { _ as mo } from "./index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs";
|
|
15
|
+
import { C as yo } from "./index-D6ybNdgn.mjs";
|
|
16
|
+
import { _ as po } from "./index.vue_vue_type_script_setup_true_lang-C91DUwOD.mjs";
|
|
17
|
+
import { R as go } from "./index-C31wpivi.mjs";
|
|
18
|
+
import { _ as vo } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
|
|
19
|
+
import { M as ho } from "./index-DfR8Z9MN.mjs";
|
|
20
|
+
import { T as bo } from "./index-1LT6Q6XJ.mjs";
|
|
21
|
+
import { _ as wo } from "./index.vue_vue_type_script_setup_true_lang-DP-jqqo2.mjs";
|
|
22
|
+
import { S as tt } from "./index-D_rRdrge.mjs";
|
|
23
|
+
import { T as St } from "./index-kiAR2M_e.mjs";
|
|
24
|
+
import { T as We } from "./index-Co0_4YEV.mjs";
|
|
25
|
+
import { F as So } from "./index-CmRclPWX.mjs";
|
|
26
|
+
import { S as ko } from "./index-C-ZAw_DP.mjs";
|
|
27
|
+
import { _ as Qo } from "./index.vue_vue_type_script_lang-DIKHRo0o.mjs";
|
|
28
|
+
import { _ as xo } from "./index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs";
|
|
29
|
+
import { _ as $o } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
|
|
30
|
+
import { _ as Co } from "./index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs";
|
|
31
|
+
import { _ as Vo } from "./index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs";
|
|
32
|
+
import { _ as qo } from "./index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs";
|
|
33
|
+
import { _ as Bo } from "./index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs";
|
|
34
|
+
import { _ as Ao } from "./index.vue_vue_type_script_lang-Dfq7D3mJ.mjs";
|
|
35
|
+
import { _ as Io } from "./index.vue_vue_type_script_lang-CZK0hDYa.mjs";
|
|
36
|
+
import { _ as Ro } from "./index.vue_vue_type_script_lang-69zSOotQ.mjs";
|
|
37
|
+
import { F as To } from "./index-BmJPEXUM.mjs";
|
|
38
38
|
import { Q as kt } from "./index-xuTVtF4x.mjs";
|
|
39
|
-
import { _ as
|
|
40
|
-
import { _ as
|
|
41
|
-
import { _ as
|
|
42
|
-
import { _ as
|
|
43
|
-
import { _ as
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
46
|
-
import { _ as
|
|
47
|
-
import { _ as
|
|
48
|
-
import { _ as
|
|
49
|
-
import { _ as
|
|
50
|
-
import { _ as
|
|
51
|
-
import { _ as
|
|
52
|
-
import { _ as
|
|
53
|
-
import { _ as
|
|
54
|
-
import { _ as
|
|
55
|
-
import { _ as
|
|
56
|
-
import { _ as
|
|
57
|
-
import { _ as
|
|
58
|
-
import { _ as
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
39
|
+
import { _ as zo } from "./index.vue_vue_type_style_index_0_lang-DXQ9l1XF.mjs";
|
|
40
|
+
import { _ as Fo } from "./index.vue_vue_type_script_lang-Bk0kLg5l.mjs";
|
|
41
|
+
import { _ as Po } from "./index.vue_vue_type_script_lang-BaIOvoQn.mjs";
|
|
42
|
+
import { _ as Do } from "./index.vue_vue_type_script_lang-DRvk4-_O.mjs";
|
|
43
|
+
import { _ as Mo } from "./index.vue_vue_type_script_lang-ChS-3_vl.mjs";
|
|
44
|
+
import { _ as Oo } from "./index.vue_vue_type_script_lang-CWnNQBPN.mjs";
|
|
45
|
+
import { _ as _o } from "./index.vue_vue_type_script_lang-D7b9ABei.mjs";
|
|
46
|
+
import { _ as Lo } from "./index.vue_vue_type_script_lang-chBiq2cG.mjs";
|
|
47
|
+
import { _ as Uo } from "./index.vue_vue_type_style_index_0_lang-DWiolYb3.mjs";
|
|
48
|
+
import { _ as Ko } from "./index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs";
|
|
49
|
+
import { _ as Eo } from "./index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs";
|
|
50
|
+
import { _ as jo } from "./index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs";
|
|
51
|
+
import { _ as No } from "./index.vue_vue_type_script_lang-D7nzeBUR.mjs";
|
|
52
|
+
import { _ as Ho } from "./index.vue_vue_type_script_lang-C9X0V5AK.mjs";
|
|
53
|
+
import { _ as Zo } from "./index.vue_vue_type_script_lang-C4JHCuXz.mjs";
|
|
54
|
+
import { _ as Wo } from "./index.vue_vue_type_style_index_0_lang-CUqnwExG.mjs";
|
|
55
|
+
import { _ as Go } from "./index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs";
|
|
56
|
+
import { _ as Jo } from "./index.vue_vue_type_script_lang-BGAdXWIL.mjs";
|
|
57
|
+
import { _ as Xo } from "./index.vue_vue_type_script_lang-BnmY1ndj.mjs";
|
|
58
|
+
import { _ as Yo } from "./index.vue_vue_type_script_lang-DOOT2grg.mjs";
|
|
59
|
+
import { _ as el } from "./index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs";
|
|
60
|
+
import { w as b } from "./install-CxBnxbuN.mjs";
|
|
61
|
+
import { v as tl, Q as Qt } from "./index-B1zDCCqy.mjs";
|
|
62
|
+
import { _ as al } from "./index.vue_vue_type_script_setup_true_lang-BLF3RNlY.mjs";
|
|
63
|
+
import { o as ol } from "./utils-DUntDntI.mjs";
|
|
64
|
+
import { openQyLoading as ll } from "@qynpm/hooks";
|
|
61
65
|
/*! js-cookie v3.0.8 | MIT */
|
|
62
66
|
function Ke(t) {
|
|
63
67
|
for (var D = 1; D < arguments.length; D++) {
|
|
@@ -67,7 +71,7 @@ function Ke(t) {
|
|
|
67
71
|
}
|
|
68
72
|
return t;
|
|
69
73
|
}
|
|
70
|
-
var
|
|
74
|
+
var nl = {
|
|
71
75
|
read: function(t) {
|
|
72
76
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
73
77
|
},
|
|
@@ -93,8 +97,8 @@ function Ge(t, D) {
|
|
|
93
97
|
for (var H = document.cookie ? document.cookie.split("; ") : [], d = {}, y = 0; y < H.length; y++) {
|
|
94
98
|
var f = H[y].split("="), I = f.slice(1).join("=");
|
|
95
99
|
try {
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
100
|
+
var x = decodeURIComponent(f[0]);
|
|
101
|
+
if (x in d || (d[x] = t.read(I, x)), n === x)
|
|
98
102
|
break;
|
|
99
103
|
} catch {
|
|
100
104
|
}
|
|
@@ -128,15 +132,15 @@ function Ge(t, D) {
|
|
|
128
132
|
}
|
|
129
133
|
);
|
|
130
134
|
}
|
|
131
|
-
var xt = Ge(
|
|
132
|
-
const
|
|
133
|
-
function
|
|
135
|
+
var xt = Ge(nl, { path: "/" });
|
|
136
|
+
const rl = "Admin-Token";
|
|
137
|
+
function il(t = rl) {
|
|
134
138
|
return xt.get(t);
|
|
135
139
|
}
|
|
136
|
-
const
|
|
140
|
+
const sl = { class: "qy-upload__hint" }, ul = ["placeholder", "disabled"], cl = ["src"], dl = {
|
|
137
141
|
key: 1,
|
|
138
142
|
class: "qy-upload__tip"
|
|
139
|
-
},
|
|
143
|
+
}, fl = { class: "error" }, ml = { class: "error" }, yl = /* @__PURE__ */ Object.assign({
|
|
140
144
|
name: "QyUpload"
|
|
141
145
|
}, {
|
|
142
146
|
__name: "index",
|
|
@@ -203,32 +207,32 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
203
207
|
],
|
|
204
208
|
setup(t, { expose: D, emit: W }) {
|
|
205
209
|
const e = t, n = W, H = q(null), d = q([]), y = q(null), f = q(null), I = [];
|
|
206
|
-
let
|
|
207
|
-
const _ = q(!1), E = q([]), M = q(0), j = q(!1), G = q(""),
|
|
210
|
+
let x = !1;
|
|
211
|
+
const _ = q(!1), E = q([]), M = q(0), j = q(!1), G = q(""), R = q(""), L = /* @__PURE__ */ new Set(), ae = q(!1), J = q(""), X = q(!1);
|
|
208
212
|
Xe(() => {
|
|
209
213
|
e.modelValue === void 0 && p(e.defaultValue);
|
|
210
214
|
});
|
|
211
|
-
const le = F(() => ({ large: "160px", default: "140px", small: "80px" })[e.size] ?? e.size), ne = F(() => e.disabled),
|
|
215
|
+
const le = F(() => ({ large: "160px", default: "140px", small: "80px" })[e.size] ?? e.size), ne = F(() => e.disabled), re = F(
|
|
212
216
|
() => {
|
|
213
217
|
var o;
|
|
214
218
|
return e.isShowTip && (e.fileSize || ((o = Z.value) == null ? void 0 : o.length));
|
|
215
219
|
}
|
|
216
220
|
), Z = F(() => {
|
|
217
221
|
var o;
|
|
218
|
-
return (o = e.fileType) != null && o.length ? e.fileType.map((
|
|
219
|
-
}),
|
|
222
|
+
return (o = e.fileType) != null && o.length ? e.fileType.map((i) => i.toLowerCase()) : e.supportVideo ? ["mp4", "mov", "avi"] : ["jpg", "jpeg", "png", "gif", "webp"];
|
|
223
|
+
}), w = F(() => {
|
|
220
224
|
const o = e.supportVideo ? 1 : e.limit;
|
|
221
225
|
return d.value.length >= o;
|
|
222
226
|
}), V = F(
|
|
223
227
|
() => Z.value.map((o) => `.${o}`).join(",")
|
|
224
228
|
), a = F(() => ({
|
|
225
|
-
"qy-upload--reached-limit":
|
|
229
|
+
"qy-upload--reached-limit": w.value,
|
|
226
230
|
"qy-upload--disabled": e.disabled,
|
|
227
231
|
"qy-upload--video": e.supportVideo,
|
|
228
232
|
"qy-upload--without-text": !e.showText && !e.showPasteInput
|
|
229
233
|
}));
|
|
230
234
|
fe(J, () => {
|
|
231
|
-
|
|
235
|
+
x || ie();
|
|
232
236
|
}), fe(
|
|
233
237
|
() => e.modelValue,
|
|
234
238
|
(o) => {
|
|
@@ -239,30 +243,30 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
239
243
|
function l(o) {
|
|
240
244
|
return Array.isArray(o) ? o.filter(Boolean) : o ? String(o).split(",").filter(Boolean) : [];
|
|
241
245
|
}
|
|
242
|
-
function
|
|
246
|
+
function U(o) {
|
|
243
247
|
return Array.isArray(o) ? { files: o, text: "" } : typeof o == "string" ? { files: l(o), text: "" } : o && typeof o == "object" ? {
|
|
244
248
|
files: l(o.files),
|
|
245
249
|
text: o.text ?? ""
|
|
246
250
|
} : { files: [], text: "" };
|
|
247
251
|
}
|
|
248
252
|
function te(o = []) {
|
|
249
|
-
return o.map((
|
|
250
|
-
name: String(
|
|
251
|
-
url:
|
|
253
|
+
return o.map((i, k) => ({
|
|
254
|
+
name: String(i).split("/").pop() || `file-${k}`,
|
|
255
|
+
url: i,
|
|
252
256
|
status: "success",
|
|
253
257
|
uid: Date.now() + k
|
|
254
258
|
}));
|
|
255
259
|
}
|
|
256
260
|
function s(o) {
|
|
257
|
-
const
|
|
258
|
-
(
|
|
261
|
+
const i = new Set(o.map((Q) => Q.url)), k = d.value.filter(
|
|
262
|
+
(Q) => Q.status === "uploading" && !i.has(Q.url)
|
|
259
263
|
);
|
|
260
264
|
return [...o, ...k];
|
|
261
265
|
}
|
|
262
266
|
function p(o) {
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
267
|
+
const i = U(o);
|
|
268
|
+
x = !0, J.value = i.text, d.value = s(te(i.files)), Oe(() => {
|
|
269
|
+
x = !1;
|
|
266
270
|
});
|
|
267
271
|
}
|
|
268
272
|
function C(o) {
|
|
@@ -275,21 +279,21 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
275
279
|
function B(o) {
|
|
276
280
|
o.target.value = "";
|
|
277
281
|
}
|
|
278
|
-
function
|
|
279
|
-
const
|
|
280
|
-
n("update:modelValue", C(
|
|
282
|
+
function ie(o) {
|
|
283
|
+
const Q = { files: (o ?? d.value).filter((K) => K.status === "success" && K.url).map((K) => K.url), text: J.value };
|
|
284
|
+
n("update:modelValue", C(Q)), n("change", Q), e.callBack && e.callBack(Q);
|
|
281
285
|
}
|
|
282
|
-
function me(o,
|
|
283
|
-
|
|
286
|
+
function me(o, i) {
|
|
287
|
+
ie(i), n("remove", o, i);
|
|
284
288
|
}
|
|
285
289
|
function we(o) {
|
|
286
290
|
var k;
|
|
287
|
-
const
|
|
288
|
-
return
|
|
291
|
+
const i = (o == null ? void 0 : o.name) || "";
|
|
292
|
+
return i.includes(".") && ((k = i.split(".").pop()) == null ? void 0 : k.toLowerCase()) || "";
|
|
289
293
|
}
|
|
290
|
-
function
|
|
294
|
+
function Qe(o) {
|
|
291
295
|
var K, oe, se;
|
|
292
|
-
const
|
|
296
|
+
const i = ((oe = (K = o == null ? void 0 : o.type) == null ? void 0 : K.toLowerCase) == null ? void 0 : oe.call(K)) || "", k = {
|
|
293
297
|
"image/jpeg": ["jpg", "jpeg"],
|
|
294
298
|
"image/png": ["png"],
|
|
295
299
|
"image/gif": ["gif"],
|
|
@@ -300,14 +304,14 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
300
304
|
"video/x-msvideo": ["avi"],
|
|
301
305
|
"video/webm": ["webm"]
|
|
302
306
|
};
|
|
303
|
-
if (k[
|
|
304
|
-
const
|
|
305
|
-
return
|
|
307
|
+
if (k[i]) return k[i];
|
|
308
|
+
const Q = (se = i.split("/")[1]) == null ? void 0 : se.split("+")[0];
|
|
309
|
+
return Q ? [Q] : [];
|
|
306
310
|
}
|
|
307
311
|
function m(o) {
|
|
308
|
-
const
|
|
309
|
-
return [
|
|
310
|
-
(
|
|
312
|
+
const i = we(o), k = Qe(o);
|
|
313
|
+
return [i, ...k].some(
|
|
314
|
+
(Q) => Z.value.includes(Q)
|
|
311
315
|
);
|
|
312
316
|
}
|
|
313
317
|
function Y(o) {
|
|
@@ -315,8 +319,8 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
315
319
|
`格式不支持,仅允许: ${Z.value.join("/")}`
|
|
316
320
|
), !1) : (he.warning(`文件大小不能超过${e.fileSize}M`), !1);
|
|
317
321
|
}
|
|
318
|
-
async function
|
|
319
|
-
const K =
|
|
322
|
+
async function r(o, i, k, Q) {
|
|
323
|
+
const K = S(o);
|
|
320
324
|
try {
|
|
321
325
|
const oe = await e.uploadRequest({
|
|
322
326
|
file: o,
|
|
@@ -331,88 +335,88 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
331
335
|
he.error(ge.message), n("error", ge), k == null || k(ge);
|
|
332
336
|
return;
|
|
333
337
|
}
|
|
334
|
-
he.success("上传成功"),
|
|
338
|
+
he.success("上传成功"), i == null || i({ ...typeof oe == "object" && oe ? oe : {}, url: se });
|
|
335
339
|
} catch (oe) {
|
|
336
340
|
he.error("上传失败"), n("error", oe), k == null || k(oe);
|
|
337
341
|
} finally {
|
|
338
|
-
|
|
342
|
+
Q.close();
|
|
339
343
|
}
|
|
340
344
|
}
|
|
341
|
-
function
|
|
342
|
-
const
|
|
343
|
-
return
|
|
345
|
+
function S(o) {
|
|
346
|
+
const i = new FormData();
|
|
347
|
+
return i.append(e.name, o), e.extraData && Object.entries(e.extraData).forEach(([k, Q]) => i.append(k, Q)), i;
|
|
344
348
|
}
|
|
345
349
|
function ee(o) {
|
|
346
|
-
var
|
|
350
|
+
var Q, K;
|
|
347
351
|
if (typeof o == "string") return o;
|
|
348
|
-
const
|
|
352
|
+
const i = o || {}, k = i.urls ?? i.url ?? ((Q = i.data) == null ? void 0 : Q.urls) ?? ((K = i.data) == null ? void 0 : K.url) ?? "";
|
|
349
353
|
return Array.isArray(k) ? k[0] || "" : k || "";
|
|
350
354
|
}
|
|
351
|
-
function Se(o,
|
|
355
|
+
function Se(o, i, k, Q) {
|
|
352
356
|
var ot, lt;
|
|
353
|
-
const K = ((ot = H.value) == null ? void 0 : ot.$el.querySelector(".el-upload--picture-card")) || ((lt = H.value) == null ? void 0 : lt.$el), oe =
|
|
357
|
+
const K = ((ot = H.value) == null ? void 0 : ot.$el.querySelector(".el-upload--picture-card")) || ((lt = H.value) == null ? void 0 : lt.$el), oe = Wa.service({
|
|
354
358
|
target: K,
|
|
355
359
|
text: "上传中",
|
|
356
360
|
background: "rgba(255,255,255,0.7)"
|
|
357
361
|
});
|
|
358
362
|
if (e.uploadRequest) {
|
|
359
|
-
|
|
363
|
+
r(o, k, Q, oe);
|
|
360
364
|
return;
|
|
361
365
|
}
|
|
362
|
-
const se = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"), ge =
|
|
366
|
+
const se = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"), ge = S(o), ve = new XMLHttpRequest();
|
|
363
367
|
I.push(ve);
|
|
364
368
|
const Ce = () => {
|
|
365
369
|
const ye = I.indexOf(ve);
|
|
366
370
|
ye !== -1 && I.splice(ye, 1), oe.close();
|
|
367
371
|
};
|
|
368
372
|
ve.open("POST", se);
|
|
369
|
-
const at =
|
|
373
|
+
const at = il(e.tokenKey);
|
|
370
374
|
at && ve.setRequestHeader("Authorization", `Bearer ${at}`), ve.upload.onprogress = (ye) => {
|
|
371
|
-
ye.total > 0 && (
|
|
375
|
+
ye.total > 0 && (i == null || i({ percent: ye.loaded / ye.total * 100 }));
|
|
372
376
|
}, ve.onload = () => {
|
|
373
377
|
if (Ce(), ve.status < 200 || ve.status >= 300) {
|
|
374
378
|
const ye = `上传失败 (HTTP ${ve.status})`;
|
|
375
|
-
he.error(ye), n("error", { msg: ye, status: ve.status }),
|
|
379
|
+
he.error(ye), n("error", { msg: ye, status: ve.status }), Q == null || Q(new Error(ye));
|
|
376
380
|
return;
|
|
377
381
|
}
|
|
378
382
|
try {
|
|
379
383
|
const ye = JSON.parse(ve.responseText);
|
|
380
|
-
ye.code === 200 && ye.urls ? (he.success("上传成功"), k == null || k({ ...ye, url: ye.urls })) : (he.error(ye.msg || "上传失败"), n("error", ye),
|
|
384
|
+
ye.code === 200 && ye.urls ? (he.success("上传成功"), k == null || k({ ...ye, url: ye.urls })) : (he.error(ye.msg || "上传失败"), n("error", ye), Q == null || Q(ye));
|
|
381
385
|
} catch {
|
|
382
|
-
he.error("上传失败,响应格式错误"), n("error", new Error("Response parse error")),
|
|
386
|
+
he.error("上传失败,响应格式错误"), n("error", new Error("Response parse error")), Q == null || Q(new Error("Response parse error"));
|
|
383
387
|
}
|
|
384
388
|
}, ve.onerror = () => {
|
|
385
|
-
Ce(), he.error("上传失败,网络异常"), n("error", new Error("Network error")),
|
|
389
|
+
Ce(), he.error("上传失败,网络异常"), n("error", new Error("Network error")), Q == null || Q(new Error("Network error"));
|
|
386
390
|
}, ve.send(ge);
|
|
387
391
|
}
|
|
388
392
|
function $e(o) {
|
|
389
393
|
return e.disabled ? !1 : Y(o);
|
|
390
394
|
}
|
|
391
|
-
function de(o,
|
|
395
|
+
function de(o, i) {
|
|
392
396
|
const k = d.value.find(
|
|
393
|
-
(
|
|
397
|
+
(Q) => {
|
|
394
398
|
var K;
|
|
395
|
-
return
|
|
399
|
+
return Q.uid === (o == null ? void 0 : o.uid) || ((K = Q.raw) == null ? void 0 : K.uid) === (o == null ? void 0 : o.uid);
|
|
396
400
|
}
|
|
397
401
|
);
|
|
398
|
-
k && (k.url =
|
|
402
|
+
k && (k.url = i, k.status = "success");
|
|
399
403
|
}
|
|
400
404
|
function De(o) {
|
|
401
405
|
Se(
|
|
402
406
|
o.file,
|
|
403
407
|
o.onProgress,
|
|
404
|
-
(
|
|
405
|
-
de(o.file,
|
|
408
|
+
(i) => {
|
|
409
|
+
de(o.file, i.url), o.onSuccess(i), ie(), n("success", i);
|
|
406
410
|
},
|
|
407
|
-
(
|
|
411
|
+
(i) => o.onError(i)
|
|
408
412
|
);
|
|
409
413
|
}
|
|
410
|
-
function
|
|
411
|
-
var
|
|
414
|
+
function Le(o) {
|
|
415
|
+
var Q;
|
|
412
416
|
if (!o.url) return;
|
|
413
|
-
const
|
|
414
|
-
if (["mp4", "mov", "avi", "webm"].includes(
|
|
415
|
-
G.value = o.url,
|
|
417
|
+
const i = ((Q = o.url.split(".").pop()) == null ? void 0 : Q.toLowerCase()) || "";
|
|
418
|
+
if (["mp4", "mov", "avi", "webm"].includes(i)) {
|
|
419
|
+
G.value = o.url, R.value = o.name || "视频预览", j.value = !0;
|
|
416
420
|
return;
|
|
417
421
|
}
|
|
418
422
|
const k = d.value.filter(
|
|
@@ -428,65 +432,65 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
428
432
|
function Fe() {
|
|
429
433
|
_.value = !1, E.value = [];
|
|
430
434
|
}
|
|
431
|
-
function je(o,
|
|
435
|
+
function je(o, i) {
|
|
432
436
|
if (o.name && we(o)) return o;
|
|
433
|
-
const k =
|
|
434
|
-
(
|
|
437
|
+
const k = Qe(o).find(
|
|
438
|
+
(Q) => Z.value.includes(Q)
|
|
435
439
|
);
|
|
436
|
-
return k ? new File([o], `paste-${Date.now() +
|
|
440
|
+
return k ? new File([o], `paste-${Date.now() + i}.${k}`, {
|
|
437
441
|
type: o.type,
|
|
438
442
|
lastModified: o.lastModified
|
|
439
443
|
}) : o;
|
|
440
444
|
}
|
|
441
|
-
function
|
|
442
|
-
for (let
|
|
443
|
-
const k = je(o[
|
|
445
|
+
function Ue(o) {
|
|
446
|
+
for (let i = 0; i < o.length; i++) {
|
|
447
|
+
const k = je(o[i], i);
|
|
444
448
|
if (!$e(k)) continue;
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
uid:
|
|
448
|
-
name: k.name || `file-${
|
|
449
|
+
const Q = Date.now() + i, K = URL.createObjectURL(k);
|
|
450
|
+
L.add(K), d.value.push({
|
|
451
|
+
uid: Q,
|
|
452
|
+
name: k.name || `file-${Q}`,
|
|
449
453
|
status: "uploading",
|
|
450
454
|
percentage: 0,
|
|
451
455
|
url: K
|
|
452
456
|
}), Se(
|
|
453
457
|
k,
|
|
454
458
|
(oe) => {
|
|
455
|
-
const se = d.value.find((ge) => ge.uid ===
|
|
459
|
+
const se = d.value.find((ge) => ge.uid === Q);
|
|
456
460
|
se && (se.percentage = oe.percent);
|
|
457
461
|
},
|
|
458
462
|
(oe) => {
|
|
459
|
-
const se = d.value.find((ge) => ge.uid ===
|
|
460
|
-
se && (se.status = "success", se.url = oe.url,
|
|
463
|
+
const se = d.value.find((ge) => ge.uid === Q);
|
|
464
|
+
se && (se.status = "success", se.url = oe.url, ie(), n("success", oe));
|
|
461
465
|
},
|
|
462
|
-
() => N(
|
|
466
|
+
() => N(Q)
|
|
463
467
|
);
|
|
464
468
|
}
|
|
465
469
|
}
|
|
466
470
|
function Ne(o) {
|
|
467
|
-
const
|
|
471
|
+
const i = Array.from((o == null ? void 0 : o.files) || []).filter(
|
|
468
472
|
(oe) => {
|
|
469
473
|
var se;
|
|
470
474
|
return (se = oe.type) == null ? void 0 : se.startsWith("image/");
|
|
471
475
|
}
|
|
472
476
|
);
|
|
473
|
-
if (
|
|
477
|
+
if (i.length) return i;
|
|
474
478
|
const k = o == null ? void 0 : o.items;
|
|
475
479
|
if (!k) return [];
|
|
476
|
-
const
|
|
480
|
+
const Q = [], K = /* @__PURE__ */ new Set();
|
|
477
481
|
for (let oe = 0; oe < k.length; oe++) {
|
|
478
482
|
const se = k[oe];
|
|
479
483
|
if (se.kind === "file" && se.type.startsWith("image/")) {
|
|
480
484
|
const ge = se.getAsFile();
|
|
481
|
-
ge && !K.has(ge) && (K.add(ge),
|
|
485
|
+
ge && !K.has(ge) && (K.add(ge), Q.push(ge));
|
|
482
486
|
}
|
|
483
487
|
}
|
|
484
|
-
return
|
|
488
|
+
return Q;
|
|
485
489
|
}
|
|
486
|
-
function
|
|
490
|
+
function Te(o) {
|
|
487
491
|
if (e.disabled) return;
|
|
488
|
-
const
|
|
489
|
-
|
|
492
|
+
const i = Ne(o.clipboardData);
|
|
493
|
+
i.length && (o.preventDefault(), Ue(i));
|
|
490
494
|
}
|
|
491
495
|
function Ae() {
|
|
492
496
|
e.disabled || e.disableDrag || (ae.value = !0);
|
|
@@ -496,33 +500,33 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
496
500
|
}
|
|
497
501
|
function c(o) {
|
|
498
502
|
var k;
|
|
499
|
-
if (ae.value = !1, e.disabled || e.disableDrag ||
|
|
500
|
-
const
|
|
501
|
-
(
|
|
503
|
+
if (ae.value = !1, e.disabled || e.disableDrag || w.value) return;
|
|
504
|
+
const i = Array.from(((k = o.dataTransfer) == null ? void 0 : k.files) || []).filter(
|
|
505
|
+
(Q) => {
|
|
502
506
|
var K;
|
|
503
|
-
return Z.value.includes((K =
|
|
507
|
+
return Z.value.includes((K = Q.name.split(".").pop()) == null ? void 0 : K.toLowerCase());
|
|
504
508
|
}
|
|
505
509
|
);
|
|
506
|
-
|
|
510
|
+
i.length && Ue(i);
|
|
507
511
|
}
|
|
508
512
|
function N(o) {
|
|
509
513
|
var k;
|
|
510
|
-
const
|
|
511
|
-
|
|
514
|
+
const i = d.value.findIndex((Q) => Q.uid === o);
|
|
515
|
+
i !== -1 && ((k = d.value[i].url) != null && k.startsWith("blob:") && (URL.revokeObjectURL(d.value[i].url), L.delete(d.value[i].url)), d.value.splice(i, 1));
|
|
512
516
|
}
|
|
513
517
|
return ft(() => {
|
|
514
|
-
I.forEach((o) => o.abort()), I.length = 0,
|
|
518
|
+
I.forEach((o) => o.abort()), I.length = 0, L.forEach((o) => URL.revokeObjectURL(o)), L.clear();
|
|
515
519
|
}), D({
|
|
516
520
|
/** 主动打开文件选择框,供表单或快捷操作调用 */
|
|
517
521
|
openFileDialog: () => {
|
|
518
|
-
var o,
|
|
519
|
-
e.disabled ||
|
|
522
|
+
var o, i;
|
|
523
|
+
e.disabled || w.value || (i = (o = H.value) == null ? void 0 : o.$el.querySelector('input[type="file"]')) == null || i.click();
|
|
520
524
|
},
|
|
521
525
|
/** 获取已上传成功的文件 URL 列表 */
|
|
522
526
|
getPathList: () => d.value.filter((o) => o.status === "success").map((o) => o.url),
|
|
523
527
|
/** 清空文件和文字,并同步 change 事件 */
|
|
524
528
|
clearFiles: () => {
|
|
525
|
-
d.value = [], J.value = "",
|
|
529
|
+
d.value = [], J.value = "", ie();
|
|
526
530
|
},
|
|
527
531
|
/** 获取完整值,结构与 change 事件保持一致 */
|
|
528
532
|
getValue: () => ({
|
|
@@ -534,9 +538,9 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
534
538
|
files: d.value.filter((o) => o.status === "success" && o.url).map((o) => o.url),
|
|
535
539
|
text: J.value
|
|
536
540
|
})
|
|
537
|
-
}), (o,
|
|
541
|
+
}), (o, i) => {
|
|
538
542
|
var ve;
|
|
539
|
-
const k = ct,
|
|
543
|
+
const k = ct, Q = _a, K = Oa, oe = Ma, se = La, ge = dt;
|
|
540
544
|
return v(), A("div", {
|
|
541
545
|
class: ke(["qy-upload", a.value]),
|
|
542
546
|
style: Pe({ "--qy-upload-size": le.value })
|
|
@@ -545,7 +549,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
545
549
|
ref_key: "uploadRef",
|
|
546
550
|
ref: H,
|
|
547
551
|
"file-list": d.value,
|
|
548
|
-
"onUpdate:fileList":
|
|
552
|
+
"onUpdate:fileList": i[6] || (i[6] = (Ce) => d.value = Ce),
|
|
549
553
|
action: "#",
|
|
550
554
|
multiple: t.supportVideo ? !1 : t.multiple,
|
|
551
555
|
limit: t.supportVideo ? 1 : t.limit,
|
|
@@ -554,38 +558,38 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
554
558
|
disabled: ne.value,
|
|
555
559
|
"http-request": De,
|
|
556
560
|
"before-upload": $e,
|
|
557
|
-
"on-preview":
|
|
561
|
+
"on-preview": Le,
|
|
558
562
|
"on-remove": me
|
|
559
563
|
}, {
|
|
560
564
|
default: h(() => [
|
|
561
|
-
|
|
565
|
+
w.value ? P("", !0) : (v(), A("div", {
|
|
562
566
|
key: 0,
|
|
563
567
|
class: ke(["qy-upload__trigger", { "is-dragover": ae.value }]),
|
|
564
|
-
onPaste:
|
|
568
|
+
onPaste: Te,
|
|
565
569
|
onDragover: ue(Ae, ["prevent"]),
|
|
566
570
|
onDragleave: ue(u, ["prevent"]),
|
|
567
571
|
onDrop: ue(c, ["prevent"])
|
|
568
572
|
}, [
|
|
569
573
|
O(k, { class: "qy-upload__icon" }, {
|
|
570
574
|
default: h(() => [
|
|
571
|
-
O($(
|
|
575
|
+
O($(Na))
|
|
572
576
|
]),
|
|
573
577
|
_: 1
|
|
574
578
|
}),
|
|
575
|
-
t.supportVideo ? (v(), A(
|
|
576
|
-
|
|
577
|
-
|
|
579
|
+
t.supportVideo ? (v(), A(ze, { key: 0 }, [
|
|
580
|
+
i[9] || (i[9] = T("span", { class: "qy-upload__label" }, "点击上传视频", -1)),
|
|
581
|
+
T("span", sl, "支持 " + pe(Z.value.join(" / ")) + ",不超过 " + pe(t.fileSize) + "MB", 1)
|
|
578
582
|
], 64)) : P("", !0),
|
|
579
583
|
t.showText ? (v(), A("div", {
|
|
580
584
|
key: 1,
|
|
581
585
|
class: "qy-upload__text",
|
|
582
|
-
onClick:
|
|
586
|
+
onClick: i[3] || (i[3] = ue(() => {
|
|
583
587
|
}, ["stop"])),
|
|
584
|
-
onPaste: ue(
|
|
588
|
+
onPaste: ue(Te, ["stop"])
|
|
585
589
|
}, [
|
|
586
590
|
O(K, {
|
|
587
591
|
visible: X.value,
|
|
588
|
-
"onUpdate:visible":
|
|
592
|
+
"onUpdate:visible": i[2] || (i[2] = (Ce) => X.value = Ce),
|
|
589
593
|
placement: "bottom-start",
|
|
590
594
|
width: 220,
|
|
591
595
|
trigger: "click",
|
|
@@ -593,22 +597,22 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
593
597
|
onAfterEnter: g
|
|
594
598
|
}, {
|
|
595
599
|
reference: h(() => [
|
|
596
|
-
|
|
600
|
+
T("div", {
|
|
597
601
|
class: ke(["qy-upload__text-preview", { "is-placeholder": !J.value }])
|
|
598
602
|
}, pe(J.value || t.pastePlaceholder), 3)
|
|
599
603
|
]),
|
|
600
604
|
default: h(() => [
|
|
601
|
-
O(
|
|
605
|
+
O(Q, {
|
|
602
606
|
ref_key: "inputRef",
|
|
603
607
|
ref: y,
|
|
604
608
|
modelValue: J.value,
|
|
605
|
-
"onUpdate:modelValue":
|
|
609
|
+
"onUpdate:modelValue": i[0] || (i[0] = (Ce) => J.value = Ce),
|
|
606
610
|
type: "textarea",
|
|
607
611
|
autosize: { minRows: 2, maxRows: 5 },
|
|
608
612
|
placeholder: t.pastePlaceholder,
|
|
609
613
|
disabled: t.disabled,
|
|
610
|
-
onBlur:
|
|
611
|
-
onPaste: ue(
|
|
614
|
+
onBlur: i[1] || (i[1] = (Ce) => X.value = !1),
|
|
615
|
+
onPaste: ue(Te, ["stop"])
|
|
612
616
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
613
617
|
]),
|
|
614
618
|
_: 1
|
|
@@ -616,21 +620,21 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
616
620
|
], 32)) : t.showPasteInput ? (v(), A("div", {
|
|
617
621
|
key: 2,
|
|
618
622
|
class: "qy-upload__text",
|
|
619
|
-
onClick:
|
|
623
|
+
onClick: i[5] || (i[5] = ue(() => {
|
|
620
624
|
}, ["stop"])),
|
|
621
|
-
onPaste: ue(
|
|
625
|
+
onPaste: ue(Te, ["stop"])
|
|
622
626
|
}, [
|
|
623
|
-
|
|
627
|
+
T("input", {
|
|
624
628
|
ref_key: "pasteInputRef",
|
|
625
629
|
ref: f,
|
|
626
630
|
class: "qy-upload__paste-input",
|
|
627
631
|
placeholder: t.pastePlaceholder,
|
|
628
632
|
disabled: t.disabled,
|
|
629
|
-
onPaste: ue(
|
|
633
|
+
onPaste: ue(Te, ["stop"]),
|
|
630
634
|
onInput: B,
|
|
631
|
-
onClick:
|
|
635
|
+
onClick: i[4] || (i[4] = ue(() => {
|
|
632
636
|
}, ["stop"]))
|
|
633
|
-
}, null, 40,
|
|
637
|
+
}, null, 40, ul)
|
|
634
638
|
], 32)) : P("", !0)
|
|
635
639
|
], 34))
|
|
636
640
|
]),
|
|
@@ -644,12 +648,12 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
644
648
|
}, null, 8, ["url-list", "initial-index"])) : P("", !0),
|
|
645
649
|
O(ge, {
|
|
646
650
|
modelValue: j.value,
|
|
647
|
-
"onUpdate:modelValue":
|
|
648
|
-
title:
|
|
651
|
+
"onUpdate:modelValue": i[7] || (i[7] = (Ce) => j.value = Ce),
|
|
652
|
+
title: R.value,
|
|
649
653
|
width: "640px",
|
|
650
654
|
"append-to-body": "",
|
|
651
655
|
"destroy-on-close": "",
|
|
652
|
-
onClose:
|
|
656
|
+
onClose: i[8] || (i[8] = (Ce) => j.value = !1)
|
|
653
657
|
}, {
|
|
654
658
|
default: h(() => [
|
|
655
659
|
j.value ? (v(), A("video", {
|
|
@@ -658,34 +662,34 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
658
662
|
controls: "",
|
|
659
663
|
autoplay: "",
|
|
660
664
|
style: { width: "100%", "max-height": "400px", "border-radius": "4px" }
|
|
661
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, cl)) : P("", !0)
|
|
662
666
|
]),
|
|
663
667
|
_: 1
|
|
664
668
|
}, 8, ["modelValue", "title"]),
|
|
665
|
-
|
|
669
|
+
re.value ? (v(), A("div", dl, [
|
|
666
670
|
O(k, null, {
|
|
667
671
|
default: h(() => [
|
|
668
|
-
O($(
|
|
672
|
+
O($(Ha))
|
|
669
673
|
]),
|
|
670
674
|
_: 1
|
|
671
675
|
}),
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
t.fileSize ? (v(), A(
|
|
675
|
-
|
|
676
|
-
|
|
676
|
+
T("span", null, [
|
|
677
|
+
i[12] || (i[12] = be(" 请上传 ", -1)),
|
|
678
|
+
t.fileSize ? (v(), A(ze, { key: 0 }, [
|
|
679
|
+
i[10] || (i[10] = be("大小不超过 ", -1)),
|
|
680
|
+
T("b", fl, pe(t.fileSize) + "MB", 1)
|
|
677
681
|
], 64)) : P("", !0),
|
|
678
|
-
(ve = Z.value) != null && ve.length ? (v(), A(
|
|
679
|
-
|
|
680
|
-
|
|
682
|
+
(ve = Z.value) != null && ve.length ? (v(), A(ze, { key: 1 }, [
|
|
683
|
+
i[11] || (i[11] = be(",格式为 ", -1)),
|
|
684
|
+
T("b", ml, pe(Z.value.join("/")), 1)
|
|
681
685
|
], 64)) : P("", !0),
|
|
682
|
-
|
|
686
|
+
i[13] || (i[13] = be(" 的文件。 ", -1))
|
|
683
687
|
])
|
|
684
688
|
])) : P("", !0)
|
|
685
689
|
], 6);
|
|
686
690
|
};
|
|
687
691
|
}
|
|
688
|
-
}),
|
|
692
|
+
}), $t = /* @__PURE__ */ Re(yl, [["__scopeId", "data-v-1e380be1"]]), pl = /* @__PURE__ */ Object.assign({
|
|
689
693
|
name: "QyImageUpload",
|
|
690
694
|
inheritAttrs: !1
|
|
691
695
|
}, {
|
|
@@ -743,7 +747,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
743
747
|
setup(t, { expose: D, emit: W }) {
|
|
744
748
|
const e = t, n = W, H = Be(), d = q(null), y = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], f = F(
|
|
745
749
|
() => e.voucher || e.mode === "voucher"
|
|
746
|
-
), I = F(() => Array.isArray(e.modelValue) ? e.modelValue.filter(Boolean) : e.modelValue ? String(e.modelValue).split(",").filter(Boolean) : []),
|
|
750
|
+
), I = F(() => Array.isArray(e.modelValue) ? e.modelValue.filter(Boolean) : e.modelValue ? String(e.modelValue).split(",").filter(Boolean) : []), x = F(() => e.supportVideo ? 1 : f.value ? e.limit ?? 30 : e.limit ?? (e.multiple ? 9 : 1)), _ = F(() => {
|
|
747
751
|
var a;
|
|
748
752
|
return (a = e.fileType) != null && a.length ? e.fileType : f.value && !e.supportVideo ? y : [];
|
|
749
753
|
});
|
|
@@ -760,14 +764,14 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
760
764
|
function G(a) {
|
|
761
765
|
n("change", M(a == null ? void 0 : a.files));
|
|
762
766
|
}
|
|
763
|
-
function
|
|
767
|
+
function R(a) {
|
|
764
768
|
var te, s;
|
|
765
769
|
if (typeof a == "string") return a;
|
|
766
|
-
const l = a || {},
|
|
767
|
-
return Array.isArray(
|
|
770
|
+
const l = a || {}, U = l.url ?? l.urls ?? ((te = l.data) == null ? void 0 : te.url) ?? ((s = l.data) == null ? void 0 : s.urls) ?? "";
|
|
771
|
+
return Array.isArray(U) ? U[0] || "" : U || "";
|
|
768
772
|
}
|
|
769
|
-
function
|
|
770
|
-
const l =
|
|
773
|
+
function L(a) {
|
|
774
|
+
const l = R(a);
|
|
771
775
|
l && n("updateImg", l), n("success", V(), a);
|
|
772
776
|
}
|
|
773
777
|
function ae(a) {
|
|
@@ -788,8 +792,8 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
788
792
|
var a, l;
|
|
789
793
|
return ((l = (a = d.value) == null ? void 0 : a.getPathList) == null ? void 0 : l.call(a)) || [];
|
|
790
794
|
}
|
|
791
|
-
const
|
|
792
|
-
function
|
|
795
|
+
const re = F(() => ne()), Z = F(() => ne());
|
|
796
|
+
function w() {
|
|
793
797
|
return ne();
|
|
794
798
|
}
|
|
795
799
|
function V() {
|
|
@@ -800,11 +804,11 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
800
804
|
openFileDialog: X,
|
|
801
805
|
clearFiles: le,
|
|
802
806
|
getPathList: ne,
|
|
803
|
-
getFullPathList:
|
|
804
|
-
fullPathList:
|
|
807
|
+
getFullPathList: w,
|
|
808
|
+
fullPathList: re,
|
|
805
809
|
pathList: Z,
|
|
806
810
|
getValue: V
|
|
807
|
-
}), (a, l) => (v(), ce(
|
|
811
|
+
}), (a, l) => (v(), ce($t, xe({
|
|
808
812
|
ref_key: "uploadRef",
|
|
809
813
|
ref: d
|
|
810
814
|
}, $(H), {
|
|
@@ -816,7 +820,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
816
820
|
disabled: t.disabled,
|
|
817
821
|
"file-type": _.value,
|
|
818
822
|
"file-size": t.fileSize,
|
|
819
|
-
limit:
|
|
823
|
+
limit: x.value,
|
|
820
824
|
"is-show-tip": t.isShowTip,
|
|
821
825
|
"token-key": t.tokenKey,
|
|
822
826
|
"support-video": t.supportVideo,
|
|
@@ -830,27 +834,27 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
830
834
|
"paste-placeholder": t.pastePlaceholder,
|
|
831
835
|
"onUpdate:modelValue": j,
|
|
832
836
|
onChange: G,
|
|
833
|
-
onSuccess:
|
|
837
|
+
onSuccess: L,
|
|
834
838
|
onError: ae,
|
|
835
839
|
onRemove: J
|
|
836
840
|
}), null, 16, ["model-value", "api", "name", "multiple", "disabled", "file-type", "file-size", "limit", "is-show-tip", "token-key", "support-video", "size", "disable-drag", "call-back", "extra-data", "upload-request", "show-paste-input", "paste-placeholder"]));
|
|
837
841
|
}
|
|
838
|
-
}),
|
|
842
|
+
}), gl = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, vl = { key: 0 }, hl = { key: 1 }, bl = {
|
|
839
843
|
key: 0,
|
|
840
844
|
class: "icon-[material-symbols--square-outline-rounded]",
|
|
841
845
|
role: "img",
|
|
842
846
|
"aria-hidden": "true"
|
|
843
|
-
},
|
|
847
|
+
}, wl = {
|
|
844
848
|
key: 1,
|
|
845
849
|
class: "icon-[tdesign--fullscreen-exit-1]",
|
|
846
850
|
role: "img",
|
|
847
851
|
"aria-hidden": "true"
|
|
848
|
-
},
|
|
852
|
+
}, Sl = {
|
|
849
853
|
key: 0,
|
|
850
854
|
class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
|
|
851
|
-
},
|
|
855
|
+
}, kl = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, Ql = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, xl = { class: "flex items-center gap-2" }, $l = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, Cl = { class: "flex items-center gap-2" }, it = 5, He = 2e3, Je = /* @__PURE__ */ qe({
|
|
852
856
|
__name: "index",
|
|
853
|
-
props: /* @__PURE__ */
|
|
857
|
+
props: /* @__PURE__ */ rt({
|
|
854
858
|
layout: { type: [Array, String, Boolean], default: () => ["confirm", "cancel"] },
|
|
855
859
|
fullscreen: { type: Boolean, default: !1 },
|
|
856
860
|
showFullscreen: { type: Boolean, default: !1 },
|
|
@@ -861,9 +865,9 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
861
865
|
modelValue: { default: !0 },
|
|
862
866
|
modelModifiers: {}
|
|
863
867
|
}),
|
|
864
|
-
emits: /* @__PURE__ */
|
|
868
|
+
emits: /* @__PURE__ */ rt(["confirm", "cancel", "close", "opened", "ok"], ["update:modelValue"]),
|
|
865
869
|
setup(t, { expose: D, emit: W }) {
|
|
866
|
-
const e = t, n = mt(), H = q(!0), d = q(!1), y = q(He), f = q(null),
|
|
870
|
+
const e = t, n = mt(), H = q(!0), d = q(!1), y = q(He), f = q(null), x = ro({
|
|
867
871
|
mobile: 0,
|
|
868
872
|
tablet: 640,
|
|
869
873
|
laptop: 1024,
|
|
@@ -876,16 +880,16 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
876
880
|
CancelButton: O(s),
|
|
877
881
|
ConfirmButton: O(te)
|
|
878
882
|
})), M = F(() => n.footer || e.layout !== !1), j = q(!1), G = q(
|
|
879
|
-
e.showFullscreen &&
|
|
880
|
-
),
|
|
881
|
-
|
|
882
|
-
|
|
883
|
+
e.showFullscreen && x ? !0 : e.fullscreen
|
|
884
|
+
), R = W, L = Ka(t, "modelValue");
|
|
885
|
+
Ea(() => {
|
|
886
|
+
L.value && (j.value = !1);
|
|
883
887
|
}), D({
|
|
884
888
|
handleMinimize: C
|
|
885
889
|
});
|
|
886
890
|
const ae = Be(), J = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, X = q(!1), le = q(null);
|
|
887
891
|
window.minimizedCount || (window.minimizedCount = 0);
|
|
888
|
-
const { x: ne, y:
|
|
892
|
+
const { x: ne, y: re } = io(le, {
|
|
889
893
|
initialValue: {
|
|
890
894
|
x: 5,
|
|
891
895
|
y: window.innerHeight - 100 - (window.minimizedCount || 0) * 60
|
|
@@ -895,7 +899,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
895
899
|
(B = le.value) == null || B.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), ne.value = Math.max(
|
|
896
900
|
0,
|
|
897
901
|
Math.min(window.innerWidth - 300, g.x)
|
|
898
|
-
),
|
|
902
|
+
), re.value = Math.max(
|
|
899
903
|
0,
|
|
900
904
|
Math.min(window.innerHeight - 50, g.y)
|
|
901
905
|
);
|
|
@@ -905,24 +909,24 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
905
909
|
(g = le.value) == null || g.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
|
|
906
910
|
}
|
|
907
911
|
}), Z = F(() => ({
|
|
908
|
-
transform: `translate(${ne.value}px, ${
|
|
912
|
+
transform: `translate(${ne.value}px, ${re.value}px)`,
|
|
909
913
|
willChange: "transform"
|
|
910
914
|
}));
|
|
911
|
-
function
|
|
912
|
-
const B = g.target, { scrollTop:
|
|
913
|
-
H.value =
|
|
915
|
+
function w(g) {
|
|
916
|
+
const B = g.target, { scrollTop: ie, scrollHeight: me, clientHeight: we } = B;
|
|
917
|
+
H.value = ie <= it, d.value = me - (ie + we) <= it;
|
|
914
918
|
}
|
|
915
919
|
function V() {
|
|
916
920
|
const g = document.querySelector(`.${J}.el-dialog`);
|
|
917
|
-
g && (f.value = g, g.addEventListener("scroll",
|
|
921
|
+
g && (f.value = g, g.addEventListener("scroll", w)), p(), R("opened");
|
|
918
922
|
}
|
|
919
923
|
function a() {
|
|
920
924
|
G.value = !G.value, p();
|
|
921
925
|
}
|
|
922
926
|
function l() {
|
|
923
|
-
j.value || (j.value = !0, X.value = !1,
|
|
927
|
+
j.value || (j.value = !0, X.value = !1, L.value = !1, R("cancel"), R("close"));
|
|
924
928
|
}
|
|
925
|
-
function
|
|
929
|
+
function U(g) {
|
|
926
930
|
e.showFullscreen && g.detail >= 2 && a();
|
|
927
931
|
}
|
|
928
932
|
function te() {
|
|
@@ -933,7 +937,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
933
937
|
type: "primary",
|
|
934
938
|
class: "dialog__footerBtn",
|
|
935
939
|
onClick: () => {
|
|
936
|
-
|
|
940
|
+
R("confirm"), R("ok");
|
|
937
941
|
}
|
|
938
942
|
},
|
|
939
943
|
() => $(e.confirmProps).title || "确 认"
|
|
@@ -953,42 +957,42 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
953
957
|
var m;
|
|
954
958
|
const g = Array.from(
|
|
955
959
|
document.querySelectorAll(".el-overlay")
|
|
956
|
-
).filter((Y) => window.getComputedStyle(Y).display !== "none" && !Y.classList.contains("is-message")), B = (m = document.querySelector(`.${J}`)) == null ? void 0 : m.closest(".el-overlay"),
|
|
960
|
+
).filter((Y) => window.getComputedStyle(Y).display !== "none" && !Y.classList.contains("is-message")), B = (m = document.querySelector(`.${J}`)) == null ? void 0 : m.closest(".el-overlay"), ie = document.querySelector(
|
|
957
961
|
`.${J}.el-dialog`
|
|
958
962
|
);
|
|
959
|
-
if (!B || !
|
|
963
|
+
if (!B || !ie) return;
|
|
960
964
|
const me = He;
|
|
961
965
|
window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || me;
|
|
962
|
-
const
|
|
966
|
+
const Qe = Math.max(
|
|
963
967
|
window.qyDialogMaxZIndex,
|
|
964
968
|
...g.map(
|
|
965
969
|
(Y) => parseInt(window.getComputedStyle(Y).zIndex || me.toString())
|
|
966
970
|
)
|
|
967
971
|
) + 2;
|
|
968
|
-
window.qyDialogMaxZIndex =
|
|
969
|
-
B.style.zIndex =
|
|
972
|
+
window.qyDialogMaxZIndex = Qe, Oe(() => {
|
|
973
|
+
B.style.zIndex = Qe.toString(), ie.style.zIndex = (Qe + 1).toString(), y.value = Qe + 1;
|
|
970
974
|
});
|
|
971
975
|
}
|
|
972
976
|
yt(() => {
|
|
973
977
|
var g;
|
|
974
|
-
(g = f.value) == null || g.removeEventListener("scroll",
|
|
978
|
+
(g = f.value) == null || g.removeEventListener("scroll", w), X.value && window.minimizedCount--;
|
|
975
979
|
});
|
|
976
980
|
function C() {
|
|
977
981
|
var B;
|
|
978
982
|
X.value = !X.value;
|
|
979
983
|
const g = (B = document.querySelector(`.${J}`)) == null ? void 0 : B.closest(".el-overlay");
|
|
980
|
-
g && (X.value ? (g.style.display = "none", window.minimizedCount++,
|
|
984
|
+
g && (X.value ? (g.style.display = "none", window.minimizedCount++, re.value = window.innerHeight - 50 - (window.minimizedCount || 0) * 60) : (g.style.display = "block", window.minimizedCount--, p()));
|
|
981
985
|
}
|
|
982
986
|
return (g, B) => {
|
|
983
|
-
const
|
|
987
|
+
const ie = ct, me = dt;
|
|
984
988
|
return v(), A("div", null, [
|
|
985
|
-
O(me,
|
|
989
|
+
O(me, xe({
|
|
986
990
|
ref: "dialogRef",
|
|
987
991
|
class: ["qy-dialog", [
|
|
988
992
|
e.size === "small" && "[&_.el-dialog__header]:!hidden",
|
|
989
993
|
J
|
|
990
994
|
]],
|
|
991
|
-
"model-value":
|
|
995
|
+
"model-value": L.value,
|
|
992
996
|
"align-center": "",
|
|
993
997
|
"append-to-body": "",
|
|
994
998
|
style: {
|
|
@@ -1010,14 +1014,14 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1010
1014
|
transition: "border-color .2s linear"
|
|
1011
1015
|
}),
|
|
1012
1016
|
class: "flex justify-between h-[var(--header-height)]",
|
|
1013
|
-
onDblclick:
|
|
1017
|
+
onDblclick: U
|
|
1014
1018
|
}, [
|
|
1015
|
-
|
|
1016
|
-
$(n).header ? $(n).header ? (v(), A("div",
|
|
1017
|
-
|
|
1018
|
-
])) : P("", !0) : (v(), A("span",
|
|
1019
|
+
T("div", gl, [
|
|
1020
|
+
$(n).header ? $(n).header ? (v(), A("div", hl, [
|
|
1021
|
+
z(g.$slots, "header")
|
|
1022
|
+
])) : P("", !0) : (v(), A("span", vl, pe($(ae).title), 1))
|
|
1019
1023
|
]),
|
|
1020
|
-
|
|
1024
|
+
T("div", {
|
|
1021
1025
|
class: "flex",
|
|
1022
1026
|
onMousedown: B[3] || (B[3] = ue(() => {
|
|
1023
1027
|
}, ["stop"]))
|
|
@@ -1029,7 +1033,7 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1029
1033
|
onMousedown: B[0] || (B[0] = ue(() => {
|
|
1030
1034
|
}, ["stop"]))
|
|
1031
1035
|
}, [...B[4] || (B[4] = [
|
|
1032
|
-
|
|
1036
|
+
T("span", {
|
|
1033
1037
|
class: "icon-[material-symbols--minimize] text-xl mb-3",
|
|
1034
1038
|
role: "img",
|
|
1035
1039
|
"aria-hidden": "true"
|
|
@@ -1042,15 +1046,15 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1042
1046
|
onMousedown: B[1] || (B[1] = ue(() => {
|
|
1043
1047
|
}, ["stop"]))
|
|
1044
1048
|
}, [
|
|
1045
|
-
G.value ? (v(), A("span",
|
|
1049
|
+
G.value ? (v(), A("span", wl)) : (v(), A("span", bl))
|
|
1046
1050
|
], 32)) : P("", !0),
|
|
1047
|
-
|
|
1051
|
+
T("div", {
|
|
1048
1052
|
class: "qy-dialog__btn qy-dialog__btn--danger",
|
|
1049
1053
|
onClick: ue(l, ["stop"]),
|
|
1050
1054
|
onMousedown: B[2] || (B[2] = ue(() => {
|
|
1051
1055
|
}, ["stop"]))
|
|
1052
1056
|
}, [...B[5] || (B[5] = [
|
|
1053
|
-
|
|
1057
|
+
T("span", {
|
|
1054
1058
|
class: "icon-[ri--close-line] text-xl",
|
|
1055
1059
|
role: "img",
|
|
1056
1060
|
"aria-hidden": "true"
|
|
@@ -1060,26 +1064,26 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1060
1064
|
], 36)) : P("", !0)
|
|
1061
1065
|
]),
|
|
1062
1066
|
default: h(() => [
|
|
1063
|
-
|
|
1064
|
-
class: ke(["qy-dialog__wrapper", $(
|
|
1067
|
+
T("div", {
|
|
1068
|
+
class: ke(["qy-dialog__wrapper", $(no)(G.value && "qy-dialog__wrapper--fullscreen")]),
|
|
1065
1069
|
style: Pe({
|
|
1066
1070
|
maxHeight: M.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
|
|
1067
1071
|
padding: e.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
|
|
1068
1072
|
})
|
|
1069
1073
|
}, [
|
|
1070
|
-
e.size === "small" ? (v(), A("div",
|
|
1071
|
-
O(
|
|
1074
|
+
e.size === "small" ? (v(), A("div", Sl, [
|
|
1075
|
+
O(ie, {
|
|
1072
1076
|
size: 36,
|
|
1073
1077
|
class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
|
|
1074
1078
|
onClick: l
|
|
1075
1079
|
}, {
|
|
1076
1080
|
default: h(() => [
|
|
1077
|
-
O($(
|
|
1081
|
+
O($(Za))
|
|
1078
1082
|
]),
|
|
1079
1083
|
_: 1
|
|
1080
1084
|
})
|
|
1081
1085
|
])) : P("", !0),
|
|
1082
|
-
|
|
1086
|
+
z(g.$slots, "default")
|
|
1083
1087
|
], 6)
|
|
1084
1088
|
]),
|
|
1085
1089
|
_: 2
|
|
@@ -1087,18 +1091,18 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1087
1091
|
!g.$slots.footer && Array.isArray(_.value) ? {
|
|
1088
1092
|
name: "footer",
|
|
1089
1093
|
fn: h(() => [
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1094
|
+
T("div", kl, [
|
|
1095
|
+
T("div", null, [
|
|
1096
|
+
z(g.$slots, "footer-left")
|
|
1093
1097
|
]),
|
|
1094
|
-
|
|
1098
|
+
T("div", {
|
|
1095
1099
|
class: ke([{
|
|
1096
1100
|
"qy-dialog__footer--outline": d.value
|
|
1097
1101
|
}, "qy-dialog__footer flex items-center justify-end"])
|
|
1098
1102
|
}, [
|
|
1099
1103
|
_.value.includes("cancel") ? (v(), ce(s, { key: 0 })) : P("", !0),
|
|
1100
1104
|
_.value.includes("confirm") ? (v(), ce(te, { key: 1 })) : P("", !0),
|
|
1101
|
-
|
|
1105
|
+
z(g.$slots, "footer-append")
|
|
1102
1106
|
], 2)
|
|
1103
1107
|
])
|
|
1104
1108
|
]),
|
|
@@ -1106,12 +1110,12 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1106
1110
|
} : M.value ? {
|
|
1107
1111
|
name: "footer",
|
|
1108
1112
|
fn: h(() => [
|
|
1109
|
-
|
|
1113
|
+
T("div", {
|
|
1110
1114
|
class: ke([{
|
|
1111
1115
|
"qy-dialog__footer--outline": d.value
|
|
1112
1116
|
}, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
|
|
1113
1117
|
}, [
|
|
1114
|
-
|
|
1118
|
+
z(g.$slots, "footer", {
|
|
1115
1119
|
layouts: E.value,
|
|
1116
1120
|
layoutsNode: Object.values(E.value)
|
|
1117
1121
|
})
|
|
@@ -1120,29 +1124,29 @@ const tl = { class: "qy-upload__hint" }, al = ["placeholder", "disabled"], ol =
|
|
|
1120
1124
|
key: "1"
|
|
1121
1125
|
} : void 0
|
|
1122
1126
|
]), 1040, ["class", "model-value", "fullscreen", "z-index"]),
|
|
1123
|
-
Ye(
|
|
1127
|
+
Ye(T("div", {
|
|
1124
1128
|
ref_key: "minimizedRef",
|
|
1125
1129
|
ref: le,
|
|
1126
1130
|
class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
|
|
1127
1131
|
style: Pe([Z.value, { width: "300px", height: "50px", "will-change": "transform" }])
|
|
1128
1132
|
}, [
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
B[6] || (B[6] =
|
|
1132
|
-
|
|
1133
|
+
T("div", Ql, [
|
|
1134
|
+
T("div", xl, [
|
|
1135
|
+
B[6] || (B[6] = T("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
|
|
1136
|
+
T("span", $l, pe($(ae).title), 1)
|
|
1133
1137
|
]),
|
|
1134
|
-
|
|
1135
|
-
|
|
1138
|
+
T("div", Cl, [
|
|
1139
|
+
T("div", {
|
|
1136
1140
|
class: "p-1 hover:bg-gray-200 rounded",
|
|
1137
1141
|
onClick: ue(C, ["stop"])
|
|
1138
1142
|
}, [...B[7] || (B[7] = [
|
|
1139
|
-
|
|
1143
|
+
T("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
|
|
1140
1144
|
])]),
|
|
1141
|
-
|
|
1145
|
+
T("div", {
|
|
1142
1146
|
class: "p-1 hover:bg-red-100 rounded",
|
|
1143
1147
|
onClick: ue(l, ["stop"])
|
|
1144
1148
|
}, [...B[8] || (B[8] = [
|
|
1145
|
-
|
|
1149
|
+
T("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
|
|
1146
1150
|
])])
|
|
1147
1151
|
])
|
|
1148
1152
|
])
|
|
@@ -1163,32 +1167,32 @@ function st(t) {
|
|
|
1163
1167
|
text: t || ""
|
|
1164
1168
|
};
|
|
1165
1169
|
}
|
|
1166
|
-
function
|
|
1170
|
+
function Vl(t) {
|
|
1167
1171
|
const D = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
|
|
1168
1172
|
return D ? D[2] : t;
|
|
1169
1173
|
}
|
|
1170
1174
|
function ut(t, D) {
|
|
1171
1175
|
return D ? `[url:${D}]${t}` : t;
|
|
1172
1176
|
}
|
|
1173
|
-
const
|
|
1177
|
+
const ql = { class: "qy-remark-image__field" }, Bl = {
|
|
1174
1178
|
key: 1,
|
|
1175
1179
|
class: "qy-remark-image__divider"
|
|
1176
|
-
},
|
|
1180
|
+
}, Al = { class: "qy-remark-image__upload-anchor" }, Il = {
|
|
1177
1181
|
key: 0,
|
|
1178
1182
|
class: "icon-[line-md--loading-twotone-loop]",
|
|
1179
1183
|
role: "img",
|
|
1180
1184
|
"aria-hidden": "true"
|
|
1181
|
-
},
|
|
1185
|
+
}, Rl = {
|
|
1182
1186
|
key: 1,
|
|
1183
1187
|
class: "icon-[ion--cloud-upload-outline]",
|
|
1184
1188
|
role: "img",
|
|
1185
1189
|
"aria-hidden": "true"
|
|
1186
|
-
},
|
|
1190
|
+
}, Tl = {
|
|
1187
1191
|
key: 2,
|
|
1188
1192
|
class: "icon-[ph--images-thin]",
|
|
1189
1193
|
role: "img",
|
|
1190
1194
|
"aria-hidden": "true"
|
|
1191
|
-
},
|
|
1195
|
+
}, zl = { class: "qy-remark-image__popover" }, Fl = ["src"], Pl = { class: "qy-remark-image__popover-footer" }, Dl = /* @__PURE__ */ qe({
|
|
1192
1196
|
__name: "index",
|
|
1193
1197
|
props: {
|
|
1194
1198
|
defaultValue: { default: "" },
|
|
@@ -1210,12 +1214,12 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1210
1214
|
},
|
|
1211
1215
|
emits: ["change", "update:selectValue", "select-change"],
|
|
1212
1216
|
setup(t, { expose: D, emit: W }) {
|
|
1213
|
-
const e = t, n = W, H = Be(), d = q(null), y = q(""), f = q(""), I = q(!1),
|
|
1217
|
+
const e = t, n = W, H = Be(), d = q(null), y = q(""), f = q(""), I = q(!1), x = F(
|
|
1214
1218
|
() => e.layout === "select-prefix"
|
|
1215
1219
|
), _ = F(() => ({
|
|
1216
|
-
"qy-remark-image--select-prefix":
|
|
1220
|
+
"qy-remark-image--select-prefix": x.value
|
|
1217
1221
|
})), E = F(
|
|
1218
|
-
() =>
|
|
1222
|
+
() => x.value || e.type === "text" ? "text" : "textarea"
|
|
1219
1223
|
), M = F(() => {
|
|
1220
1224
|
if (e.width)
|
|
1221
1225
|
return {
|
|
@@ -1224,36 +1228,36 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1224
1228
|
});
|
|
1225
1229
|
fe(
|
|
1226
1230
|
() => e.defaultValue,
|
|
1227
|
-
(
|
|
1228
|
-
const V = st(
|
|
1231
|
+
(w) => {
|
|
1232
|
+
const V = st(w || "");
|
|
1229
1233
|
y.value = V.text, f.value = V.imageUrl || e.defaultImage || "";
|
|
1230
1234
|
},
|
|
1231
1235
|
{ immediate: !0 }
|
|
1232
1236
|
), fe(
|
|
1233
1237
|
() => e.defaultImage,
|
|
1234
|
-
(
|
|
1235
|
-
|
|
1238
|
+
(w) => {
|
|
1239
|
+
w !== void 0 && !st(e.defaultValue || "").imageUrl && (f.value = w || "");
|
|
1236
1240
|
},
|
|
1237
1241
|
{ immediate: !0 }
|
|
1238
1242
|
), Xe(() => {
|
|
1239
1243
|
Oe(G);
|
|
1240
1244
|
}), yt(() => {
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1245
|
+
const w = j();
|
|
1246
|
+
w && w.removeEventListener("paste", X);
|
|
1243
1247
|
});
|
|
1244
1248
|
function j() {
|
|
1245
|
-
var
|
|
1246
|
-
return ((
|
|
1249
|
+
var w, V;
|
|
1250
|
+
return ((w = d.value) == null ? void 0 : w.textarea) || ((V = d.value) == null ? void 0 : V.input) || null;
|
|
1247
1251
|
}
|
|
1248
1252
|
function G() {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1253
|
+
const w = j();
|
|
1254
|
+
w && (w.removeEventListener("paste", X), w.addEventListener("paste", X));
|
|
1251
1255
|
}
|
|
1252
|
-
function
|
|
1253
|
-
y.value =
|
|
1256
|
+
function R(w) {
|
|
1257
|
+
y.value = Vl(w || "");
|
|
1254
1258
|
}
|
|
1255
|
-
function
|
|
1256
|
-
n("update:selectValue",
|
|
1259
|
+
function L(w) {
|
|
1260
|
+
n("update:selectValue", w), n("select-change", w);
|
|
1257
1261
|
}
|
|
1258
1262
|
function ae() {
|
|
1259
1263
|
f.value = "", Z();
|
|
@@ -1261,10 +1265,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1261
1265
|
function J() {
|
|
1262
1266
|
y.value = "", f.value = "", Z();
|
|
1263
1267
|
}
|
|
1264
|
-
async function X(
|
|
1268
|
+
async function X(w) {
|
|
1265
1269
|
var l;
|
|
1266
|
-
const a = Array.from(((l =
|
|
1267
|
-
a && (
|
|
1270
|
+
const a = Array.from(((l = w.clipboardData) == null ? void 0 : l.files) || []).find((U) => U.type.startsWith("image/"));
|
|
1271
|
+
a && (w.preventDefault(), await le({
|
|
1268
1272
|
file: a,
|
|
1269
1273
|
onError: () => {
|
|
1270
1274
|
},
|
|
@@ -1274,27 +1278,27 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1274
1278
|
}
|
|
1275
1279
|
}));
|
|
1276
1280
|
}
|
|
1277
|
-
async function le(
|
|
1281
|
+
async function le(w) {
|
|
1278
1282
|
var V, a;
|
|
1279
|
-
if (
|
|
1283
|
+
if (w.file.size > 51200 * 1e3)
|
|
1280
1284
|
return he.error("图片过大"), !1;
|
|
1281
1285
|
I.value = !0;
|
|
1282
1286
|
try {
|
|
1283
|
-
const l = await ne(
|
|
1284
|
-
return f.value =
|
|
1287
|
+
const l = await ne(w);
|
|
1288
|
+
return f.value = re(l), Z(), he.success("上传图片成功"), (V = w.onSuccess) == null || V.call(w, l), !0;
|
|
1285
1289
|
} catch (l) {
|
|
1286
|
-
return (a =
|
|
1290
|
+
return (a = w.onError) == null || a.call(w, l), he.error("上传失败"), !1;
|
|
1287
1291
|
} finally {
|
|
1288
1292
|
I.value = !1;
|
|
1289
1293
|
}
|
|
1290
1294
|
}
|
|
1291
|
-
async function ne(
|
|
1295
|
+
async function ne(w) {
|
|
1292
1296
|
const V = new FormData();
|
|
1293
|
-
if (V.append(e.uploadName,
|
|
1297
|
+
if (V.append(e.uploadName, w.file), e.uploadRequest)
|
|
1294
1298
|
return e.uploadRequest({
|
|
1295
|
-
file:
|
|
1299
|
+
file: w.file,
|
|
1296
1300
|
formData: V,
|
|
1297
|
-
options:
|
|
1301
|
+
options: w,
|
|
1298
1302
|
api: e.api,
|
|
1299
1303
|
tokenKey: e.tokenKey
|
|
1300
1304
|
});
|
|
@@ -1306,10 +1310,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1306
1310
|
headers: a ? { Authorization: `Bearer ${a}` } : void 0
|
|
1307
1311
|
})).json();
|
|
1308
1312
|
}
|
|
1309
|
-
function
|
|
1310
|
-
var l,
|
|
1311
|
-
if (typeof
|
|
1312
|
-
const V =
|
|
1313
|
+
function re(w) {
|
|
1314
|
+
var l, U;
|
|
1315
|
+
if (typeof w == "string") return w;
|
|
1316
|
+
const V = w, a = (V == null ? void 0 : V.urls) ?? ((l = V == null ? void 0 : V.data) == null ? void 0 : l.urls) ?? ((U = V == null ? void 0 : V.data) == null ? void 0 : U.url) ?? (V == null ? void 0 : V.url) ?? "";
|
|
1313
1317
|
return Array.isArray(a) ? a[0] || "" : a || "";
|
|
1314
1318
|
}
|
|
1315
1319
|
function Z() {
|
|
@@ -1329,22 +1333,22 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1329
1333
|
imageUrl: f.value || "",
|
|
1330
1334
|
value: ut(y.value || "", f.value || "")
|
|
1331
1335
|
})
|
|
1332
|
-
}), (
|
|
1336
|
+
}), (w, V) => (v(), A("div", {
|
|
1333
1337
|
class: ke(["qy-remark-image", _.value]),
|
|
1334
1338
|
style: Pe(M.value)
|
|
1335
1339
|
}, [
|
|
1336
|
-
|
|
1337
|
-
|
|
1340
|
+
T("div", ql, [
|
|
1341
|
+
x.value ? (v(), ce($(ht), {
|
|
1338
1342
|
key: 0,
|
|
1339
1343
|
class: "qy-remark-image__prefix-select",
|
|
1340
1344
|
"model-value": t.selectValue,
|
|
1341
1345
|
options: t.selectOptions,
|
|
1342
1346
|
disabled: t.disabled || t.selectDisabled,
|
|
1343
1347
|
size: "small",
|
|
1344
|
-
"onUpdate:modelValue":
|
|
1348
|
+
"onUpdate:modelValue": L
|
|
1345
1349
|
}, {
|
|
1346
1350
|
default: h(() => [
|
|
1347
|
-
(v(!0), A(
|
|
1351
|
+
(v(!0), A(ze, null, et(t.selectOptions, (a) => (v(), ce($(bt), {
|
|
1348
1352
|
key: String(a.value),
|
|
1349
1353
|
label: a.label,
|
|
1350
1354
|
value: a.value,
|
|
@@ -1353,8 +1357,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1353
1357
|
]),
|
|
1354
1358
|
_: 1
|
|
1355
1359
|
}, 8, ["model-value", "options", "disabled"])) : P("", !0),
|
|
1356
|
-
|
|
1357
|
-
O($(Me),
|
|
1360
|
+
x.value ? (v(), A("span", Bl)) : P("", !0),
|
|
1361
|
+
O($(Me), xe({
|
|
1358
1362
|
ref_key: "inputRef",
|
|
1359
1363
|
ref: d,
|
|
1360
1364
|
"model-value": y.value,
|
|
@@ -1364,38 +1368,38 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1364
1368
|
disabled: t.disabled,
|
|
1365
1369
|
placeholder: t.placeholder
|
|
1366
1370
|
}, $(H), {
|
|
1367
|
-
"onUpdate:modelValue":
|
|
1371
|
+
"onUpdate:modelValue": R,
|
|
1368
1372
|
onBlur: Z
|
|
1369
1373
|
}), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
|
|
1370
|
-
O($(
|
|
1374
|
+
O($(Ga), {
|
|
1371
1375
|
placement: "top-start",
|
|
1372
1376
|
width: 400,
|
|
1373
1377
|
trigger: "hover",
|
|
1374
1378
|
disabled: !f.value
|
|
1375
1379
|
}, {
|
|
1376
1380
|
reference: h(() => [
|
|
1377
|
-
|
|
1378
|
-
O($(
|
|
1381
|
+
T("div", Al, [
|
|
1382
|
+
O($(Ja), {
|
|
1379
1383
|
disabled: I.value || t.disabled,
|
|
1380
1384
|
class: "qy-remark-image__upload",
|
|
1381
1385
|
"show-file-list": !1,
|
|
1382
1386
|
"http-request": le
|
|
1383
1387
|
}, {
|
|
1384
1388
|
default: h(() => [
|
|
1385
|
-
I.value ? (v(), A("span",
|
|
1389
|
+
I.value ? (v(), A("span", Il)) : f.value ? (v(), A("span", Tl)) : (v(), A("span", Rl))
|
|
1386
1390
|
]),
|
|
1387
1391
|
_: 1
|
|
1388
1392
|
}, 8, ["disabled"])
|
|
1389
1393
|
])
|
|
1390
1394
|
]),
|
|
1391
1395
|
default: h(() => [
|
|
1392
|
-
|
|
1393
|
-
|
|
1396
|
+
T("div", zl, [
|
|
1397
|
+
T("img", {
|
|
1394
1398
|
src: f.value,
|
|
1395
1399
|
class: "qy-remark-image__preview-img"
|
|
1396
|
-
}, null, 8,
|
|
1397
|
-
|
|
1398
|
-
V[1] || (V[1] =
|
|
1400
|
+
}, null, 8, Fl),
|
|
1401
|
+
T("div", Pl, [
|
|
1402
|
+
V[1] || (V[1] = T("span", { class: "qy-remark-image__popover-tip" }, "再次点击按钮可更换图片", -1)),
|
|
1399
1403
|
O($(Ve), {
|
|
1400
1404
|
link: "",
|
|
1401
1405
|
size: "small",
|
|
@@ -1416,7 +1420,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1416
1420
|
])
|
|
1417
1421
|
], 6));
|
|
1418
1422
|
}
|
|
1419
|
-
}),
|
|
1423
|
+
}), Ml = /* @__PURE__ */ Re(Dl, [["__scopeId", "data-v-3158c066"]]), Ol = /* @__PURE__ */ qe({
|
|
1420
1424
|
name: "QyMoneyInput",
|
|
1421
1425
|
inheritAttrs: !1,
|
|
1422
1426
|
__name: "index",
|
|
@@ -1441,30 +1445,30 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1441
1445
|
function I(a) {
|
|
1442
1446
|
return a == null ? "" : String(a);
|
|
1443
1447
|
}
|
|
1444
|
-
function
|
|
1448
|
+
function x(a) {
|
|
1445
1449
|
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 2;
|
|
1446
1450
|
}
|
|
1447
1451
|
function _(a) {
|
|
1448
1452
|
const l = I(a);
|
|
1449
|
-
let
|
|
1450
|
-
const p =
|
|
1453
|
+
let U = "", te = !1, s = !1;
|
|
1454
|
+
const p = x(e.precision);
|
|
1451
1455
|
for (let C = 0; C < l.length; C += 1) {
|
|
1452
1456
|
const g = l[C];
|
|
1453
1457
|
if (g >= "0" && g <= "9") {
|
|
1454
|
-
|
|
1458
|
+
U += g;
|
|
1455
1459
|
continue;
|
|
1456
1460
|
}
|
|
1457
1461
|
if (g === "." && p > 0 && !te) {
|
|
1458
|
-
|
|
1462
|
+
U += g, te = !0;
|
|
1459
1463
|
continue;
|
|
1460
1464
|
}
|
|
1461
|
-
g === "-" && e.allowNegative && C === 0 && !s && (
|
|
1465
|
+
g === "-" && e.allowNegative && C === 0 && !s && (U += g, s = !0);
|
|
1462
1466
|
}
|
|
1463
1467
|
if (p > 0 && te) {
|
|
1464
|
-
const [C, g = ""] =
|
|
1468
|
+
const [C, g = ""] = U.split(".");
|
|
1465
1469
|
return `${C}.${g.slice(0, p)}`;
|
|
1466
1470
|
}
|
|
1467
|
-
return
|
|
1471
|
+
return U;
|
|
1468
1472
|
}
|
|
1469
1473
|
function E(a) {
|
|
1470
1474
|
let l = a;
|
|
@@ -1474,10 +1478,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1474
1478
|
const l = _(a);
|
|
1475
1479
|
if (!l || l === "-" || l === ".")
|
|
1476
1480
|
return I(e.emptyValue);
|
|
1477
|
-
const
|
|
1478
|
-
if (Number.isNaN(
|
|
1479
|
-
const te =
|
|
1480
|
-
return E(
|
|
1481
|
+
const U = Number(l);
|
|
1482
|
+
if (Number.isNaN(U)) return I(e.emptyValue);
|
|
1483
|
+
const te = x(e.precision);
|
|
1484
|
+
return E(U).toFixed(te);
|
|
1481
1485
|
}
|
|
1482
1486
|
function j(a) {
|
|
1483
1487
|
y.value = a, n("update:modelValue", a);
|
|
@@ -1486,11 +1490,11 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1486
1490
|
const l = _(a);
|
|
1487
1491
|
j(l);
|
|
1488
1492
|
}
|
|
1489
|
-
function
|
|
1493
|
+
function R(a) {
|
|
1490
1494
|
const l = _(a);
|
|
1491
1495
|
y.value = l, n("input", l);
|
|
1492
1496
|
}
|
|
1493
|
-
function
|
|
1497
|
+
function L(a) {
|
|
1494
1498
|
const l = e.formatTrigger === "change" ? M(a) : _(a);
|
|
1495
1499
|
l !== I(e.modelValue) && j(l), n("change", l);
|
|
1496
1500
|
}
|
|
@@ -1515,7 +1519,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1515
1519
|
var a, l;
|
|
1516
1520
|
(l = (a = d.value) == null ? void 0 : a.focus) == null || l.call(a);
|
|
1517
1521
|
}
|
|
1518
|
-
function
|
|
1522
|
+
function re() {
|
|
1519
1523
|
var a, l;
|
|
1520
1524
|
(l = (a = d.value) == null ? void 0 : a.blur) == null || l.call(a);
|
|
1521
1525
|
}
|
|
@@ -1523,7 +1527,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1523
1527
|
var a, l;
|
|
1524
1528
|
(l = (a = d.value) == null ? void 0 : a.select) == null || l.call(a);
|
|
1525
1529
|
}
|
|
1526
|
-
function
|
|
1530
|
+
function w() {
|
|
1527
1531
|
var a, l;
|
|
1528
1532
|
(l = (a = d.value) == null ? void 0 : a.clear) == null || l.call(a);
|
|
1529
1533
|
}
|
|
@@ -1533,19 +1537,19 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1533
1537
|
}
|
|
1534
1538
|
return D({
|
|
1535
1539
|
focus: ne,
|
|
1536
|
-
blur:
|
|
1540
|
+
blur: re,
|
|
1537
1541
|
select: Z,
|
|
1538
|
-
clear:
|
|
1542
|
+
clear: w,
|
|
1539
1543
|
getNativeInput: V
|
|
1540
|
-
}), (a, l) => (v(), ce($(Me),
|
|
1544
|
+
}), (a, l) => (v(), ce($(Me), xe({
|
|
1541
1545
|
ref_key: "inputRef",
|
|
1542
1546
|
ref: d
|
|
1543
1547
|
}, $(H), {
|
|
1544
1548
|
"model-value": f.value,
|
|
1545
1549
|
inputmode: "decimal",
|
|
1546
1550
|
"onUpdate:modelValue": G,
|
|
1547
|
-
onInput:
|
|
1548
|
-
onChange:
|
|
1551
|
+
onInput: R,
|
|
1552
|
+
onChange: L,
|
|
1549
1553
|
onFocus: ae,
|
|
1550
1554
|
onBlur: J,
|
|
1551
1555
|
onClear: X,
|
|
@@ -1554,34 +1558,34 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1554
1558
|
a.$slots.prefix ? {
|
|
1555
1559
|
name: "prefix",
|
|
1556
1560
|
fn: h(() => [
|
|
1557
|
-
|
|
1561
|
+
z(a.$slots, "prefix")
|
|
1558
1562
|
]),
|
|
1559
1563
|
key: "0"
|
|
1560
1564
|
} : void 0,
|
|
1561
1565
|
a.$slots.suffix ? {
|
|
1562
1566
|
name: "suffix",
|
|
1563
1567
|
fn: h(() => [
|
|
1564
|
-
|
|
1568
|
+
z(a.$slots, "suffix")
|
|
1565
1569
|
]),
|
|
1566
1570
|
key: "1"
|
|
1567
1571
|
} : void 0,
|
|
1568
1572
|
a.$slots.prepend ? {
|
|
1569
1573
|
name: "prepend",
|
|
1570
1574
|
fn: h(() => [
|
|
1571
|
-
|
|
1575
|
+
z(a.$slots, "prepend")
|
|
1572
1576
|
]),
|
|
1573
1577
|
key: "2"
|
|
1574
1578
|
} : void 0,
|
|
1575
1579
|
a.$slots.append ? {
|
|
1576
1580
|
name: "append",
|
|
1577
1581
|
fn: h(() => [
|
|
1578
|
-
|
|
1582
|
+
z(a.$slots, "append")
|
|
1579
1583
|
]),
|
|
1580
1584
|
key: "3"
|
|
1581
1585
|
} : void 0
|
|
1582
1586
|
]), 1040, ["model-value"]));
|
|
1583
1587
|
}
|
|
1584
|
-
}),
|
|
1588
|
+
}), _l = /* @__PURE__ */ qe({
|
|
1585
1589
|
name: "QyRemoteSelect",
|
|
1586
1590
|
inheritAttrs: !1,
|
|
1587
1591
|
__name: "index",
|
|
@@ -1615,14 +1619,14 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1615
1619
|
},
|
|
1616
1620
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
|
|
1617
1621
|
setup(t, { expose: D, emit: W }) {
|
|
1618
|
-
const e = t, n = W, H = Be(), d = q(null), y = q([]), f = q(/* @__PURE__ */ new Map()), I = q(!1),
|
|
1622
|
+
const e = t, n = W, H = Be(), d = q(null), y = q([]), f = q(/* @__PURE__ */ new Map()), I = q(!1), x = q(""), _ = q("");
|
|
1619
1623
|
let E = 0, M = null;
|
|
1620
|
-
const j = F(() => e.loading || I.value), G = q(!1),
|
|
1621
|
-
if (
|
|
1622
|
-
const m = /* @__PURE__ */ new Map(), Y = (
|
|
1623
|
-
m.set(ae(
|
|
1624
|
+
const j = F(() => e.loading || I.value), G = q(!1), R = F(() => x.value !== ""), L = F(() => {
|
|
1625
|
+
if (R.value) return y.value;
|
|
1626
|
+
const m = /* @__PURE__ */ new Map(), Y = (r) => {
|
|
1627
|
+
m.set(ae(r), r);
|
|
1624
1628
|
};
|
|
1625
|
-
return e.defaultOptions.forEach(Y), e.reserveSelectedOption && f.value.forEach((
|
|
1629
|
+
return e.defaultOptions.forEach(Y), e.reserveSelectedOption && f.value.forEach((r) => Y(r)), y.value.forEach(Y), Array.from(m.values());
|
|
1626
1630
|
});
|
|
1627
1631
|
fe(
|
|
1628
1632
|
() => e.defaultOptions,
|
|
@@ -1633,7 +1637,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1633
1637
|
), fe(
|
|
1634
1638
|
() => e.modelValue,
|
|
1635
1639
|
() => {
|
|
1636
|
-
|
|
1640
|
+
L.value.forEach(X);
|
|
1637
1641
|
},
|
|
1638
1642
|
{ immediate: !0 }
|
|
1639
1643
|
);
|
|
@@ -1654,53 +1658,53 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1654
1658
|
function ne(m) {
|
|
1655
1659
|
I.value !== m && (I.value = m, n("loading-change", m));
|
|
1656
1660
|
}
|
|
1657
|
-
async function
|
|
1658
|
-
const Y = B(m),
|
|
1659
|
-
if (
|
|
1660
|
-
y.value = [], ne(!1), n("options-change",
|
|
1661
|
+
async function re(m) {
|
|
1662
|
+
const Y = B(m), r = ++E;
|
|
1663
|
+
if (ie(Y), !le(Y)) {
|
|
1664
|
+
y.value = [], ne(!1), n("options-change", L.value);
|
|
1661
1665
|
return;
|
|
1662
1666
|
}
|
|
1663
1667
|
ne(!0);
|
|
1664
1668
|
try {
|
|
1665
|
-
const
|
|
1666
|
-
if (
|
|
1667
|
-
y.value = Array.isArray(
|
|
1668
|
-
} catch (
|
|
1669
|
-
if (
|
|
1670
|
-
y.value = [], n("error",
|
|
1669
|
+
const S = await e.fetchMethod(Y);
|
|
1670
|
+
if (r !== E) return;
|
|
1671
|
+
y.value = Array.isArray(S) ? S : [], y.value.forEach(X), n("options-change", L.value);
|
|
1672
|
+
} catch (S) {
|
|
1673
|
+
if (r !== E) return;
|
|
1674
|
+
y.value = [], n("error", S), n("options-change", L.value);
|
|
1671
1675
|
} finally {
|
|
1672
|
-
|
|
1676
|
+
r === E && ne(!1);
|
|
1673
1677
|
}
|
|
1674
1678
|
}
|
|
1675
1679
|
function Z() {
|
|
1676
|
-
G.value || (G.value = !0,
|
|
1680
|
+
G.value || (G.value = !0, re(""));
|
|
1677
1681
|
}
|
|
1678
|
-
function
|
|
1682
|
+
function w(m) {
|
|
1679
1683
|
const Y = B(m);
|
|
1680
|
-
_.value = Y, E += 1,
|
|
1681
|
-
|
|
1684
|
+
_.value = Y, E += 1, ie(Y), M && (clearTimeout(M), M = null), M = setTimeout(() => {
|
|
1685
|
+
re(Y);
|
|
1682
1686
|
}, e.debounce);
|
|
1683
1687
|
}
|
|
1684
1688
|
function V() {
|
|
1685
|
-
G.value = !0,
|
|
1689
|
+
G.value = !0, re("");
|
|
1686
1690
|
}
|
|
1687
1691
|
function a() {
|
|
1688
|
-
|
|
1692
|
+
re(x.value);
|
|
1689
1693
|
}
|
|
1690
1694
|
function l(m) {
|
|
1691
1695
|
_.value = "", n("update:modelValue", m);
|
|
1692
1696
|
}
|
|
1693
|
-
function
|
|
1694
|
-
_.value = "",
|
|
1697
|
+
function U(m) {
|
|
1698
|
+
_.value = "", L.value.forEach(X), n("change", m);
|
|
1695
1699
|
}
|
|
1696
1700
|
function te() {
|
|
1697
1701
|
_.value = "", n("clear");
|
|
1698
1702
|
}
|
|
1699
1703
|
function s(m) {
|
|
1700
|
-
m && e.remoteOnFocus && !
|
|
1704
|
+
m && e.remoteOnFocus && !x.value && Z(), n("visible-change", m);
|
|
1701
1705
|
}
|
|
1702
1706
|
function p(m) {
|
|
1703
|
-
e.remoteOnFocus && !
|
|
1707
|
+
e.remoteOnFocus && !x.value && Z(), n("focus", m);
|
|
1704
1708
|
}
|
|
1705
1709
|
function C(m) {
|
|
1706
1710
|
g(), n("blur", m);
|
|
@@ -1713,8 +1717,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1713
1717
|
function B(m) {
|
|
1714
1718
|
return String(m ?? "");
|
|
1715
1719
|
}
|
|
1716
|
-
function
|
|
1717
|
-
|
|
1720
|
+
function ie(m) {
|
|
1721
|
+
x.value = m, y.value = [], n("options-change", L.value);
|
|
1718
1722
|
}
|
|
1719
1723
|
function me() {
|
|
1720
1724
|
var m, Y;
|
|
@@ -1724,7 +1728,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1724
1728
|
var m, Y;
|
|
1725
1729
|
(Y = (m = d.value) == null ? void 0 : m.blur) == null || Y.call(m);
|
|
1726
1730
|
}
|
|
1727
|
-
function
|
|
1731
|
+
function Qe() {
|
|
1728
1732
|
n("update:modelValue", e.multiple ? [] : ""), n("clear");
|
|
1729
1733
|
}
|
|
1730
1734
|
return ft(() => {
|
|
@@ -1733,15 +1737,15 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1733
1737
|
// 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
|
|
1734
1738
|
focus: me,
|
|
1735
1739
|
blur: we,
|
|
1736
|
-
clear:
|
|
1740
|
+
clear: Qe,
|
|
1737
1741
|
retryFetch: a,
|
|
1738
1742
|
fetchDefaultOptions: V
|
|
1739
|
-
}), (m, Y) => (v(), ce(tt,
|
|
1743
|
+
}), (m, Y) => (v(), ce(tt, xe({
|
|
1740
1744
|
ref_key: "selectRef",
|
|
1741
1745
|
ref: d
|
|
1742
1746
|
}, $(H), {
|
|
1743
1747
|
"model-value": t.modelValue,
|
|
1744
|
-
options:
|
|
1748
|
+
options: L.value,
|
|
1745
1749
|
"label-key": t.labelKey,
|
|
1746
1750
|
"value-key": t.valueKey,
|
|
1747
1751
|
"disabled-key": t.disabledKey,
|
|
@@ -1761,54 +1765,54 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1761
1765
|
remote: "",
|
|
1762
1766
|
debounce: 0,
|
|
1763
1767
|
"remote-show-suffix": t.remoteShowSuffix,
|
|
1764
|
-
"remote-method":
|
|
1768
|
+
"remote-method": w,
|
|
1765
1769
|
loading: j.value,
|
|
1766
1770
|
"onUpdate:modelValue": l,
|
|
1767
|
-
onChange:
|
|
1771
|
+
onChange: U,
|
|
1768
1772
|
onClear: te,
|
|
1769
1773
|
onVisibleChange: s,
|
|
1770
1774
|
onFocus: p,
|
|
1771
1775
|
onBlur: C
|
|
1772
1776
|
}), _e({
|
|
1773
1777
|
default: h(() => [
|
|
1774
|
-
m.$slots.default ?
|
|
1778
|
+
m.$slots.default ? z(m.$slots, "default", {}, void 0, void 0, 0) : P("", !0)
|
|
1775
1779
|
]),
|
|
1776
1780
|
_: 2
|
|
1777
1781
|
}, [
|
|
1778
1782
|
m.$slots.prefix ? {
|
|
1779
1783
|
name: "prefix",
|
|
1780
1784
|
fn: h(() => [
|
|
1781
|
-
|
|
1785
|
+
z(m.$slots, "prefix")
|
|
1782
1786
|
]),
|
|
1783
1787
|
key: "0"
|
|
1784
1788
|
} : void 0,
|
|
1785
1789
|
m.$slots.empty ? {
|
|
1786
1790
|
name: "empty",
|
|
1787
1791
|
fn: h(() => [
|
|
1788
|
-
|
|
1792
|
+
z(m.$slots, "empty")
|
|
1789
1793
|
]),
|
|
1790
1794
|
key: "1"
|
|
1791
1795
|
} : void 0,
|
|
1792
1796
|
m.$slots.loading ? {
|
|
1793
1797
|
name: "loading",
|
|
1794
1798
|
fn: h(() => [
|
|
1795
|
-
|
|
1799
|
+
z(m.$slots, "loading")
|
|
1796
1800
|
]),
|
|
1797
1801
|
key: "2"
|
|
1798
1802
|
} : void 0,
|
|
1799
1803
|
m.$slots.tag ? {
|
|
1800
1804
|
name: "tag",
|
|
1801
|
-
fn: h((
|
|
1802
|
-
|
|
1805
|
+
fn: h((r) => [
|
|
1806
|
+
z(m.$slots, "tag", gt(vt(r)))
|
|
1803
1807
|
]),
|
|
1804
1808
|
key: "3"
|
|
1805
1809
|
} : void 0
|
|
1806
1810
|
]), 1040, ["model-value", "options", "label-key", "value-key", "disabled-key", "placeholder", "disabled", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "auto-select-single", "size", "teleported", "append-to", "fit-input-width", "popper-class", "remote-show-suffix", "loading"]));
|
|
1807
1811
|
}
|
|
1808
|
-
}),
|
|
1812
|
+
}), Ll = { class: "qy-search-input__item" }, Ul = ["innerHTML"], Kl = {
|
|
1809
1813
|
key: 0,
|
|
1810
1814
|
class: "qy-search-input__item-description"
|
|
1811
|
-
},
|
|
1815
|
+
}, El = /* @__PURE__ */ qe({
|
|
1812
1816
|
name: "QySearchInput",
|
|
1813
1817
|
inheritAttrs: !1,
|
|
1814
1818
|
__name: "index",
|
|
@@ -1841,230 +1845,230 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
1841
1845
|
setup(t, { expose: D, emit: W }) {
|
|
1842
1846
|
const e = t, n = W, H = Be(), d = q(null), y = q(E(e.modelValue)), f = F(() => E(e.modelValue)), I = F(
|
|
1843
1847
|
() => ["qy-search-input__popper", e.popperClass].filter(Boolean).join(" ")
|
|
1844
|
-
),
|
|
1848
|
+
), x = F(() => E(e.modelValue)), _ = q("");
|
|
1845
1849
|
fe(
|
|
1846
1850
|
() => e.modelValue,
|
|
1847
|
-
(
|
|
1848
|
-
y.value = E(
|
|
1851
|
+
(r) => {
|
|
1852
|
+
y.value = E(r);
|
|
1849
1853
|
}
|
|
1850
1854
|
);
|
|
1851
|
-
function E(
|
|
1852
|
-
return
|
|
1855
|
+
function E(r) {
|
|
1856
|
+
return r == null ? "" : String(r);
|
|
1853
1857
|
}
|
|
1854
|
-
function M(
|
|
1855
|
-
return e.removeSpace ?
|
|
1858
|
+
function M(r) {
|
|
1859
|
+
return e.removeSpace ? r.replace(/\s+/g, "") : r;
|
|
1856
1860
|
}
|
|
1857
|
-
function j(
|
|
1858
|
-
return e.trimMode !==
|
|
1861
|
+
function j(r, S) {
|
|
1862
|
+
return e.trimMode !== S ? r : r.trim();
|
|
1859
1863
|
}
|
|
1860
|
-
function G(
|
|
1861
|
-
return M(E(
|
|
1864
|
+
function G(r) {
|
|
1865
|
+
return M(E(r));
|
|
1862
1866
|
}
|
|
1863
|
-
function
|
|
1864
|
-
y.value =
|
|
1867
|
+
function R(r) {
|
|
1868
|
+
y.value = r, n("update:modelValue", r);
|
|
1865
1869
|
}
|
|
1866
|
-
function
|
|
1870
|
+
function L(r, S = "") {
|
|
1867
1871
|
return {
|
|
1868
|
-
...
|
|
1869
|
-
label:
|
|
1870
|
-
value:
|
|
1871
|
-
description:
|
|
1872
|
+
...r,
|
|
1873
|
+
label: r.label || r.value,
|
|
1874
|
+
value: r.value || r.label,
|
|
1875
|
+
description: r.description || S
|
|
1872
1876
|
};
|
|
1873
1877
|
}
|
|
1874
|
-
function ae(
|
|
1875
|
-
return
|
|
1876
|
-
if (Array.isArray(
|
|
1877
|
-
const ee =
|
|
1878
|
-
return ee.items.map((Se) =>
|
|
1878
|
+
function ae(r = []) {
|
|
1879
|
+
return r.flatMap((S) => {
|
|
1880
|
+
if (Array.isArray(S.items)) {
|
|
1881
|
+
const ee = S;
|
|
1882
|
+
return ee.items.map((Se) => L(Se, ee.groupLabel));
|
|
1879
1883
|
}
|
|
1880
|
-
return
|
|
1884
|
+
return L(S);
|
|
1881
1885
|
});
|
|
1882
1886
|
}
|
|
1883
|
-
function J(
|
|
1884
|
-
const
|
|
1885
|
-
return (ee) => [ee.label, ee.value, ee.description].filter(Boolean).some((Se) => String(Se).toLowerCase().includes(
|
|
1887
|
+
function J(r) {
|
|
1888
|
+
const S = r.toLowerCase();
|
|
1889
|
+
return (ee) => [ee.label, ee.value, ee.description].filter(Boolean).some((Se) => String(Se).toLowerCase().includes(S));
|
|
1886
1890
|
}
|
|
1887
|
-
function X(
|
|
1888
|
-
return
|
|
1891
|
+
function X(r) {
|
|
1892
|
+
return r ? r.length >= e.minLength : e.triggerOnFocus;
|
|
1889
1893
|
}
|
|
1890
|
-
function le(
|
|
1891
|
-
n("suggestions-change",
|
|
1894
|
+
function le(r) {
|
|
1895
|
+
n("suggestions-change", r), n("visible-change", r.length > 0);
|
|
1892
1896
|
}
|
|
1893
|
-
async function ne(
|
|
1894
|
-
if (!X(
|
|
1897
|
+
async function ne(r) {
|
|
1898
|
+
if (!X(r))
|
|
1895
1899
|
return le([]), [];
|
|
1896
1900
|
if (e.fetchSuggestionsMethod) {
|
|
1897
1901
|
const Se = await new Promise(($e) => {
|
|
1898
1902
|
var de;
|
|
1899
|
-
(de = e.fetchSuggestionsMethod) == null || de.call(e,
|
|
1903
|
+
(de = e.fetchSuggestionsMethod) == null || de.call(e, r, (De) => {
|
|
1900
1904
|
$e(ae(De));
|
|
1901
1905
|
});
|
|
1902
1906
|
});
|
|
1903
1907
|
return le(Se), Se;
|
|
1904
1908
|
}
|
|
1905
1909
|
if (e.fetchSuggestions) {
|
|
1906
|
-
const Se = await e.fetchSuggestions(
|
|
1910
|
+
const Se = await e.fetchSuggestions(r), $e = ae(Array.isArray(Se) ? Se : []);
|
|
1907
1911
|
return le($e), $e;
|
|
1908
1912
|
}
|
|
1909
|
-
const
|
|
1913
|
+
const S = ae(e.suggestions), ee = r ? S.filter(J(r)) : S;
|
|
1910
1914
|
return le(ee), ee;
|
|
1911
1915
|
}
|
|
1912
|
-
async function
|
|
1913
|
-
_.value =
|
|
1916
|
+
async function re(r, S) {
|
|
1917
|
+
_.value = r;
|
|
1914
1918
|
try {
|
|
1915
|
-
const ee = await ne(
|
|
1916
|
-
|
|
1919
|
+
const ee = await ne(r);
|
|
1920
|
+
S(ee);
|
|
1917
1921
|
} catch (ee) {
|
|
1918
|
-
n("error", ee), le([]),
|
|
1922
|
+
n("error", ee), le([]), S([]);
|
|
1919
1923
|
}
|
|
1920
1924
|
}
|
|
1921
1925
|
function Z() {
|
|
1922
|
-
var
|
|
1923
|
-
_.value && ((
|
|
1926
|
+
var r, S;
|
|
1927
|
+
_.value && ((S = (r = d.value) == null ? void 0 : r.getData) == null || S.call(r, _.value));
|
|
1924
1928
|
}
|
|
1925
|
-
function
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1929
|
+
function w(r) {
|
|
1930
|
+
const S = G(r);
|
|
1931
|
+
R(S);
|
|
1928
1932
|
}
|
|
1929
|
-
function V(
|
|
1930
|
-
const
|
|
1931
|
-
y.value =
|
|
1933
|
+
function V(r) {
|
|
1934
|
+
const S = G(r);
|
|
1935
|
+
y.value = S, n("input", S);
|
|
1932
1936
|
}
|
|
1933
|
-
function a(
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1937
|
+
function a(r) {
|
|
1938
|
+
const S = j(G(r), "change");
|
|
1939
|
+
S !== E(e.modelValue) && R(S), n("change", S);
|
|
1936
1940
|
}
|
|
1937
|
-
function l(
|
|
1938
|
-
n("focus",
|
|
1941
|
+
function l(r) {
|
|
1942
|
+
n("focus", r);
|
|
1939
1943
|
}
|
|
1940
|
-
function
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1944
|
+
function U(r) {
|
|
1945
|
+
const S = j(y.value, "blur");
|
|
1946
|
+
S !== E(e.modelValue) && R(S), n("blur", r), n("visible-change", !1);
|
|
1943
1947
|
}
|
|
1944
1948
|
function te() {
|
|
1945
1949
|
y.value = "", n("update:modelValue", ""), n("clear"), le([]);
|
|
1946
1950
|
}
|
|
1947
|
-
function s(
|
|
1948
|
-
n("enter",
|
|
1951
|
+
function s(r) {
|
|
1952
|
+
n("enter", r), e.searchOnEnter && p();
|
|
1949
1953
|
}
|
|
1950
1954
|
function p() {
|
|
1951
1955
|
n("search", E(e.modelValue));
|
|
1952
1956
|
}
|
|
1953
|
-
function C(
|
|
1954
|
-
n("select",
|
|
1957
|
+
function C(r) {
|
|
1958
|
+
n("select", r), e.searchOnSelect && n("search", r.value);
|
|
1955
1959
|
}
|
|
1956
|
-
function g(
|
|
1957
|
-
return
|
|
1960
|
+
function g(r) {
|
|
1961
|
+
return r.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1958
1962
|
}
|
|
1959
|
-
function B(
|
|
1960
|
-
return
|
|
1963
|
+
function B(r) {
|
|
1964
|
+
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1961
1965
|
}
|
|
1962
|
-
function
|
|
1963
|
-
const
|
|
1964
|
-
if (!e.highlightKeyword || !f.value) return
|
|
1966
|
+
function ie(r) {
|
|
1967
|
+
const S = g(r || "");
|
|
1968
|
+
if (!e.highlightKeyword || !f.value) return S;
|
|
1965
1969
|
const ee = B(g(f.value));
|
|
1966
|
-
return ee ?
|
|
1970
|
+
return ee ? S.replace(
|
|
1967
1971
|
new RegExp(`(${ee})`, "ig"),
|
|
1968
1972
|
'<mark class="qy-search-input__mark">$1</mark>'
|
|
1969
|
-
) :
|
|
1973
|
+
) : S;
|
|
1970
1974
|
}
|
|
1971
1975
|
function me() {
|
|
1972
|
-
var
|
|
1973
|
-
(
|
|
1976
|
+
var r, S;
|
|
1977
|
+
(S = (r = d.value) == null ? void 0 : r.focus) == null || S.call(r);
|
|
1974
1978
|
}
|
|
1975
1979
|
function we() {
|
|
1976
|
-
var
|
|
1977
|
-
(
|
|
1980
|
+
var r, S;
|
|
1981
|
+
(S = (r = d.value) == null ? void 0 : r.blur) == null || S.call(r);
|
|
1978
1982
|
}
|
|
1979
|
-
function
|
|
1980
|
-
var
|
|
1981
|
-
(ee = (
|
|
1983
|
+
function Qe() {
|
|
1984
|
+
var r, S, ee;
|
|
1985
|
+
(ee = (S = (r = d.value) == null ? void 0 : r.inputRef) == null ? void 0 : S.select) == null || ee.call(S);
|
|
1982
1986
|
}
|
|
1983
1987
|
function m() {
|
|
1984
|
-
var
|
|
1985
|
-
(
|
|
1988
|
+
var r, S;
|
|
1989
|
+
(S = (r = d.value) == null ? void 0 : r.clear) == null || S.call(r);
|
|
1986
1990
|
}
|
|
1987
1991
|
function Y() {
|
|
1988
|
-
var
|
|
1989
|
-
(
|
|
1992
|
+
var r, S;
|
|
1993
|
+
(S = (r = d.value) == null ? void 0 : r.close) == null || S.call(r);
|
|
1990
1994
|
}
|
|
1991
1995
|
return D({
|
|
1992
1996
|
// 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
|
|
1993
1997
|
focus: me,
|
|
1994
1998
|
blur: we,
|
|
1995
|
-
select:
|
|
1999
|
+
select: Qe,
|
|
1996
2000
|
clear: m,
|
|
1997
2001
|
closePanel: Y,
|
|
1998
2002
|
retryFetch: Z
|
|
1999
|
-
}), (
|
|
2003
|
+
}), (r, S) => (v(), A("div", {
|
|
2000
2004
|
class: ke(["qy-search-input", { "is-disabled": t.disabled }])
|
|
2001
2005
|
}, [
|
|
2002
|
-
O($(
|
|
2006
|
+
O($(Xa), xe({
|
|
2003
2007
|
ref_key: "autocompleteRef",
|
|
2004
2008
|
ref: d
|
|
2005
2009
|
}, $(H), {
|
|
2006
|
-
"model-value":
|
|
2010
|
+
"model-value": x.value,
|
|
2007
2011
|
disabled: t.disabled,
|
|
2008
2012
|
placeholder: t.placeholder,
|
|
2009
2013
|
clearable: t.clearable,
|
|
2010
2014
|
debounce: t.debounce,
|
|
2011
|
-
"fetch-suggestions":
|
|
2015
|
+
"fetch-suggestions": re,
|
|
2012
2016
|
"trigger-on-focus": t.triggerOnFocus,
|
|
2013
2017
|
teleported: t.teleported,
|
|
2014
2018
|
"fit-input-width": t.fitInputWidth,
|
|
2015
2019
|
"popper-class": I.value,
|
|
2016
2020
|
"append-to": t.appendTo,
|
|
2017
2021
|
"value-key": "value",
|
|
2018
|
-
"onUpdate:modelValue":
|
|
2022
|
+
"onUpdate:modelValue": w,
|
|
2019
2023
|
onInput: V,
|
|
2020
2024
|
onChange: a,
|
|
2021
2025
|
onFocus: l,
|
|
2022
|
-
onBlur:
|
|
2026
|
+
onBlur: U,
|
|
2023
2027
|
onClear: te,
|
|
2024
2028
|
onSelect: C,
|
|
2025
2029
|
onKeydown: Ee(s, ["enter"])
|
|
2026
2030
|
}), _e({
|
|
2027
2031
|
default: h(({ item: ee }) => [
|
|
2028
|
-
|
|
2032
|
+
z(r.$slots, "item", {
|
|
2029
2033
|
item: ee,
|
|
2030
2034
|
keyword: f.value
|
|
2031
2035
|
}, () => [
|
|
2032
|
-
|
|
2033
|
-
|
|
2036
|
+
T("div", Ll, [
|
|
2037
|
+
T("div", {
|
|
2034
2038
|
class: "qy-search-input__item-label",
|
|
2035
|
-
innerHTML:
|
|
2036
|
-
}, null, 8,
|
|
2037
|
-
ee.description ? (v(), A("div",
|
|
2039
|
+
innerHTML: ie(ee.label || ee.value || "")
|
|
2040
|
+
}, null, 8, Ul),
|
|
2041
|
+
ee.description ? (v(), A("div", Kl, pe(ee.description), 1)) : P("", !0)
|
|
2038
2042
|
])
|
|
2039
2043
|
], !0)
|
|
2040
2044
|
]),
|
|
2041
2045
|
_: 2
|
|
2042
2046
|
}, [
|
|
2043
|
-
|
|
2047
|
+
r.$slots.prefix ? {
|
|
2044
2048
|
name: "prefix",
|
|
2045
2049
|
fn: h(() => [
|
|
2046
|
-
|
|
2050
|
+
z(r.$slots, "prefix", {}, void 0, !0)
|
|
2047
2051
|
]),
|
|
2048
2052
|
key: "0"
|
|
2049
2053
|
} : void 0,
|
|
2050
|
-
|
|
2054
|
+
r.$slots.suffix ? {
|
|
2051
2055
|
name: "suffix",
|
|
2052
2056
|
fn: h(() => [
|
|
2053
|
-
|
|
2057
|
+
z(r.$slots, "suffix", {}, void 0, !0)
|
|
2054
2058
|
]),
|
|
2055
2059
|
key: "1"
|
|
2056
2060
|
} : void 0,
|
|
2057
|
-
|
|
2061
|
+
r.$slots.prepend ? {
|
|
2058
2062
|
name: "prepend",
|
|
2059
2063
|
fn: h(() => [
|
|
2060
|
-
|
|
2064
|
+
z(r.$slots, "prepend", {}, void 0, !0)
|
|
2061
2065
|
]),
|
|
2062
2066
|
key: "2"
|
|
2063
2067
|
} : void 0,
|
|
2064
|
-
|
|
2068
|
+
r.$slots.append || t.showButton ? {
|
|
2065
2069
|
name: "append",
|
|
2066
2070
|
fn: h(() => [
|
|
2067
|
-
|
|
2071
|
+
r.$slots.append ? z(r.$slots, "append", {}, void 0, !0, 0) : (v(), ce($(Ve), xe({ key: 1 }, t.buttonProps, {
|
|
2068
2072
|
loading: t.loading,
|
|
2069
2073
|
disabled: t.disabled,
|
|
2070
2074
|
onClick: p
|
|
@@ -2080,16 +2084,16 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2080
2084
|
]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
|
|
2081
2085
|
], 2));
|
|
2082
2086
|
}
|
|
2083
|
-
}),
|
|
2087
|
+
}), Ct = /* @__PURE__ */ Re(El, [["__scopeId", "data-v-cd7f5dfc"]]), jl = { class: "qy-record-quote-search" }, Nl = {
|
|
2084
2088
|
key: 0,
|
|
2085
2089
|
class: "qy-record-quote-search__header"
|
|
2086
|
-
},
|
|
2090
|
+
}, Hl = {
|
|
2087
2091
|
key: 0,
|
|
2088
2092
|
class: "qy-record-quote-search__label"
|
|
2089
|
-
},
|
|
2093
|
+
}, Zl = {
|
|
2090
2094
|
key: 1,
|
|
2091
2095
|
class: "qy-record-quote-search__description"
|
|
2092
|
-
},
|
|
2096
|
+
}, Wl = /* @__PURE__ */ qe({
|
|
2093
2097
|
name: "QyRecordQuoteSearch",
|
|
2094
2098
|
inheritAttrs: !1,
|
|
2095
2099
|
__name: "index",
|
|
@@ -2119,15 +2123,15 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2119
2123
|
emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
|
|
2120
2124
|
setup(t, { expose: D, emit: W }) {
|
|
2121
2125
|
const e = t, n = W, H = Be(), d = q(null), y = q(!1), f = F(() => e.statusText || ""), I = F(() => e.loading || y.value);
|
|
2122
|
-
function
|
|
2126
|
+
function x(a) {
|
|
2123
2127
|
return a == null ? "" : String(a);
|
|
2124
2128
|
}
|
|
2125
2129
|
function _(a) {
|
|
2126
|
-
const l =
|
|
2127
|
-
return te ? te[0] :
|
|
2130
|
+
const l = x(a).trim(), U = E(l), te = U.match(/BJ\d{8}[A-Z0-9]{4}/i);
|
|
2131
|
+
return te ? te[0] : U;
|
|
2128
2132
|
}
|
|
2129
2133
|
function E(a) {
|
|
2130
|
-
return
|
|
2134
|
+
return x(a).replace(/\s+/g, "").trim().toUpperCase();
|
|
2131
2135
|
}
|
|
2132
2136
|
function M(a) {
|
|
2133
2137
|
return e.extractMethod ? e.extractMethod(a) : _(a);
|
|
@@ -2136,17 +2140,17 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2136
2140
|
return e.normalizeMethod ? e.normalizeMethod(a) : E(a);
|
|
2137
2141
|
}
|
|
2138
2142
|
function G(a, l) {
|
|
2139
|
-
const
|
|
2140
|
-
return n("normalize", { rawValue:
|
|
2141
|
-
rawValue:
|
|
2143
|
+
const U = x(a), te = M(U), s = e.autoNormalize ? j(te) : te;
|
|
2144
|
+
return n("normalize", { rawValue: U, code: s }), {
|
|
2145
|
+
rawValue: U,
|
|
2142
2146
|
code: s,
|
|
2143
2147
|
item: l
|
|
2144
2148
|
};
|
|
2145
2149
|
}
|
|
2146
|
-
function
|
|
2150
|
+
function R(a) {
|
|
2147
2151
|
n("update:modelValue", a);
|
|
2148
2152
|
}
|
|
2149
|
-
async function
|
|
2153
|
+
async function L(a) {
|
|
2150
2154
|
if (n("search", a), !!e.searchMethod) {
|
|
2151
2155
|
y.value = !0;
|
|
2152
2156
|
try {
|
|
@@ -2161,7 +2165,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2161
2165
|
}
|
|
2162
2166
|
function ae(a) {
|
|
2163
2167
|
const l = G(a);
|
|
2164
|
-
l.code !==
|
|
2168
|
+
l.code !== x(e.modelValue) && n("update:modelValue", l.code), L(l);
|
|
2165
2169
|
}
|
|
2166
2170
|
function J() {
|
|
2167
2171
|
n("clear");
|
|
@@ -2172,12 +2176,12 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2172
2176
|
function le(a) {
|
|
2173
2177
|
if (n("select", a), !e.searchOnSelect) return;
|
|
2174
2178
|
const l = G(a.value, a);
|
|
2175
|
-
l.code !==
|
|
2179
|
+
l.code !== x(e.modelValue) && n("update:modelValue", l.code), L(l);
|
|
2176
2180
|
}
|
|
2177
2181
|
function ne(a) {
|
|
2178
2182
|
n("error", a);
|
|
2179
2183
|
}
|
|
2180
|
-
function
|
|
2184
|
+
function re() {
|
|
2181
2185
|
var a, l;
|
|
2182
2186
|
(l = (a = d.value) == null ? void 0 : a.focus) == null || l.call(a);
|
|
2183
2187
|
}
|
|
@@ -2185,7 +2189,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2185
2189
|
var a, l;
|
|
2186
2190
|
(l = (a = d.value) == null ? void 0 : a.blur) == null || l.call(a);
|
|
2187
2191
|
}
|
|
2188
|
-
function
|
|
2192
|
+
function w() {
|
|
2189
2193
|
var a, l;
|
|
2190
2194
|
(l = (a = d.value) == null ? void 0 : a.select) == null || l.call(a);
|
|
2191
2195
|
}
|
|
@@ -2194,20 +2198,20 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2194
2198
|
(l = (a = d.value) == null ? void 0 : a.clear) == null || l.call(a);
|
|
2195
2199
|
}
|
|
2196
2200
|
return D({
|
|
2197
|
-
focus:
|
|
2201
|
+
focus: re,
|
|
2198
2202
|
blur: Z,
|
|
2199
|
-
select:
|
|
2203
|
+
select: w,
|
|
2200
2204
|
clear: V,
|
|
2201
2205
|
extractQuoteOrderCode: M,
|
|
2202
2206
|
normalizeQuoteOrderCode: j
|
|
2203
|
-
}), (a, l) => (v(), A("div",
|
|
2204
|
-
|
|
2205
|
-
t.label || t.description ? (v(), A("div",
|
|
2206
|
-
t.label ? (v(), A("div",
|
|
2207
|
-
t.description ? (v(), A("div",
|
|
2207
|
+
}), (a, l) => (v(), A("div", jl, [
|
|
2208
|
+
z(a.$slots, "label", {}, () => [
|
|
2209
|
+
t.label || t.description ? (v(), A("div", Nl, [
|
|
2210
|
+
t.label ? (v(), A("div", Hl, pe(t.label), 1)) : P("", !0),
|
|
2211
|
+
t.description ? (v(), A("div", Zl, pe(t.description), 1)) : P("", !0)
|
|
2208
2212
|
])) : P("", !0)
|
|
2209
2213
|
], !0),
|
|
2210
|
-
O(
|
|
2214
|
+
O(Ct, xe({
|
|
2211
2215
|
ref_key: "searchRef",
|
|
2212
2216
|
ref: d
|
|
2213
2217
|
}, $(H), {
|
|
@@ -2224,7 +2228,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2224
2228
|
debounce: t.debounce,
|
|
2225
2229
|
"min-length": t.minLength,
|
|
2226
2230
|
"search-on-select": !1,
|
|
2227
|
-
"onUpdate:modelValue":
|
|
2231
|
+
"onUpdate:modelValue": R,
|
|
2228
2232
|
onSearch: ae,
|
|
2229
2233
|
onClear: J,
|
|
2230
2234
|
onEnter: X,
|
|
@@ -2234,65 +2238,65 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2234
2238
|
a.$slots.prefix ? {
|
|
2235
2239
|
name: "prefix",
|
|
2236
2240
|
fn: h(() => [
|
|
2237
|
-
|
|
2241
|
+
z(a.$slots, "prefix", {}, void 0, !0)
|
|
2238
2242
|
]),
|
|
2239
2243
|
key: "0"
|
|
2240
2244
|
} : void 0,
|
|
2241
2245
|
a.$slots.suffix ? {
|
|
2242
2246
|
name: "suffix",
|
|
2243
2247
|
fn: h(() => [
|
|
2244
|
-
|
|
2248
|
+
z(a.$slots, "suffix", {}, void 0, !0)
|
|
2245
2249
|
]),
|
|
2246
2250
|
key: "1"
|
|
2247
2251
|
} : void 0,
|
|
2248
2252
|
a.$slots.item ? {
|
|
2249
2253
|
name: "item",
|
|
2250
|
-
fn: h((
|
|
2251
|
-
|
|
2254
|
+
fn: h((U) => [
|
|
2255
|
+
z(a.$slots, "item", gt(vt(U)), void 0, !0)
|
|
2252
2256
|
]),
|
|
2253
2257
|
key: "2"
|
|
2254
2258
|
} : void 0,
|
|
2255
2259
|
a.$slots.empty ? {
|
|
2256
2260
|
name: "empty",
|
|
2257
2261
|
fn: h(() => [
|
|
2258
|
-
|
|
2262
|
+
z(a.$slots, "empty", {}, void 0, !0)
|
|
2259
2263
|
]),
|
|
2260
2264
|
key: "3"
|
|
2261
2265
|
} : void 0,
|
|
2262
2266
|
a.$slots.loading ? {
|
|
2263
2267
|
name: "loading",
|
|
2264
2268
|
fn: h(() => [
|
|
2265
|
-
|
|
2269
|
+
z(a.$slots, "loading", {}, void 0, !0)
|
|
2266
2270
|
]),
|
|
2267
2271
|
key: "4"
|
|
2268
2272
|
} : void 0
|
|
2269
2273
|
]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
|
|
2270
|
-
t.showStatus && f.value ?
|
|
2274
|
+
t.showStatus && f.value ? z(a.$slots, "status", {
|
|
2271
2275
|
status: t.status,
|
|
2272
2276
|
statusText: f.value
|
|
2273
2277
|
}, () => [
|
|
2274
|
-
|
|
2278
|
+
T("div", {
|
|
2275
2279
|
class: ke(["qy-record-quote-search__status", `is-${t.status}`])
|
|
2276
2280
|
}, pe(f.value), 3)
|
|
2277
2281
|
], !0, 0) : P("", !0)
|
|
2278
2282
|
]));
|
|
2279
2283
|
}
|
|
2280
|
-
}),
|
|
2284
|
+
}), Gl = /* @__PURE__ */ Re(Wl, [["__scopeId", "data-v-3a314f64"]]), Jl = { class: "qy-selection-dialog" }, Xl = { class: "qy-selection-dialog__main" }, Yl = {
|
|
2281
2285
|
key: 0,
|
|
2282
2286
|
class: "qy-selection-dialog__selected"
|
|
2283
|
-
},
|
|
2287
|
+
}, en = { class: "qy-selection-dialog__selected-tags" }, tn = {
|
|
2284
2288
|
key: 0,
|
|
2285
2289
|
class: "qy-selection-dialog__selected-actions"
|
|
2286
|
-
},
|
|
2290
|
+
}, an = {
|
|
2287
2291
|
key: 1,
|
|
2288
2292
|
class: "qy-selection-dialog__search-row"
|
|
2289
|
-
},
|
|
2293
|
+
}, on = {
|
|
2290
2294
|
key: 0,
|
|
2291
2295
|
class: "qy-selection-dialog__toolbar"
|
|
2292
|
-
},
|
|
2296
|
+
}, ln = {
|
|
2293
2297
|
key: 2,
|
|
2294
2298
|
class: "qy-selection-dialog__pagination"
|
|
2295
|
-
},
|
|
2299
|
+
}, nn = { class: "qy-selection-dialog__paste-actions" }, rn = /* @__PURE__ */ qe({
|
|
2296
2300
|
name: "QySelectionDialog",
|
|
2297
2301
|
inheritAttrs: !1,
|
|
2298
2302
|
__name: "index",
|
|
@@ -2332,19 +2336,19 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2332
2336
|
},
|
|
2333
2337
|
emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
|
|
2334
2338
|
setup(t, { expose: D, emit: W }) {
|
|
2335
|
-
const e = t, n = W, H = Be(), d = mt(), y =
|
|
2339
|
+
const e = t, n = W, H = Be(), d = mt(), y = ja(), f = q(null), I = q([]), x = q([]), _ = q([]), E = q(!1), M = q(0), j = q(!1), G = q(""), R = Ze({
|
|
2336
2340
|
category: [],
|
|
2337
2341
|
type: "",
|
|
2338
2342
|
page: 1,
|
|
2339
2343
|
pageSize: 10,
|
|
2340
2344
|
...e.searchKey ? { [e.searchKey]: "" } : {},
|
|
2341
2345
|
...e.queryParams
|
|
2342
|
-
}),
|
|
2346
|
+
}), L = F(() => e.selectionMode ? e.selectionMode : e.selection === "multi" ? "multiple" : e.selection), ae = F(() => e.mainKey || e.rowKey), J = F(() => e.tagName || e.labelKey), X = F(() => e.typeOptions.length ? e.typeOptions : e.type || []), le = F(() => ({
|
|
2343
2347
|
...e.typeSelectionProps,
|
|
2344
2348
|
...e.typeSelectProps
|
|
2345
|
-
})), ne = F(() => e.tableProps || {}),
|
|
2349
|
+
})), ne = F(() => e.tableProps || {}), re = F(
|
|
2346
2350
|
() => e.showSearch || !!H["search-visible"]
|
|
2347
|
-
), Z = F(() => e.showAppend || e.append),
|
|
2351
|
+
), Z = F(() => e.showAppend || e.append), w = F(
|
|
2348
2352
|
() => Z.value || !!d.toolbar || !!d.bar
|
|
2349
2353
|
), V = F(() => e.fetchMethod || e.query), a = F(() => l() ? e.modelValue : e.selected);
|
|
2350
2354
|
function l() {
|
|
@@ -2354,7 +2358,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2354
2358
|
fe(
|
|
2355
2359
|
[() => e.modelValue, () => e.selected, () => e.open],
|
|
2356
2360
|
() => {
|
|
2357
|
-
e.open && (
|
|
2361
|
+
e.open && (x.value = Ae(a.value), ee());
|
|
2358
2362
|
},
|
|
2359
2363
|
{ immediate: !0, deep: !0 }
|
|
2360
2364
|
), fe(
|
|
@@ -2370,8 +2374,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2370
2374
|
), fe(j, (u) => {
|
|
2371
2375
|
u || (G.value = "");
|
|
2372
2376
|
});
|
|
2373
|
-
async function
|
|
2374
|
-
|
|
2377
|
+
async function U() {
|
|
2378
|
+
x.value = Ae(a.value), await te(), await s(), ee();
|
|
2375
2379
|
}
|
|
2376
2380
|
async function te() {
|
|
2377
2381
|
const u = e.categoryFetchMethod || (typeof e.category == "function" ? e.category : null);
|
|
@@ -2383,7 +2387,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2383
2387
|
if (V.value) {
|
|
2384
2388
|
E.value = !0;
|
|
2385
2389
|
try {
|
|
2386
|
-
const u = await V.value(
|
|
2390
|
+
const u = await V.value(Qe()), c = e.responseFormatter ? await e.responseFormatter(u) : u, { rows: N, total: o } = ie(c);
|
|
2387
2391
|
return I.value = N, M.value = o, n("loaded", N), ee(), c;
|
|
2388
2392
|
} finally {
|
|
2389
2393
|
E.value = !1;
|
|
@@ -2391,17 +2395,17 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2391
2395
|
}
|
|
2392
2396
|
}
|
|
2393
2397
|
function p() {
|
|
2394
|
-
return
|
|
2398
|
+
return R.page = 1, s();
|
|
2395
2399
|
}
|
|
2396
2400
|
function C() {
|
|
2397
|
-
return
|
|
2401
|
+
return R.page = 1, s();
|
|
2398
2402
|
}
|
|
2399
2403
|
function g() {
|
|
2400
|
-
return Object.assign(
|
|
2404
|
+
return Object.assign(R, {
|
|
2401
2405
|
category: [],
|
|
2402
2406
|
type: "",
|
|
2403
2407
|
page: 1,
|
|
2404
|
-
pageSize:
|
|
2408
|
+
pageSize: R.pageSize,
|
|
2405
2409
|
...e.searchKey ? { [e.searchKey]: "" } : {},
|
|
2406
2410
|
...e.queryParams
|
|
2407
2411
|
}), s();
|
|
@@ -2409,7 +2413,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2409
2413
|
function B() {
|
|
2410
2414
|
n("append");
|
|
2411
2415
|
}
|
|
2412
|
-
function
|
|
2416
|
+
function ie(u) {
|
|
2413
2417
|
if (Array.isArray(u))
|
|
2414
2418
|
return { rows: u, total: u.length };
|
|
2415
2419
|
const c = u == null ? void 0 : u.data;
|
|
@@ -2425,11 +2429,11 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2425
2429
|
return e.categoryFormatter(c);
|
|
2426
2430
|
if (Array.isArray(e.categoryFormatter)) {
|
|
2427
2431
|
const [N, o] = e.categoryFormatter;
|
|
2428
|
-
return c.map((
|
|
2429
|
-
...
|
|
2430
|
-
label:
|
|
2431
|
-
value:
|
|
2432
|
-
children: Array.isArray(
|
|
2432
|
+
return c.map((i) => ({
|
|
2433
|
+
...i,
|
|
2434
|
+
label: i[N],
|
|
2435
|
+
value: i[o],
|
|
2436
|
+
children: Array.isArray(i.children) ? we(i.children, N, o) : i.children
|
|
2433
2437
|
}));
|
|
2434
2438
|
}
|
|
2435
2439
|
return c;
|
|
@@ -2442,55 +2446,55 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2442
2446
|
children: Array.isArray(o.children) ? we(o.children, c, N) : o.children
|
|
2443
2447
|
}));
|
|
2444
2448
|
}
|
|
2445
|
-
function
|
|
2446
|
-
const u = { ...e.queryParams, ...
|
|
2449
|
+
function Qe() {
|
|
2450
|
+
const u = { ...e.queryParams, ...R };
|
|
2447
2451
|
return e.searchKey && (u[e.searchKey] = String(u[e.searchKey] || "").trim()), u.category = m(), u;
|
|
2448
2452
|
}
|
|
2449
2453
|
function m() {
|
|
2450
2454
|
if (Object.prototype.hasOwnProperty.call(e.queryParams, "category"))
|
|
2451
2455
|
return e.queryParams.category;
|
|
2452
|
-
const u =
|
|
2456
|
+
const u = R.category;
|
|
2453
2457
|
return Array.isArray(u) ? u : u ? [u] : [];
|
|
2454
2458
|
}
|
|
2455
2459
|
function Y(u) {
|
|
2456
2460
|
var c, N;
|
|
2457
|
-
if (
|
|
2458
|
-
if (
|
|
2459
|
-
|
|
2461
|
+
if (L.value !== "none") {
|
|
2462
|
+
if (L.value === "single") {
|
|
2463
|
+
x.value = [u], (c = f.value) == null || c.setCurrentRow(u), Fe();
|
|
2460
2464
|
return;
|
|
2461
2465
|
}
|
|
2462
2466
|
Se(u) && ((N = f.value) == null || N.toggleRowSelection(u, !$e(u)));
|
|
2463
2467
|
}
|
|
2464
2468
|
}
|
|
2465
|
-
function
|
|
2466
|
-
if (
|
|
2469
|
+
function r(u) {
|
|
2470
|
+
if (L.value !== "multiple") return;
|
|
2467
2471
|
const c = new Set(I.value.map(de)), N = new Set(u.map(de));
|
|
2468
|
-
|
|
2472
|
+
x.value = x.value.filter(
|
|
2469
2473
|
(o) => !c.has(de(o)) || N.has(de(o))
|
|
2470
2474
|
), u.forEach((o) => {
|
|
2471
|
-
$e(o) ||
|
|
2475
|
+
$e(o) || x.value.push(o);
|
|
2472
2476
|
}), Fe();
|
|
2473
2477
|
}
|
|
2474
|
-
function
|
|
2478
|
+
function S(u) {
|
|
2475
2479
|
var N, o;
|
|
2476
|
-
|
|
2477
|
-
(
|
|
2480
|
+
x.value = x.value.filter(
|
|
2481
|
+
(i) => de(i) !== de(u)
|
|
2478
2482
|
);
|
|
2479
|
-
const c = I.value.find((
|
|
2480
|
-
c && (
|
|
2483
|
+
const c = I.value.find((i) => de(i) === de(u));
|
|
2484
|
+
c && (L.value === "multiple" ? (N = f.value) == null || N.toggleRowSelection(c, !1) : (o = f.value) == null || o.setCurrentRow()), Fe();
|
|
2481
2485
|
}
|
|
2482
2486
|
function ee() {
|
|
2483
2487
|
Oe(() => {
|
|
2484
2488
|
var u;
|
|
2485
2489
|
if (f.value) {
|
|
2486
|
-
if (
|
|
2487
|
-
const [c] =
|
|
2490
|
+
if (L.value === "single") {
|
|
2491
|
+
const [c] = x.value, N = I.value.find(
|
|
2488
2492
|
(o) => c && de(o) === de(c)
|
|
2489
2493
|
);
|
|
2490
2494
|
(u = f.value) == null || u.setCurrentRow(N);
|
|
2491
2495
|
return;
|
|
2492
2496
|
}
|
|
2493
|
-
|
|
2497
|
+
L.value === "multiple" && I.value.forEach((c) => {
|
|
2494
2498
|
var N;
|
|
2495
2499
|
(N = f.value) == null || N.toggleRowSelection(c, $e(c));
|
|
2496
2500
|
});
|
|
@@ -2503,35 +2507,35 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2503
2507
|
return typeof c == "function" ? c(u) !== !1 : !0;
|
|
2504
2508
|
}
|
|
2505
2509
|
function $e(u) {
|
|
2506
|
-
return
|
|
2510
|
+
return x.value.some((c) => de(c) === de(u));
|
|
2507
2511
|
}
|
|
2508
2512
|
function de(u) {
|
|
2509
|
-
return
|
|
2513
|
+
return Le(u, ae.value);
|
|
2510
2514
|
}
|
|
2511
2515
|
function De(u) {
|
|
2512
|
-
return
|
|
2516
|
+
return Le(u, J.value) ?? de(u);
|
|
2513
2517
|
}
|
|
2514
|
-
function
|
|
2518
|
+
function Le(u, c) {
|
|
2515
2519
|
if (!(!u || !c))
|
|
2516
2520
|
return c.split(".").reduce((N, o) => N == null ? void 0 : N[o], u);
|
|
2517
2521
|
}
|
|
2518
2522
|
function Fe() {
|
|
2519
|
-
const u = Ae(
|
|
2523
|
+
const u = Ae(x.value);
|
|
2520
2524
|
n("selection-change", u);
|
|
2521
2525
|
}
|
|
2522
2526
|
function je() {
|
|
2523
|
-
const u = Ae(
|
|
2524
|
-
n("update:modelValue", u), n("confirm", u), n("submit", { selection: u, rows: u, query: { ...
|
|
2527
|
+
const u = Ae(x.value);
|
|
2528
|
+
n("update:modelValue", u), n("confirm", u), n("submit", { selection: u, rows: u, query: { ...R } });
|
|
2525
2529
|
}
|
|
2526
|
-
function
|
|
2527
|
-
|
|
2530
|
+
function Ue() {
|
|
2531
|
+
x.value = Ae(a.value), n("cancel"), n("close");
|
|
2528
2532
|
}
|
|
2529
2533
|
async function Ne() {
|
|
2530
2534
|
var c;
|
|
2531
|
-
const u = JSON.stringify(
|
|
2535
|
+
const u = JSON.stringify(x.value);
|
|
2532
2536
|
await ((c = navigator.clipboard) == null ? void 0 : c.writeText(u)), he.success("复制成功");
|
|
2533
2537
|
}
|
|
2534
|
-
function
|
|
2538
|
+
function Te() {
|
|
2535
2539
|
try {
|
|
2536
2540
|
const u = JSON.parse(G.value);
|
|
2537
2541
|
if (!Array.isArray(u)) {
|
|
@@ -2539,7 +2543,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2539
2543
|
return;
|
|
2540
2544
|
}
|
|
2541
2545
|
u.forEach((c) => {
|
|
2542
|
-
$e(c) ||
|
|
2546
|
+
$e(c) || x.value.push(c);
|
|
2543
2547
|
}), j.value = !1, Fe(), ee();
|
|
2544
2548
|
} catch (u) {
|
|
2545
2549
|
he.error(`粘贴错误: ${(u == null ? void 0 : u.message) || "内容格式错误"}`);
|
|
@@ -2555,10 +2559,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2555
2559
|
resetSearch: g,
|
|
2556
2560
|
getTableRef: () => f.value,
|
|
2557
2561
|
getTableData: () => I.value,
|
|
2558
|
-
getSelection: () => Ae(
|
|
2562
|
+
getSelection: () => Ae(x.value)
|
|
2559
2563
|
}), (u, c) => {
|
|
2560
|
-
const N =
|
|
2561
|
-
return v(), ce(Je,
|
|
2564
|
+
const N = Ua;
|
|
2565
|
+
return v(), ce(Je, xe($(H), {
|
|
2562
2566
|
"model-value": t.open,
|
|
2563
2567
|
title: t.title,
|
|
2564
2568
|
width: t.width,
|
|
@@ -2566,29 +2570,29 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2566
2570
|
draggable: "",
|
|
2567
2571
|
"align-center": "",
|
|
2568
2572
|
"append-to-body": "",
|
|
2569
|
-
onOpened:
|
|
2573
|
+
onOpened: U,
|
|
2570
2574
|
onConfirm: je,
|
|
2571
|
-
onCancel:
|
|
2575
|
+
onCancel: Ue
|
|
2572
2576
|
}), {
|
|
2573
2577
|
default: h(() => [
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
t.showSelected ? (v(), A("div",
|
|
2578
|
-
c[12] || (c[12] =
|
|
2579
|
-
|
|
2580
|
-
(v(!0), A(
|
|
2578
|
+
T("div", Jl, [
|
|
2579
|
+
z(u.$slots, "side", {}, void 0, !0),
|
|
2580
|
+
T("div", Xl, [
|
|
2581
|
+
t.showSelected ? (v(), A("div", Yl, [
|
|
2582
|
+
c[12] || (c[12] = T("span", { class: "qy-selection-dialog__selected-label" }, "已选项", -1)),
|
|
2583
|
+
T("div", en, [
|
|
2584
|
+
(v(!0), A(ze, null, et(x.value, (o) => (v(), ce(We, {
|
|
2581
2585
|
key: de(o),
|
|
2582
2586
|
closable: "",
|
|
2583
2587
|
class: "qy-selection-dialog__selected-tag",
|
|
2584
|
-
onClose: (
|
|
2588
|
+
onClose: (i) => S(o)
|
|
2585
2589
|
}, {
|
|
2586
2590
|
default: h(() => [
|
|
2587
2591
|
be(pe(De(o)), 1)
|
|
2588
2592
|
]),
|
|
2589
2593
|
_: 2
|
|
2590
2594
|
}, 1032, ["onClose"]))), 128)),
|
|
2591
|
-
|
|
2595
|
+
x.value.length ? P("", !0) : (v(), ce(We, {
|
|
2592
2596
|
key: 0,
|
|
2593
2597
|
tone: "info"
|
|
2594
2598
|
}, {
|
|
@@ -2598,7 +2602,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2598
2602
|
_: 1
|
|
2599
2603
|
}))
|
|
2600
2604
|
]),
|
|
2601
|
-
t.showCopyPaste ? (v(), A("div",
|
|
2605
|
+
t.showCopyPaste ? (v(), A("div", tn, [
|
|
2602
2606
|
O($(Ve), {
|
|
2603
2607
|
size: "small",
|
|
2604
2608
|
onClick: Ne
|
|
@@ -2619,15 +2623,15 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2619
2623
|
})
|
|
2620
2624
|
])) : P("", !0)
|
|
2621
2625
|
])) : P("", !0),
|
|
2622
|
-
|
|
2626
|
+
re.value ? (v(), A("div", an, [
|
|
2623
2627
|
O($(wt), {
|
|
2624
2628
|
class: "qy-selection-dialog__search",
|
|
2625
2629
|
inline: "",
|
|
2626
|
-
model:
|
|
2630
|
+
model: R
|
|
2627
2631
|
}, {
|
|
2628
2632
|
default: h(() => [
|
|
2629
|
-
|
|
2630
|
-
query:
|
|
2633
|
+
z(u.$slots, "search", {
|
|
2634
|
+
query: R,
|
|
2631
2635
|
search: p,
|
|
2632
2636
|
reset: g
|
|
2633
2637
|
}, () => [
|
|
@@ -2637,8 +2641,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2637
2641
|
}, {
|
|
2638
2642
|
default: h(() => [
|
|
2639
2643
|
O(St, {
|
|
2640
|
-
modelValue:
|
|
2641
|
-
"onUpdate:modelValue": c[1] || (c[1] = (o) =>
|
|
2644
|
+
modelValue: R.category,
|
|
2645
|
+
"onUpdate:modelValue": c[1] || (c[1] = (o) => R.category = o),
|
|
2642
2646
|
class: "qy-selection-dialog__category",
|
|
2643
2647
|
options: _.value,
|
|
2644
2648
|
clearable: "",
|
|
@@ -2655,9 +2659,9 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2655
2659
|
label: "类型"
|
|
2656
2660
|
}, {
|
|
2657
2661
|
default: h(() => [
|
|
2658
|
-
O(tt,
|
|
2659
|
-
modelValue:
|
|
2660
|
-
"onUpdate:modelValue": c[2] || (c[2] = (o) =>
|
|
2662
|
+
O(tt, xe({
|
|
2663
|
+
modelValue: R.type,
|
|
2664
|
+
"onUpdate:modelValue": c[2] || (c[2] = (o) => R.type = o),
|
|
2661
2665
|
class: "qy-selection-dialog__type",
|
|
2662
2666
|
options: X.value,
|
|
2663
2667
|
placeholder: "请选择类型",
|
|
@@ -2672,8 +2676,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2672
2676
|
}, {
|
|
2673
2677
|
default: h(() => [
|
|
2674
2678
|
O($(Me), {
|
|
2675
|
-
modelValue:
|
|
2676
|
-
"onUpdate:modelValue": c[3] || (c[3] = (o) =>
|
|
2679
|
+
modelValue: R[t.searchKey],
|
|
2680
|
+
"onUpdate:modelValue": c[3] || (c[3] = (o) => R[t.searchKey] = o),
|
|
2677
2681
|
clearable: "",
|
|
2678
2682
|
placeholder: "请输入",
|
|
2679
2683
|
class: "qy-selection-dialog__search-input",
|
|
@@ -2706,7 +2710,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2706
2710
|
]),
|
|
2707
2711
|
_: 3
|
|
2708
2712
|
}, 8, ["model"]),
|
|
2709
|
-
|
|
2713
|
+
w.value ? (v(), A("div", on, [
|
|
2710
2714
|
Z.value ? (v(), ce($(Ve), {
|
|
2711
2715
|
key: 0,
|
|
2712
2716
|
type: "primary",
|
|
@@ -2717,17 +2721,17 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2717
2721
|
])]),
|
|
2718
2722
|
_: 1
|
|
2719
2723
|
})) : P("", !0),
|
|
2720
|
-
|
|
2721
|
-
query:
|
|
2724
|
+
z(u.$slots, "toolbar", {
|
|
2725
|
+
query: R,
|
|
2722
2726
|
search: p
|
|
2723
2727
|
}, void 0, !0),
|
|
2724
|
-
|
|
2725
|
-
query:
|
|
2728
|
+
z(u.$slots, "bar", {
|
|
2729
|
+
query: R,
|
|
2726
2730
|
search: p
|
|
2727
2731
|
}, void 0, !0)
|
|
2728
2732
|
])) : P("", !0)
|
|
2729
2733
|
])) : P("", !0),
|
|
2730
|
-
Ye((v(), ce($(
|
|
2734
|
+
Ye((v(), ce($(Ya), xe({
|
|
2731
2735
|
ref_key: "tableRef",
|
|
2732
2736
|
ref: f,
|
|
2733
2737
|
data: I.value,
|
|
@@ -2736,33 +2740,33 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2736
2740
|
"highlight-current-row": "",
|
|
2737
2741
|
"max-height": "550px"
|
|
2738
2742
|
}, ne.value, {
|
|
2739
|
-
onSelectionChange:
|
|
2743
|
+
onSelectionChange: r,
|
|
2740
2744
|
onRowClick: Y
|
|
2741
2745
|
}), {
|
|
2742
2746
|
default: h(() => {
|
|
2743
2747
|
var o;
|
|
2744
2748
|
return [
|
|
2745
|
-
|
|
2749
|
+
L.value === "multiple" ? (v(), ce($(eo), {
|
|
2746
2750
|
key: 0,
|
|
2747
2751
|
type: "selection",
|
|
2748
2752
|
"reserve-selection": "",
|
|
2749
2753
|
width: "42",
|
|
2750
2754
|
selectable: (o = ne.value) == null ? void 0 : o.selectable
|
|
2751
2755
|
}, null, 8, ["selectable"])) : P("", !0),
|
|
2752
|
-
|
|
2753
|
-
|
|
2756
|
+
z(u.$slots, "columns", {}, void 0, !0),
|
|
2757
|
+
z(u.$slots, "cols", {}, void 0, !0)
|
|
2754
2758
|
];
|
|
2755
2759
|
}),
|
|
2756
2760
|
_: 3
|
|
2757
2761
|
}, 16, ["data", "row-key"])), [
|
|
2758
2762
|
[N, E.value]
|
|
2759
2763
|
]),
|
|
2760
|
-
t.showPagination && M.value > 0 ? (v(), A("div",
|
|
2761
|
-
O($(
|
|
2762
|
-
"current-page":
|
|
2763
|
-
"onUpdate:currentPage": c[4] || (c[4] = (o) =>
|
|
2764
|
-
"page-size":
|
|
2765
|
-
"onUpdate:pageSize": c[5] || (c[5] = (o) =>
|
|
2764
|
+
t.showPagination && M.value > 0 ? (v(), A("div", ln, [
|
|
2765
|
+
O($(to), {
|
|
2766
|
+
"current-page": R.page,
|
|
2767
|
+
"onUpdate:currentPage": c[4] || (c[4] = (o) => R.page = o),
|
|
2768
|
+
"page-size": R.pageSize,
|
|
2769
|
+
"onUpdate:pageSize": c[5] || (c[5] = (o) => R.pageSize = o),
|
|
2766
2770
|
total: M.value,
|
|
2767
2771
|
"page-sizes": t.pageSizes,
|
|
2768
2772
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -2786,7 +2790,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2786
2790
|
type: "textarea",
|
|
2787
2791
|
rows: 8
|
|
2788
2792
|
}, null, 8, ["modelValue"]),
|
|
2789
|
-
|
|
2793
|
+
T("div", nn, [
|
|
2790
2794
|
O($(Ve), {
|
|
2791
2795
|
onClick: c[7] || (c[7] = (o) => j.value = !1)
|
|
2792
2796
|
}, {
|
|
@@ -2797,7 +2801,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2797
2801
|
}),
|
|
2798
2802
|
O($(Ve), {
|
|
2799
2803
|
type: "primary",
|
|
2800
|
-
onClick:
|
|
2804
|
+
onClick: Te
|
|
2801
2805
|
}, {
|
|
2802
2806
|
default: h(() => [...c[17] || (c[17] = [
|
|
2803
2807
|
be("确认", -1)
|
|
@@ -2813,7 +2817,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2813
2817
|
}, 16, ["model-value", "title", "width"]);
|
|
2814
2818
|
};
|
|
2815
2819
|
}
|
|
2816
|
-
}),
|
|
2820
|
+
}), Vt = /* @__PURE__ */ Re(rn, [["__scopeId", "data-v-31ee3945"]]), sn = /* @__PURE__ */ qe({
|
|
2817
2821
|
name: "QyLegacySelectionDialog",
|
|
2818
2822
|
inheritAttrs: !1,
|
|
2819
2823
|
__name: "index",
|
|
@@ -2860,10 +2864,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2860
2864
|
dialogOpen: !1,
|
|
2861
2865
|
pasteData: "",
|
|
2862
2866
|
pasteDataDialog: !1
|
|
2863
|
-
}), I = F(() => e.type || []),
|
|
2867
|
+
}), I = F(() => e.type || []), x = F(() => f.categories), _ = async (s) => {
|
|
2864
2868
|
if (!e.query) return { data: { records: [], total: 0 } };
|
|
2865
2869
|
const p = await e.query(le(s)), C = e.responseFormatter ? await e.responseFormatter(p) : p;
|
|
2866
|
-
return f.total =
|
|
2870
|
+
return f.total = U(C), C;
|
|
2867
2871
|
};
|
|
2868
2872
|
fe(
|
|
2869
2873
|
() => e.open,
|
|
@@ -2913,7 +2917,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2913
2917
|
return;
|
|
2914
2918
|
}
|
|
2915
2919
|
const s = typeof e.category == "function" ? await e.category() : e.category;
|
|
2916
|
-
f.categories =
|
|
2920
|
+
f.categories = w(s);
|
|
2917
2921
|
}
|
|
2918
2922
|
async function M() {
|
|
2919
2923
|
var s;
|
|
@@ -2926,10 +2930,10 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2926
2930
|
var p;
|
|
2927
2931
|
f.tableData = s, f.tableRef = (p = d.value) == null ? void 0 : p.getTableRef();
|
|
2928
2932
|
}
|
|
2929
|
-
function
|
|
2933
|
+
function R(s) {
|
|
2930
2934
|
f.selection = te(s), n("submit", f);
|
|
2931
2935
|
}
|
|
2932
|
-
function
|
|
2936
|
+
function L() {
|
|
2933
2937
|
n("close");
|
|
2934
2938
|
}
|
|
2935
2939
|
function ae() {
|
|
@@ -2963,20 +2967,20 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2963
2967
|
const s = y.category;
|
|
2964
2968
|
if (Array.isArray(s)) return s;
|
|
2965
2969
|
if (!s) return [];
|
|
2966
|
-
const p =
|
|
2970
|
+
const p = re(f.categories, s);
|
|
2967
2971
|
return p ? Z(p) : [s];
|
|
2968
2972
|
}
|
|
2969
|
-
function
|
|
2973
|
+
function re(s, p) {
|
|
2970
2974
|
for (const C of s || []) {
|
|
2971
2975
|
if (C.value === p) return C;
|
|
2972
|
-
const g =
|
|
2976
|
+
const g = re(C.children || [], p);
|
|
2973
2977
|
if (g) return g;
|
|
2974
2978
|
}
|
|
2975
2979
|
}
|
|
2976
2980
|
function Z(s) {
|
|
2977
2981
|
return [s.value, ...(s.children || []).flatMap(Z)];
|
|
2978
2982
|
}
|
|
2979
|
-
function
|
|
2983
|
+
function w(s) {
|
|
2980
2984
|
const p = (s == null ? void 0 : s.data) ?? s;
|
|
2981
2985
|
if (!Array.isArray(p)) return [];
|
|
2982
2986
|
if (typeof e.categoryFormatter == "function")
|
|
@@ -2990,12 +2994,12 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
2990
2994
|
function V(s, p) {
|
|
2991
2995
|
const C = s.map((B) => ({ ...B })), g = [];
|
|
2992
2996
|
return C.forEach((B) => {
|
|
2993
|
-
const
|
|
2994
|
-
if (!
|
|
2997
|
+
const ie = B.parentCateCode;
|
|
2998
|
+
if (!ie) {
|
|
2995
2999
|
g.push(B);
|
|
2996
3000
|
return;
|
|
2997
3001
|
}
|
|
2998
|
-
const me = C.find((we) => we[p] ===
|
|
3002
|
+
const me = C.find((we) => we[p] === ie);
|
|
2999
3003
|
me ? (me.children || (me.children = [])).push(B) : g.push(B);
|
|
3000
3004
|
}), g;
|
|
3001
3005
|
}
|
|
@@ -3012,7 +3016,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3012
3016
|
const p = s == null ? void 0 : s.data;
|
|
3013
3017
|
return Array.isArray(p) ? p : (s == null ? void 0 : s.records) || (s == null ? void 0 : s.rows) || (p == null ? void 0 : p.records) || [];
|
|
3014
3018
|
}
|
|
3015
|
-
function
|
|
3019
|
+
function U(s) {
|
|
3016
3020
|
if (Array.isArray(s)) return s.length;
|
|
3017
3021
|
const p = l(s), C = s == null ? void 0 : s.data;
|
|
3018
3022
|
return (s == null ? void 0 : s.total) ?? (Array.isArray(C) ? C.length : C == null ? void 0 : C.total) ?? p.length;
|
|
@@ -3027,8 +3031,8 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3027
3031
|
getTableRef: () => f.tableRef,
|
|
3028
3032
|
getTableData: () => f.tableData,
|
|
3029
3033
|
getSelection: () => te(f.selection)
|
|
3030
|
-
}), (s, p) => (v(), A(
|
|
3031
|
-
O(
|
|
3034
|
+
}), (s, p) => (v(), A(ze, null, [
|
|
3035
|
+
O(Vt, xe({
|
|
3032
3036
|
ref_key: "selectionDialogRef",
|
|
3033
3037
|
ref: d
|
|
3034
3038
|
}, $(H), {
|
|
@@ -3044,20 +3048,20 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3044
3048
|
"label-key": t.tagName,
|
|
3045
3049
|
"search-key": t.searchKey,
|
|
3046
3050
|
"query-params": {},
|
|
3047
|
-
"category-options":
|
|
3051
|
+
"category-options": x.value,
|
|
3048
3052
|
"type-options": I.value,
|
|
3049
3053
|
"type-select-props": t.typeSelectionProps,
|
|
3050
3054
|
"table-props": t.tableProps,
|
|
3051
3055
|
"show-copy-paste": !0,
|
|
3052
3056
|
"show-append": t.append,
|
|
3053
3057
|
onSelectionChange: j,
|
|
3054
|
-
onConfirm:
|
|
3055
|
-
onCancel:
|
|
3058
|
+
onConfirm: R,
|
|
3059
|
+
onCancel: L,
|
|
3056
3060
|
onAppend: ae,
|
|
3057
3061
|
onLoaded: G
|
|
3058
3062
|
}), {
|
|
3059
3063
|
side: h(() => [
|
|
3060
|
-
|
|
3064
|
+
z(s.$slots, "side", {
|
|
3061
3065
|
state: f,
|
|
3062
3066
|
cate: f.categories,
|
|
3063
3067
|
form: y,
|
|
@@ -3078,7 +3082,7 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3078
3082
|
label: "分类"
|
|
3079
3083
|
}, {
|
|
3080
3084
|
default: h(() => [
|
|
3081
|
-
O($(
|
|
3085
|
+
O($(ao), {
|
|
3082
3086
|
modelValue: y.category,
|
|
3083
3087
|
"onUpdate:modelValue": p[0] || (p[0] = (C) => y.category = C),
|
|
3084
3088
|
class: "qy-legacy-selection-dialog__category",
|
|
@@ -3097,13 +3101,13 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3097
3101
|
label: "类型"
|
|
3098
3102
|
}, {
|
|
3099
3103
|
default: h(() => [
|
|
3100
|
-
O($(ht),
|
|
3104
|
+
O($(ht), xe({
|
|
3101
3105
|
modelValue: y.type,
|
|
3102
3106
|
"onUpdate:modelValue": p[1] || (p[1] = (C) => y.type = C),
|
|
3103
3107
|
clearable: ""
|
|
3104
3108
|
}, t.typeSelectionProps, { onChange: M }), {
|
|
3105
3109
|
default: h(() => [
|
|
3106
|
-
(v(!0), A(
|
|
3110
|
+
(v(!0), A(ze, null, et(I.value, (C) => (v(), ce($(bt), {
|
|
3107
3111
|
key: C.value,
|
|
3108
3112
|
label: C.label,
|
|
3109
3113
|
value: C.value
|
|
@@ -3148,31 +3152,31 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3148
3152
|
}, 8, ["model"])
|
|
3149
3153
|
]),
|
|
3150
3154
|
toolbar: h(() => [
|
|
3151
|
-
|
|
3155
|
+
z(s.$slots, "bar", {
|
|
3152
3156
|
query: y,
|
|
3153
3157
|
search: M
|
|
3154
3158
|
}, void 0, !0)
|
|
3155
3159
|
]),
|
|
3156
3160
|
columns: h(() => [
|
|
3157
|
-
|
|
3158
|
-
|
|
3161
|
+
z(s.$slots, "cols", {}, void 0, !0),
|
|
3162
|
+
z(s.$slots, "columns", {}, void 0, !0)
|
|
3159
3163
|
]),
|
|
3160
3164
|
_: 3
|
|
3161
3165
|
}, 16, ["modelValue", "open", "title", "width", "response-formatter", "selection", "row-key", "label-key", "search-key", "category-options", "type-options", "type-select-props", "table-props", "show-append"]),
|
|
3162
|
-
|
|
3166
|
+
z(s.$slots, "dialog", {
|
|
3163
3167
|
state: f,
|
|
3164
3168
|
form: y,
|
|
3165
3169
|
getData: M
|
|
3166
3170
|
}, void 0, !0)
|
|
3167
3171
|
], 64));
|
|
3168
3172
|
}
|
|
3169
|
-
}),
|
|
3173
|
+
}), un = /* @__PURE__ */ Re(sn, [["__scopeId", "data-v-b54ca11b"]]), cn = { class: "qy-form-section__heading" }, dn = {
|
|
3170
3174
|
key: 0,
|
|
3171
3175
|
class: "qy-form-section__title"
|
|
3172
|
-
},
|
|
3176
|
+
}, fn = {
|
|
3173
3177
|
key: 0,
|
|
3174
3178
|
class: "qy-form-section__description"
|
|
3175
|
-
},
|
|
3179
|
+
}, mn = { class: "qy-form-section__actions" }, yn = /* @__PURE__ */ qe({
|
|
3176
3180
|
name: "QyFormSection",
|
|
3177
3181
|
__name: "index",
|
|
3178
3182
|
props: {
|
|
@@ -3211,20 +3215,20 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3211
3215
|
}
|
|
3212
3216
|
]])
|
|
3213
3217
|
}, [
|
|
3214
|
-
|
|
3218
|
+
T("header", {
|
|
3215
3219
|
class: ke(["qy-form-section__header", t.headerClass]),
|
|
3216
3220
|
onClick: d
|
|
3217
3221
|
}, [
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
t.title ? (v(), A("div",
|
|
3222
|
+
T("div", cn, [
|
|
3223
|
+
z(y.$slots, "title", {}, () => [
|
|
3224
|
+
t.title ? (v(), A("div", dn, pe(t.title), 1)) : P("", !0)
|
|
3221
3225
|
], !0),
|
|
3222
|
-
|
|
3223
|
-
t.description ? (v(), A("div",
|
|
3226
|
+
z(y.$slots, "description", {}, () => [
|
|
3227
|
+
t.description ? (v(), A("div", fn, pe(t.description), 1)) : P("", !0)
|
|
3224
3228
|
], !0)
|
|
3225
3229
|
]),
|
|
3226
|
-
|
|
3227
|
-
|
|
3230
|
+
T("div", mn, [
|
|
3231
|
+
z(y.$slots, "actions", {}, void 0, !0),
|
|
3228
3232
|
t.collapsible ? (v(), A("button", {
|
|
3229
3233
|
key: 0,
|
|
3230
3234
|
type: "button",
|
|
@@ -3233,31 +3237,31 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3233
3237
|
}, pe(n.value ? "收起" : "展开"), 1)) : P("", !0)
|
|
3234
3238
|
])
|
|
3235
3239
|
], 2),
|
|
3236
|
-
Ye(
|
|
3240
|
+
Ye(T("div", {
|
|
3237
3241
|
class: ke(["qy-form-section__body", t.bodyClass])
|
|
3238
3242
|
}, [
|
|
3239
|
-
|
|
3243
|
+
z(y.$slots, "tip", {}, () => [
|
|
3240
3244
|
t.tip ? (v(), A("div", {
|
|
3241
3245
|
key: 0,
|
|
3242
3246
|
class: ke(["qy-form-section__tip", `is-${t.tipType}`])
|
|
3243
3247
|
}, pe(t.tip), 3)) : P("", !0)
|
|
3244
3248
|
], !0),
|
|
3245
|
-
|
|
3249
|
+
z(y.$slots, "default", {}, void 0, !0)
|
|
3246
3250
|
], 2), [
|
|
3247
3251
|
[pt, n.value]
|
|
3248
3252
|
])
|
|
3249
3253
|
], 2));
|
|
3250
3254
|
}
|
|
3251
|
-
}),
|
|
3255
|
+
}), pn = /* @__PURE__ */ Re(yn, [["__scopeId", "data-v-8149aa01"]]), gn = {
|
|
3252
3256
|
key: 0,
|
|
3253
3257
|
class: "qy-action-bar__left"
|
|
3254
|
-
},
|
|
3258
|
+
}, vn = {
|
|
3255
3259
|
key: 1,
|
|
3256
3260
|
class: "qy-action-bar__center"
|
|
3257
|
-
},
|
|
3261
|
+
}, hn = {
|
|
3258
3262
|
key: 2,
|
|
3259
3263
|
class: "qy-action-bar__right"
|
|
3260
|
-
},
|
|
3264
|
+
}, bn = /* @__PURE__ */ qe({
|
|
3261
3265
|
name: "QyActionBar",
|
|
3262
3266
|
__name: "index",
|
|
3263
3267
|
props: {
|
|
@@ -3287,160 +3291,167 @@ const Sl = { class: "qy-remark-image__field" }, kl = {
|
|
|
3287
3291
|
]]),
|
|
3288
3292
|
style: Pe(W.value)
|
|
3289
3293
|
}, [
|
|
3290
|
-
e.$slots.left ? (v(), A("div",
|
|
3291
|
-
|
|
3294
|
+
e.$slots.left ? (v(), A("div", gn, [
|
|
3295
|
+
z(e.$slots, "left", {}, void 0, !0)
|
|
3292
3296
|
])) : P("", !0),
|
|
3293
|
-
e.$slots.default ? (v(), A("div",
|
|
3294
|
-
|
|
3297
|
+
e.$slots.default ? (v(), A("div", vn, [
|
|
3298
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
3295
3299
|
])) : P("", !0),
|
|
3296
|
-
e.$slots.right ? (v(), A("div",
|
|
3297
|
-
|
|
3300
|
+
e.$slots.right ? (v(), A("div", hn, [
|
|
3301
|
+
z(e.$slots, "right", {}, void 0, !0)
|
|
3298
3302
|
])) : P("", !0)
|
|
3299
3303
|
], 6));
|
|
3300
3304
|
}
|
|
3301
|
-
}),
|
|
3302
|
-
|
|
3305
|
+
}), wn = /* @__PURE__ */ Re(bn, [["__scopeId", "data-v-ecba8f49"]]), qt = b($t, "QyUpload"), Bt = b(oo, "QyImage"), At = b(lo, "QyImagePreview"), It = b(pl, "QyImageUpload"), Rt = b(Je, "QyDialog"), Tt = b(Ml, "QyRemarkImage"), zt = b(so, "QyButton"), Ft = b(uo, "QyDropdown"), Pt = b(co, "QyInput"), Dt = b(fo, "QyInputNumber"), Mt = b(Ol, "QyMoneyInput"), Ot = b(mo, "QyDatePicker"), _t = b(yo, "QyCheckbox"), Lt = b(po, "QyCheckboxGroup"), Ut = b(go, "QyRadio"), Kt = b(vo, "QyAutocomplete"), Et = b(ho, "QyMenuActions"), jt = b(
|
|
3306
|
+
bo,
|
|
3303
3307
|
"QyTableColumnSettings"
|
|
3304
|
-
),
|
|
3305
|
-
|
|
3308
|
+
), Nt = b(wo, "QyRadioGroup"), Ht = b(_l, "QyRemoteSelect"), Zt = b(Ct, "QySearchInput"), Wt = b(
|
|
3309
|
+
Gl,
|
|
3306
3310
|
"QyRecordQuoteSearch"
|
|
3307
|
-
),
|
|
3308
|
-
|
|
3311
|
+
), Gt = b(tt, "QySelect"), Jt = b(St, "QyTreeSelect"), Xt = b(Vt, "QySelectionDialog"), Yt = b(
|
|
3312
|
+
un,
|
|
3309
3313
|
"QyLegacySelectionDialog"
|
|
3310
|
-
),
|
|
3311
|
-
t.component("QyDialog",
|
|
3312
|
-
},
|
|
3313
|
-
install:
|
|
3314
|
-
QyUpload:
|
|
3315
|
-
QyImage:
|
|
3316
|
-
QyImagePreview:
|
|
3317
|
-
openQyImagePreview:
|
|
3318
|
-
QyImageUpload:
|
|
3319
|
-
QyDialog:
|
|
3314
|
+
), ea = b(pn, "QyFormSection"), ta = b(wn, "QyActionBar"), aa = b(So, "QyFilePicker"), oa = b(ko, "QySwitch"), la = b(We, "QyTag"), na = b(Qo, "QyBadge"), ra = b(xo, "QyCascader"), ia = b($o, "QyTooltip"), sa = b(Co, "QyPopover"), ua = b(Vo, "QySkeleton"), ca = b(qo, "QySkeletonItem"), da = b(Bo, "QyTabs"), fa = b(Ao, "QyTabPane"), ma = b(Io, "QySteps"), ya = b(Ro, "QyStep"), pa = b(To, "QyFullscreen"), ga = b(Fo, "QyRow"), va = b(Po, "QyCol"), ha = b(Do, "QyContainer"), ba = b(Mo, "QyAside"), wa = b(Oo, "QyMain"), Sa = b(_o, "QyDescriptions"), ka = b(Lo, "QyDescriptionsItem"), Qa = b(Uo, "QyCollapse"), xa = b(Ko, "QyCollapseItem"), $a = b(Eo, "QyLink"), Ca = b(jo, "QyDivider"), Va = b(No, "QyEmpty"), qa = b(Ho, "QyAlert"), Ba = b(Zo, "QyCard"), Aa = b(Wo, "QyResult"), Ia = b(Go, "QyScrollbar"), Ra = b(Jo, "QyProgress"), Ta = b(Xo, "QyStatistic"), za = b(Yo, "QyAvatar"), Fa = b(el, "QyTree"), Pa = b(zo, "QyIconPicker"), Da = b(al, "QyDrawer"), Sn = (t) => {
|
|
3315
|
+
Qt.install(t), t.component("QyDialog", Rt), t.component("QyDrawer", Da), t.component("QyUpload", qt), t.component("QyImage", Bt), t.component("QyImagePreview", At), t.component("QyImageUpload", It), t.component("QyRemarkImage", Tt), t.component("QyButton", zt), t.component("QyDropdown", Ft), t.component("QyInput", Pt), t.component("QyInputNumber", Dt), t.component("QyMoneyInput", Mt), t.component("QyDatePicker", Ot), t.component("QyCheckbox", _t), t.component("QyCheckboxGroup", Lt), t.component("QyRadio", Ut), t.component("QyAutocomplete", Kt), t.component("QyMenuActions", Et), t.component("QyTableColumnSettings", jt), t.component("QyRadioGroup", Nt), t.component("QyRemoteSelect", Ht), t.component("QySearchInput", Zt), t.component("QyRecordQuoteSearch", Wt), t.component("QySelect", Gt), t.component("QyTreeSelect", Jt), t.component("QySelectionDialog", Xt), t.component("QyLegacySelectionDialog", Yt), t.component("QyFormSection", ea), t.component("QyActionBar", ta), t.component("QyFilePicker", aa), t.component("QySwitch", oa), t.component("QyTag", la), t.component("QyBadge", na), t.component("QyCascader", ra), t.component("QyTooltip", ia), t.component("QyPopover", sa), t.component("QySkeleton", ua), t.component("QySkeletonItem", ca), t.component("QyTabs", da), t.component("QyTabPane", fa), t.component("QySteps", ma), t.component("QyStep", ya), t.component("QyFullscreen", pa), t.component("QyIcon", kt), t.component("QyIconPicker", Pa), t.component("QyRow", ga), t.component("QyCol", va), t.component("QyContainer", ha), t.component("QyAside", ba), t.component("QyMain", wa), t.component("QyDescriptions", Sa), t.component("QyDescriptionsItem", ka), t.component("QyCollapse", Qa), t.component("QyCollapseItem", xa), t.component("QyLink", $a), t.component("QyDivider", Ca), t.component("QyEmpty", Va), t.component("QyAlert", qa), t.component("QyCard", Ba), t.component("QyResult", Aa), t.component("QyScrollbar", Ia), t.component("QyProgress", Ra), t.component("QyStatistic", Ta), t.component("QyAvatar", za), t.component("QyTree", Fa);
|
|
3316
|
+
}, Rr = {
|
|
3317
|
+
install: Sn,
|
|
3318
|
+
QyUpload: qt,
|
|
3319
|
+
QyImage: Bt,
|
|
3320
|
+
QyImagePreview: At,
|
|
3321
|
+
openQyImagePreview: ol,
|
|
3322
|
+
QyImageUpload: It,
|
|
3323
|
+
QyDialog: Rt,
|
|
3320
3324
|
QyButton: zt,
|
|
3321
|
-
QyDropdown:
|
|
3322
|
-
QyInput:
|
|
3323
|
-
QyInputNumber:
|
|
3324
|
-
QyMoneyInput:
|
|
3325
|
-
QyDatePicker:
|
|
3326
|
-
QyCheckbox:
|
|
3327
|
-
QyCheckboxGroup:
|
|
3325
|
+
QyDropdown: Ft,
|
|
3326
|
+
QyInput: Pt,
|
|
3327
|
+
QyInputNumber: Dt,
|
|
3328
|
+
QyMoneyInput: Mt,
|
|
3329
|
+
QyDatePicker: Ot,
|
|
3330
|
+
QyCheckbox: _t,
|
|
3331
|
+
QyCheckboxGroup: Lt,
|
|
3328
3332
|
QyRadio: Ut,
|
|
3329
|
-
QyAutocomplete:
|
|
3330
|
-
QyMenuActions:
|
|
3331
|
-
QyTableColumnSettings:
|
|
3332
|
-
QyRadioGroup:
|
|
3333
|
-
QyRemoteSelect:
|
|
3334
|
-
QySearchInput:
|
|
3335
|
-
QyRecordQuoteSearch:
|
|
3336
|
-
QySelect:
|
|
3337
|
-
QyTreeSelect:
|
|
3338
|
-
QySelectionDialog:
|
|
3339
|
-
QyLegacySelectionDialog:
|
|
3340
|
-
QyFormSection:
|
|
3341
|
-
QyActionBar:
|
|
3342
|
-
QyFilePicker:
|
|
3343
|
-
QySwitch:
|
|
3344
|
-
QyTag:
|
|
3345
|
-
QyBadge:
|
|
3346
|
-
QyCascader:
|
|
3333
|
+
QyAutocomplete: Kt,
|
|
3334
|
+
QyMenuActions: Et,
|
|
3335
|
+
QyTableColumnSettings: jt,
|
|
3336
|
+
QyRadioGroup: Nt,
|
|
3337
|
+
QyRemoteSelect: Ht,
|
|
3338
|
+
QySearchInput: Zt,
|
|
3339
|
+
QyRecordQuoteSearch: Wt,
|
|
3340
|
+
QySelect: Gt,
|
|
3341
|
+
QyTreeSelect: Jt,
|
|
3342
|
+
QySelectionDialog: Xt,
|
|
3343
|
+
QyLegacySelectionDialog: Yt,
|
|
3344
|
+
QyFormSection: ea,
|
|
3345
|
+
QyActionBar: ta,
|
|
3346
|
+
QyFilePicker: aa,
|
|
3347
|
+
QySwitch: oa,
|
|
3348
|
+
QyTag: la,
|
|
3349
|
+
QyBadge: na,
|
|
3350
|
+
QyCascader: ra,
|
|
3347
3351
|
QyTooltip: ia,
|
|
3348
|
-
QyPopover:
|
|
3349
|
-
QySkeleton:
|
|
3350
|
-
QySkeletonItem:
|
|
3351
|
-
QyTabs:
|
|
3352
|
-
QyTabPane:
|
|
3353
|
-
QySteps:
|
|
3354
|
-
QyStep:
|
|
3355
|
-
QyFullscreen:
|
|
3352
|
+
QyPopover: sa,
|
|
3353
|
+
QySkeleton: ua,
|
|
3354
|
+
QySkeletonItem: ca,
|
|
3355
|
+
QyTabs: da,
|
|
3356
|
+
QyTabPane: fa,
|
|
3357
|
+
QySteps: ma,
|
|
3358
|
+
QyStep: ya,
|
|
3359
|
+
QyFullscreen: pa,
|
|
3360
|
+
QyDrawer: Da,
|
|
3356
3361
|
QyIcon: kt,
|
|
3357
|
-
QyIconPicker:
|
|
3358
|
-
QyRow:
|
|
3359
|
-
QyCol:
|
|
3360
|
-
QyContainer:
|
|
3361
|
-
QyAside:
|
|
3362
|
-
QyMain:
|
|
3363
|
-
QyDescriptions:
|
|
3364
|
-
QyDescriptionsItem:
|
|
3365
|
-
QyCollapse:
|
|
3362
|
+
QyIconPicker: Pa,
|
|
3363
|
+
QyRow: ga,
|
|
3364
|
+
QyCol: va,
|
|
3365
|
+
QyContainer: ha,
|
|
3366
|
+
QyAside: ba,
|
|
3367
|
+
QyMain: wa,
|
|
3368
|
+
QyDescriptions: Sa,
|
|
3369
|
+
QyDescriptionsItem: ka,
|
|
3370
|
+
QyCollapse: Qa,
|
|
3366
3371
|
QyCollapseItem: xa,
|
|
3367
|
-
QyLink:
|
|
3368
|
-
QyDivider:
|
|
3369
|
-
QyEmpty:
|
|
3370
|
-
QyAlert:
|
|
3371
|
-
QyCard:
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3372
|
+
QyLink: $a,
|
|
3373
|
+
QyDivider: Ca,
|
|
3374
|
+
QyEmpty: Va,
|
|
3375
|
+
QyAlert: qa,
|
|
3376
|
+
QyCard: Ba,
|
|
3377
|
+
QyResult: Aa,
|
|
3378
|
+
QyScrollbar: Ia,
|
|
3379
|
+
QyProgress: Ra,
|
|
3380
|
+
QyStatistic: Ta,
|
|
3381
|
+
QyAvatar: za,
|
|
3382
|
+
QyTree: Fa,
|
|
3383
|
+
QyRemarkImage: Tt,
|
|
3384
|
+
QyLoading: Qt,
|
|
3385
|
+
vQyLoading: tl,
|
|
3386
|
+
openQyLoading: ll
|
|
3378
3387
|
};
|
|
3379
3388
|
export {
|
|
3380
|
-
|
|
3389
|
+
ya as $,
|
|
3381
3390
|
Bt as A,
|
|
3382
3391
|
At as B,
|
|
3383
|
-
|
|
3392
|
+
It as C,
|
|
3384
3393
|
Pt as D,
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3394
|
+
Dt as E,
|
|
3395
|
+
Yt as F,
|
|
3396
|
+
$a as G,
|
|
3397
|
+
wa as H,
|
|
3398
|
+
Et as I,
|
|
3399
|
+
Mt as J,
|
|
3400
|
+
sa as K,
|
|
3401
|
+
Ra as L,
|
|
3402
|
+
Ut as M,
|
|
3403
|
+
Nt as N,
|
|
3404
|
+
Wt as O,
|
|
3405
|
+
Tt as P,
|
|
3406
|
+
ta as Q,
|
|
3407
|
+
Ht as R,
|
|
3408
|
+
Aa as S,
|
|
3409
|
+
ga as T,
|
|
3410
|
+
Ia as U,
|
|
3411
|
+
Zt as V,
|
|
3412
|
+
Gt as W,
|
|
3413
|
+
Xt as X,
|
|
3414
|
+
ua as Y,
|
|
3415
|
+
ca as Z,
|
|
3416
|
+
Ta as _,
|
|
3417
|
+
qa as a,
|
|
3418
|
+
ma as a0,
|
|
3419
|
+
oa as a1,
|
|
3420
|
+
fa as a2,
|
|
3421
|
+
jt as a3,
|
|
3422
|
+
da as a4,
|
|
3423
|
+
la as a5,
|
|
3424
|
+
ia as a6,
|
|
3425
|
+
Fa as a7,
|
|
3426
|
+
Jt as a8,
|
|
3427
|
+
qt as a9,
|
|
3428
|
+
Rr as aa,
|
|
3429
|
+
Vl as ab,
|
|
3430
|
+
st as ac,
|
|
3431
|
+
ut as ad,
|
|
3432
|
+
ba as b,
|
|
3433
|
+
Kt as c,
|
|
3434
|
+
za as d,
|
|
3435
|
+
na as e,
|
|
3425
3436
|
zt as f,
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3437
|
+
Ba as g,
|
|
3438
|
+
ra as h,
|
|
3439
|
+
_t as i,
|
|
3440
|
+
Lt as j,
|
|
3441
|
+
va as k,
|
|
3442
|
+
Qa as l,
|
|
3432
3443
|
xa as m,
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3444
|
+
ha as n,
|
|
3445
|
+
Ot as o,
|
|
3446
|
+
Sa as p,
|
|
3447
|
+
ka as q,
|
|
3448
|
+
Rt as r,
|
|
3449
|
+
Ca as s,
|
|
3450
|
+
Da as t,
|
|
3451
|
+
Ft as u,
|
|
3452
|
+
Va as v,
|
|
3453
|
+
aa as w,
|
|
3454
|
+
ea as x,
|
|
3455
|
+
pa as y,
|
|
3456
|
+
Pa as z
|
|
3446
3457
|
};
|