@qynpm/ui 1.0.28 → 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 +167 -8
- package/dist/index.cjs +9 -4
- package/dist/index.mjs +90 -62
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-aside/index.cjs +1 -0
- package/dist/qy-aside/index.mjs +7 -0
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/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-col/index.cjs +1 -0
- package/dist/qy-col/index.mjs +7 -0
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +1 -1
- package/dist/qy-container/index.cjs +1 -0
- package/dist/qy-container/index.mjs +7 -0
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/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-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 +2 -2
- package/dist/qy-fullscreen/index.cjs +1 -0
- package/dist/qy-fullscreen/index.mjs +7 -0
- package/dist/qy-icon/index.cjs +1 -0
- package/dist/qy-icon/index.mjs +11 -0
- package/dist/qy-icon-picker/index.cjs +5 -0
- package/dist/qy-icon-picker/index.mjs +11 -0
- 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 +4 -5
- package/dist/qy-input-number/index.cjs +2 -2
- package/dist/qy-input-number/index.mjs +2 -2
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +1 -1
- package/dist/qy-loading/index.cjs +1 -0
- package/dist/qy-loading/index.mjs +9 -0
- package/dist/qy-main/index.cjs +1 -0
- package/dist/qy-main/index.mjs +7 -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-popover/index.cjs +1 -1
- package/dist/qy-popover/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-row/index.cjs +1 -0
- package/dist/qy-row/index.mjs +7 -0
- 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-statistic/index.cjs +1 -0
- package/dist/qy-statistic/index.mjs +7 -0
- 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-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +1 -1
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/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-DleLvEzf.mjs → index-4wZQbpy3.mjs} +1039 -1002
- package/dist/shared/index-AirHUQwm.cjs +1 -0
- package/dist/shared/index-B1zDCCqy.mjs +78 -0
- package/dist/shared/index-B6xIO6kg.cjs +1 -0
- package/dist/shared/{index-B9RYNZUh.cjs → index-BWDaV6FO.cjs} +1 -1
- package/dist/shared/index-BmJPEXUM.mjs +222 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-aqtfjdVm.mjs → index-Bs2OQHXk.mjs} +33 -31
- package/dist/shared/index-BvKFjDgX.cjs +1 -0
- package/dist/shared/index-CaNxcPSD.mjs +254 -0
- package/dist/shared/{index-DEkng5wh.cjs → index-CwzztWPU.cjs} +1 -1
- package/dist/shared/index-D-YyFaZ6.cjs +1 -0
- package/dist/shared/{index-BTL45WYB.cjs → index-DLLDXfic.cjs} +1 -1
- package/dist/shared/{index-CVoiIRas.mjs → index-D_rRdrge.mjs} +1 -1
- package/dist/shared/{index-CYn7TvRx.mjs → index-DfR8Z9MN.mjs} +1 -1
- package/dist/shared/index-Dvf1zJ7h.cjs +1 -0
- package/dist/shared/index-rcu9CzSn.cjs +1 -0
- package/dist/shared/index-xuTVtF4x.mjs +6 -0
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BaIOvoQn.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-Bk0kLg5l.mjs +34 -0
- package/dist/shared/index.vue_vue_type_script_lang-BnmY1ndj.mjs +77 -0
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +31 -0
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +43 -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-BXnZt9UT.mjs +63 -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-D7BlbHN5.cjs +1 -0
- 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-BJXS2dVf.mjs +126 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CL_IFx-Z.cjs +1 -0
- 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-DXQ9l1XF.mjs +286 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-lmRmXLwB.cjs +1 -0
- package/index.d.ts +156 -23
- package/package.json +74 -1
- package/qy-aside/index.d.ts +47 -0
- package/qy-col/index.d.ts +65 -0
- package/qy-container/index.d.ts +49 -0
- package/qy-drawer/index.d.ts +55 -0
- package/qy-fullscreen/index.d.ts +72 -0
- package/qy-icon/index.d.ts +105 -0
- package/qy-icon-picker/index.d.ts +56 -0
- package/qy-loading/index.d.ts +25 -0
- package/qy-main/index.d.ts +45 -0
- package/qy-result/index.d.ts +64 -0
- package/qy-row/index.d.ts +59 -0
- package/qy-statistic/index.d.ts +61 -0
- package/dist/shared/index-B8phg478.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CmQLfhRo.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DobP199g.mjs +0 -63
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C6urLjSf.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVxWn-Vs.mjs +0 -121
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Dm1r1WBK.cjs +0 -1
- /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-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-WP9Dbscv.mjs → index-D6ybNdgn.mjs} +0 -0
- /package/dist/shared/{index-DHJf8Zto.mjs → index-kiAR2M_e.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CWz689KH.cjs → index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DVqGYfD9.mjs → index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DIMCVnQm.mjs → index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CJhIFeBC.mjs → index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CnL4aeg1.cjs → index.vue_vue_type_style_index_0_lang-D9DraThL.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Cb4yMk-r.cjs → index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-D1kpIund.mjs → index.vue_vue_type_style_index_0_lang-DSur831A.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs → index.vue_vue_type_style_index_0_lang-DUgOOzEZ.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs → index.vue_vue_type_style_index_0_lang-DWiolYb3.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BtbAft4t.cjs → index.vue_vue_type_style_index_0_lang-DccRGtZE.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Q2gFF0PP.cjs → index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-dLpQXf6x.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +0 -0
|
@@ -1,56 +1,69 @@
|
|
|
1
|
-
import { ElUpload as
|
|
2
|
-
import { ref as q, onMounted as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import { ElMessage 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 {
|
|
38
|
-
import {
|
|
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 {
|
|
51
|
-
import {
|
|
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
|
+
import { Q as kt } from "./index-xuTVtF4x.mjs";
|
|
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";
|
|
52
65
|
/*! js-cookie v3.0.8 | MIT */
|
|
53
|
-
function
|
|
66
|
+
function Ke(t) {
|
|
54
67
|
for (var D = 1; D < arguments.length; D++) {
|
|
55
68
|
var W = arguments[D];
|
|
56
69
|
for (var e in W)
|
|
@@ -58,7 +71,7 @@ function _e(t) {
|
|
|
58
71
|
}
|
|
59
72
|
return t;
|
|
60
73
|
}
|
|
61
|
-
var
|
|
74
|
+
var nl = {
|
|
62
75
|
read: function(t) {
|
|
63
76
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
64
77
|
},
|
|
@@ -72,7 +85,7 @@ var Rl = {
|
|
|
72
85
|
function Ge(t, D) {
|
|
73
86
|
function W(n, H, d) {
|
|
74
87
|
if (!(typeof document > "u")) {
|
|
75
|
-
d =
|
|
88
|
+
d = Ke({}, D, d), typeof d.expires == "number" && (d.expires = new Date(Date.now() + d.expires * 864e5)), d.expires && (d.expires = d.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
76
89
|
var y = "";
|
|
77
90
|
for (var f in d)
|
|
78
91
|
d[f] && (y += "; " + f, d[f] !== !0 && (y += "=" + d[f].split(";")[0]));
|
|
@@ -101,16 +114,16 @@ function Ge(t, D) {
|
|
|
101
114
|
W(
|
|
102
115
|
n,
|
|
103
116
|
"",
|
|
104
|
-
|
|
117
|
+
Ke({}, H, {
|
|
105
118
|
expires: -1
|
|
106
119
|
})
|
|
107
120
|
);
|
|
108
121
|
},
|
|
109
122
|
withAttributes: function(n) {
|
|
110
|
-
return Ge(this.converter,
|
|
123
|
+
return Ge(this.converter, Ke({}, this.attributes, n));
|
|
111
124
|
},
|
|
112
125
|
withConverter: function(n) {
|
|
113
|
-
return Ge(
|
|
126
|
+
return Ge(Ke({}, this.converter, n), this.attributes);
|
|
114
127
|
}
|
|
115
128
|
},
|
|
116
129
|
{
|
|
@@ -119,15 +132,15 @@ function Ge(t, D) {
|
|
|
119
132
|
}
|
|
120
133
|
);
|
|
121
134
|
}
|
|
122
|
-
var
|
|
123
|
-
const
|
|
124
|
-
function
|
|
125
|
-
return
|
|
135
|
+
var xt = Ge(nl, { path: "/" });
|
|
136
|
+
const rl = "Admin-Token";
|
|
137
|
+
function il(t = rl) {
|
|
138
|
+
return xt.get(t);
|
|
126
139
|
}
|
|
127
|
-
const
|
|
140
|
+
const sl = { class: "qy-upload__hint" }, ul = ["placeholder", "disabled"], cl = ["src"], dl = {
|
|
128
141
|
key: 1,
|
|
129
142
|
class: "qy-upload__tip"
|
|
130
|
-
},
|
|
143
|
+
}, fl = { class: "error" }, ml = { class: "error" }, yl = /* @__PURE__ */ Object.assign({
|
|
131
144
|
name: "QyUpload"
|
|
132
145
|
}, {
|
|
133
146
|
__name: "index",
|
|
@@ -195,92 +208,92 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
195
208
|
setup(t, { expose: D, emit: W }) {
|
|
196
209
|
const e = t, n = W, H = q(null), d = q([]), y = q(null), f = q(null), I = [];
|
|
197
210
|
let x = !1;
|
|
198
|
-
const
|
|
199
|
-
|
|
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);
|
|
212
|
+
Xe(() => {
|
|
200
213
|
e.modelValue === void 0 && p(e.defaultValue);
|
|
201
214
|
});
|
|
202
|
-
const
|
|
215
|
+
const le = F(() => ({ large: "160px", default: "140px", small: "80px" })[e.size] ?? e.size), ne = F(() => e.disabled), re = F(
|
|
203
216
|
() => {
|
|
204
|
-
var
|
|
205
|
-
return e.isShowTip && (e.fileSize || ((
|
|
217
|
+
var o;
|
|
218
|
+
return e.isShowTip && (e.fileSize || ((o = Z.value) == null ? void 0 : o.length));
|
|
206
219
|
}
|
|
207
220
|
), Z = F(() => {
|
|
208
|
-
var
|
|
209
|
-
return (
|
|
210
|
-
}),
|
|
211
|
-
const
|
|
212
|
-
return d.value.length >=
|
|
221
|
+
var o;
|
|
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(() => {
|
|
224
|
+
const o = e.supportVideo ? 1 : e.limit;
|
|
225
|
+
return d.value.length >= o;
|
|
213
226
|
}), V = F(
|
|
214
|
-
() => Z.value.map((
|
|
227
|
+
() => Z.value.map((o) => `.${o}`).join(",")
|
|
215
228
|
), a = F(() => ({
|
|
216
|
-
"qy-upload--reached-limit":
|
|
229
|
+
"qy-upload--reached-limit": w.value,
|
|
217
230
|
"qy-upload--disabled": e.disabled,
|
|
218
231
|
"qy-upload--video": e.supportVideo,
|
|
219
232
|
"qy-upload--without-text": !e.showText && !e.showPasteInput
|
|
220
233
|
}));
|
|
221
|
-
fe(
|
|
234
|
+
fe(J, () => {
|
|
222
235
|
x || ie();
|
|
223
236
|
}), fe(
|
|
224
237
|
() => e.modelValue,
|
|
225
|
-
(
|
|
226
|
-
|
|
238
|
+
(o) => {
|
|
239
|
+
o !== void 0 && p(o);
|
|
227
240
|
},
|
|
228
241
|
{ immediate: !0, deep: !0 }
|
|
229
242
|
);
|
|
230
|
-
function o
|
|
231
|
-
return Array.isArray(
|
|
243
|
+
function l(o) {
|
|
244
|
+
return Array.isArray(o) ? o.filter(Boolean) : o ? String(o).split(",").filter(Boolean) : [];
|
|
232
245
|
}
|
|
233
|
-
function
|
|
234
|
-
return Array.isArray(
|
|
235
|
-
files: o
|
|
236
|
-
text:
|
|
246
|
+
function U(o) {
|
|
247
|
+
return Array.isArray(o) ? { files: o, text: "" } : typeof o == "string" ? { files: l(o), text: "" } : o && typeof o == "object" ? {
|
|
248
|
+
files: l(o.files),
|
|
249
|
+
text: o.text ?? ""
|
|
237
250
|
} : { files: [], text: "" };
|
|
238
251
|
}
|
|
239
|
-
function te(
|
|
240
|
-
return
|
|
241
|
-
name: String(i).split("/").pop() || `file-${
|
|
252
|
+
function te(o = []) {
|
|
253
|
+
return o.map((i, k) => ({
|
|
254
|
+
name: String(i).split("/").pop() || `file-${k}`,
|
|
242
255
|
url: i,
|
|
243
256
|
status: "success",
|
|
244
|
-
uid: Date.now() +
|
|
257
|
+
uid: Date.now() + k
|
|
245
258
|
}));
|
|
246
259
|
}
|
|
247
|
-
function s(
|
|
248
|
-
const i = new Set(
|
|
249
|
-
(
|
|
260
|
+
function s(o) {
|
|
261
|
+
const i = new Set(o.map((Q) => Q.url)), k = d.value.filter(
|
|
262
|
+
(Q) => Q.status === "uploading" && !i.has(Q.url)
|
|
250
263
|
);
|
|
251
|
-
return [...
|
|
264
|
+
return [...o, ...k];
|
|
252
265
|
}
|
|
253
|
-
function p(
|
|
254
|
-
const i =
|
|
255
|
-
x = !0,
|
|
266
|
+
function p(o) {
|
|
267
|
+
const i = U(o);
|
|
268
|
+
x = !0, J.value = i.text, d.value = s(te(i.files)), Oe(() => {
|
|
256
269
|
x = !1;
|
|
257
270
|
});
|
|
258
271
|
}
|
|
259
|
-
function
|
|
260
|
-
return e.valueFormat === "array" ?
|
|
272
|
+
function C(o) {
|
|
273
|
+
return e.valueFormat === "array" ? o.files : e.valueFormat === "string" ? o.files.join(",") : o;
|
|
261
274
|
}
|
|
262
275
|
function g() {
|
|
263
|
-
var
|
|
264
|
-
(
|
|
276
|
+
var o;
|
|
277
|
+
(o = y.value) == null || o.focus();
|
|
265
278
|
}
|
|
266
|
-
function B(
|
|
267
|
-
|
|
279
|
+
function B(o) {
|
|
280
|
+
o.target.value = "";
|
|
268
281
|
}
|
|
269
|
-
function ie(
|
|
270
|
-
const
|
|
271
|
-
n("update:modelValue", Q
|
|
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);
|
|
272
285
|
}
|
|
273
|
-
function me(
|
|
274
|
-
ie(i), n("remove",
|
|
286
|
+
function me(o, i) {
|
|
287
|
+
ie(i), n("remove", o, i);
|
|
275
288
|
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
const i = (
|
|
279
|
-
return i.includes(".") && ((
|
|
289
|
+
function we(o) {
|
|
290
|
+
var k;
|
|
291
|
+
const i = (o == null ? void 0 : o.name) || "";
|
|
292
|
+
return i.includes(".") && ((k = i.split(".").pop()) == null ? void 0 : k.toLowerCase()) || "";
|
|
280
293
|
}
|
|
281
|
-
function
|
|
282
|
-
var
|
|
283
|
-
const i = ((
|
|
294
|
+
function Qe(o) {
|
|
295
|
+
var K, oe, se;
|
|
296
|
+
const i = ((oe = (K = o == null ? void 0 : o.type) == null ? void 0 : K.toLowerCase) == null ? void 0 : oe.call(K)) || "", k = {
|
|
284
297
|
"image/jpeg": ["jpg", "jpeg"],
|
|
285
298
|
"image/png": ["png"],
|
|
286
299
|
"image/gif": ["gif"],
|
|
@@ -291,193 +304,193 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
291
304
|
"video/x-msvideo": ["avi"],
|
|
292
305
|
"video/webm": ["webm"]
|
|
293
306
|
};
|
|
294
|
-
if (
|
|
295
|
-
const
|
|
296
|
-
return
|
|
297
|
-
}
|
|
298
|
-
function m(
|
|
299
|
-
const i =
|
|
300
|
-
return [i, ...
|
|
301
|
-
(
|
|
307
|
+
if (k[i]) return k[i];
|
|
308
|
+
const Q = (se = i.split("/")[1]) == null ? void 0 : se.split("+")[0];
|
|
309
|
+
return Q ? [Q] : [];
|
|
310
|
+
}
|
|
311
|
+
function m(o) {
|
|
312
|
+
const i = we(o), k = Qe(o);
|
|
313
|
+
return [i, ...k].some(
|
|
314
|
+
(Q) => Z.value.includes(Q)
|
|
302
315
|
);
|
|
303
316
|
}
|
|
304
|
-
function Y(
|
|
305
|
-
return
|
|
317
|
+
function Y(o) {
|
|
318
|
+
return o.size / 1024 / 1024 < e.fileSize ? m(o) ? !0 : (he.warning(
|
|
306
319
|
`格式不支持,仅允许: ${Z.value.join("/")}`
|
|
307
|
-
), !1) : (
|
|
320
|
+
), !1) : (he.warning(`文件大小不能超过${e.fileSize}M`), !1);
|
|
308
321
|
}
|
|
309
|
-
async function r(
|
|
310
|
-
const
|
|
322
|
+
async function r(o, i, k, Q) {
|
|
323
|
+
const K = S(o);
|
|
311
324
|
try {
|
|
312
|
-
const
|
|
313
|
-
file:
|
|
314
|
-
formData:
|
|
325
|
+
const oe = await e.uploadRequest({
|
|
326
|
+
file: o,
|
|
327
|
+
formData: K,
|
|
315
328
|
api: e.api,
|
|
316
329
|
name: e.name,
|
|
317
330
|
tokenKey: e.tokenKey,
|
|
318
331
|
extraData: e.extraData
|
|
319
|
-
}), se = ee(
|
|
332
|
+
}), se = ee(oe);
|
|
320
333
|
if (!se) {
|
|
321
|
-
const
|
|
322
|
-
|
|
334
|
+
const ge = new Error("上传失败,未返回文件地址");
|
|
335
|
+
he.error(ge.message), n("error", ge), k == null || k(ge);
|
|
323
336
|
return;
|
|
324
337
|
}
|
|
325
|
-
|
|
326
|
-
} catch (
|
|
327
|
-
|
|
338
|
+
he.success("上传成功"), i == null || i({ ...typeof oe == "object" && oe ? oe : {}, url: se });
|
|
339
|
+
} catch (oe) {
|
|
340
|
+
he.error("上传失败"), n("error", oe), k == null || k(oe);
|
|
328
341
|
} finally {
|
|
329
|
-
|
|
342
|
+
Q.close();
|
|
330
343
|
}
|
|
331
344
|
}
|
|
332
|
-
function
|
|
345
|
+
function S(o) {
|
|
333
346
|
const i = new FormData();
|
|
334
|
-
return i.append(e.name,
|
|
335
|
-
}
|
|
336
|
-
function ee(
|
|
337
|
-
var
|
|
338
|
-
if (typeof
|
|
339
|
-
const i =
|
|
340
|
-
return Array.isArray(
|
|
341
|
-
}
|
|
342
|
-
function Se(
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
target:
|
|
347
|
+
return i.append(e.name, o), e.extraData && Object.entries(e.extraData).forEach(([k, Q]) => i.append(k, Q)), i;
|
|
348
|
+
}
|
|
349
|
+
function ee(o) {
|
|
350
|
+
var Q, K;
|
|
351
|
+
if (typeof o == "string") return o;
|
|
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) ?? "";
|
|
353
|
+
return Array.isArray(k) ? k[0] || "" : k || "";
|
|
354
|
+
}
|
|
355
|
+
function Se(o, i, k, Q) {
|
|
356
|
+
var ot, lt;
|
|
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({
|
|
358
|
+
target: K,
|
|
346
359
|
text: "上传中",
|
|
347
360
|
background: "rgba(255,255,255,0.7)"
|
|
348
361
|
});
|
|
349
362
|
if (e.uploadRequest) {
|
|
350
|
-
r(
|
|
363
|
+
r(o, k, Q, oe);
|
|
351
364
|
return;
|
|
352
365
|
}
|
|
353
|
-
const se = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"),
|
|
354
|
-
I.push(
|
|
366
|
+
const se = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"), ge = S(o), ve = new XMLHttpRequest();
|
|
367
|
+
I.push(ve);
|
|
355
368
|
const Ce = () => {
|
|
356
|
-
const ye = I.indexOf(
|
|
357
|
-
ye !== -1 && I.splice(ye, 1),
|
|
369
|
+
const ye = I.indexOf(ve);
|
|
370
|
+
ye !== -1 && I.splice(ye, 1), oe.close();
|
|
358
371
|
};
|
|
359
|
-
|
|
360
|
-
const at =
|
|
361
|
-
at &&
|
|
372
|
+
ve.open("POST", se);
|
|
373
|
+
const at = il(e.tokenKey);
|
|
374
|
+
at && ve.setRequestHeader("Authorization", `Bearer ${at}`), ve.upload.onprogress = (ye) => {
|
|
362
375
|
ye.total > 0 && (i == null || i({ percent: ye.loaded / ye.total * 100 }));
|
|
363
|
-
},
|
|
364
|
-
if (Ce(),
|
|
365
|
-
const ye = `上传失败 (HTTP ${
|
|
366
|
-
|
|
376
|
+
}, ve.onload = () => {
|
|
377
|
+
if (Ce(), ve.status < 200 || ve.status >= 300) {
|
|
378
|
+
const ye = `上传失败 (HTTP ${ve.status})`;
|
|
379
|
+
he.error(ye), n("error", { msg: ye, status: ve.status }), Q == null || Q(new Error(ye));
|
|
367
380
|
return;
|
|
368
381
|
}
|
|
369
382
|
try {
|
|
370
|
-
const ye = JSON.parse(
|
|
371
|
-
ye.code === 200 && ye.urls ? (
|
|
383
|
+
const ye = JSON.parse(ve.responseText);
|
|
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));
|
|
372
385
|
} catch {
|
|
373
|
-
|
|
386
|
+
he.error("上传失败,响应格式错误"), n("error", new Error("Response parse error")), Q == null || Q(new Error("Response parse error"));
|
|
374
387
|
}
|
|
375
|
-
},
|
|
376
|
-
Ce(),
|
|
377
|
-
},
|
|
378
|
-
}
|
|
379
|
-
function $e(
|
|
380
|
-
return e.disabled ? !1 : Y(
|
|
381
|
-
}
|
|
382
|
-
function de(
|
|
383
|
-
const
|
|
384
|
-
(
|
|
385
|
-
var
|
|
386
|
-
return
|
|
388
|
+
}, ve.onerror = () => {
|
|
389
|
+
Ce(), he.error("上传失败,网络异常"), n("error", new Error("Network error")), Q == null || Q(new Error("Network error"));
|
|
390
|
+
}, ve.send(ge);
|
|
391
|
+
}
|
|
392
|
+
function $e(o) {
|
|
393
|
+
return e.disabled ? !1 : Y(o);
|
|
394
|
+
}
|
|
395
|
+
function de(o, i) {
|
|
396
|
+
const k = d.value.find(
|
|
397
|
+
(Q) => {
|
|
398
|
+
var K;
|
|
399
|
+
return Q.uid === (o == null ? void 0 : o.uid) || ((K = Q.raw) == null ? void 0 : K.uid) === (o == null ? void 0 : o.uid);
|
|
387
400
|
}
|
|
388
401
|
);
|
|
389
|
-
|
|
402
|
+
k && (k.url = i, k.status = "success");
|
|
390
403
|
}
|
|
391
|
-
function De(
|
|
404
|
+
function De(o) {
|
|
392
405
|
Se(
|
|
393
|
-
|
|
394
|
-
|
|
406
|
+
o.file,
|
|
407
|
+
o.onProgress,
|
|
395
408
|
(i) => {
|
|
396
|
-
de(
|
|
409
|
+
de(o.file, i.url), o.onSuccess(i), ie(), n("success", i);
|
|
397
410
|
},
|
|
398
|
-
(i) =>
|
|
411
|
+
(i) => o.onError(i)
|
|
399
412
|
);
|
|
400
413
|
}
|
|
401
|
-
function Le(
|
|
402
|
-
var
|
|
403
|
-
if (!
|
|
404
|
-
const i = ((
|
|
414
|
+
function Le(o) {
|
|
415
|
+
var Q;
|
|
416
|
+
if (!o.url) return;
|
|
417
|
+
const i = ((Q = o.url.split(".").pop()) == null ? void 0 : Q.toLowerCase()) || "";
|
|
405
418
|
if (["mp4", "mov", "avi", "webm"].includes(i)) {
|
|
406
|
-
G.value =
|
|
419
|
+
G.value = o.url, R.value = o.name || "视频预览", j.value = !0;
|
|
407
420
|
return;
|
|
408
421
|
}
|
|
409
|
-
const
|
|
410
|
-
(
|
|
411
|
-
var
|
|
412
|
-
return
|
|
413
|
-
(
|
|
422
|
+
const k = d.value.filter(
|
|
423
|
+
(K) => {
|
|
424
|
+
var oe;
|
|
425
|
+
return K.status === "success" && K.url && !["mp4", "mov", "avi", "webm"].includes(
|
|
426
|
+
(oe = K.url.split(".").pop()) == null ? void 0 : oe.toLowerCase()
|
|
414
427
|
);
|
|
415
428
|
}
|
|
416
429
|
);
|
|
417
|
-
E.value =
|
|
430
|
+
E.value = k.map((K) => K.url), M.value = k.findIndex((K) => K.uid === o.uid) || 0, _.value = !0;
|
|
418
431
|
}
|
|
419
432
|
function Fe() {
|
|
420
|
-
|
|
433
|
+
_.value = !1, E.value = [];
|
|
421
434
|
}
|
|
422
|
-
function je(
|
|
423
|
-
if (
|
|
424
|
-
const
|
|
425
|
-
(
|
|
435
|
+
function je(o, i) {
|
|
436
|
+
if (o.name && we(o)) return o;
|
|
437
|
+
const k = Qe(o).find(
|
|
438
|
+
(Q) => Z.value.includes(Q)
|
|
426
439
|
);
|
|
427
|
-
return
|
|
428
|
-
type:
|
|
429
|
-
lastModified:
|
|
430
|
-
}) :
|
|
431
|
-
}
|
|
432
|
-
function
|
|
433
|
-
for (let i = 0; i <
|
|
434
|
-
const
|
|
435
|
-
if (!$e(
|
|
436
|
-
const
|
|
437
|
-
L.add(
|
|
438
|
-
uid:
|
|
439
|
-
name:
|
|
440
|
+
return k ? new File([o], `paste-${Date.now() + i}.${k}`, {
|
|
441
|
+
type: o.type,
|
|
442
|
+
lastModified: o.lastModified
|
|
443
|
+
}) : o;
|
|
444
|
+
}
|
|
445
|
+
function Ue(o) {
|
|
446
|
+
for (let i = 0; i < o.length; i++) {
|
|
447
|
+
const k = je(o[i], i);
|
|
448
|
+
if (!$e(k)) continue;
|
|
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}`,
|
|
440
453
|
status: "uploading",
|
|
441
454
|
percentage: 0,
|
|
442
|
-
url:
|
|
455
|
+
url: K
|
|
443
456
|
}), Se(
|
|
444
|
-
|
|
445
|
-
(
|
|
446
|
-
const se = d.value.find((
|
|
447
|
-
se && (se.percentage =
|
|
457
|
+
k,
|
|
458
|
+
(oe) => {
|
|
459
|
+
const se = d.value.find((ge) => ge.uid === Q);
|
|
460
|
+
se && (se.percentage = oe.percent);
|
|
448
461
|
},
|
|
449
|
-
(
|
|
450
|
-
const se = d.value.find((
|
|
451
|
-
se && (se.status = "success", se.url =
|
|
462
|
+
(oe) => {
|
|
463
|
+
const se = d.value.find((ge) => ge.uid === Q);
|
|
464
|
+
se && (se.status = "success", se.url = oe.url, ie(), n("success", oe));
|
|
452
465
|
},
|
|
453
|
-
() => N(
|
|
466
|
+
() => N(Q)
|
|
454
467
|
);
|
|
455
468
|
}
|
|
456
469
|
}
|
|
457
|
-
function Ne(
|
|
458
|
-
const i = Array.from((
|
|
459
|
-
(
|
|
470
|
+
function Ne(o) {
|
|
471
|
+
const i = Array.from((o == null ? void 0 : o.files) || []).filter(
|
|
472
|
+
(oe) => {
|
|
460
473
|
var se;
|
|
461
|
-
return (se =
|
|
474
|
+
return (se = oe.type) == null ? void 0 : se.startsWith("image/");
|
|
462
475
|
}
|
|
463
476
|
);
|
|
464
477
|
if (i.length) return i;
|
|
465
|
-
const
|
|
466
|
-
if (!
|
|
467
|
-
const
|
|
468
|
-
for (let
|
|
469
|
-
const se =
|
|
478
|
+
const k = o == null ? void 0 : o.items;
|
|
479
|
+
if (!k) return [];
|
|
480
|
+
const Q = [], K = /* @__PURE__ */ new Set();
|
|
481
|
+
for (let oe = 0; oe < k.length; oe++) {
|
|
482
|
+
const se = k[oe];
|
|
470
483
|
if (se.kind === "file" && se.type.startsWith("image/")) {
|
|
471
|
-
const
|
|
472
|
-
|
|
484
|
+
const ge = se.getAsFile();
|
|
485
|
+
ge && !K.has(ge) && (K.add(ge), Q.push(ge));
|
|
473
486
|
}
|
|
474
487
|
}
|
|
475
|
-
return
|
|
488
|
+
return Q;
|
|
476
489
|
}
|
|
477
|
-
function
|
|
490
|
+
function Te(o) {
|
|
478
491
|
if (e.disabled) return;
|
|
479
|
-
const i = Ne(
|
|
480
|
-
i.length && (
|
|
492
|
+
const i = Ne(o.clipboardData);
|
|
493
|
+
i.length && (o.preventDefault(), Ue(i));
|
|
481
494
|
}
|
|
482
495
|
function Ae() {
|
|
483
496
|
e.disabled || e.disableDrag || (ae.value = !0);
|
|
@@ -485,54 +498,54 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
485
498
|
function u() {
|
|
486
499
|
ae.value = !1;
|
|
487
500
|
}
|
|
488
|
-
function c(
|
|
489
|
-
var
|
|
490
|
-
if (ae.value = !1, e.disabled || e.disableDrag ||
|
|
491
|
-
const i = Array.from(((
|
|
492
|
-
(
|
|
493
|
-
var
|
|
494
|
-
return Z.value.includes((
|
|
501
|
+
function c(o) {
|
|
502
|
+
var k;
|
|
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) => {
|
|
506
|
+
var K;
|
|
507
|
+
return Z.value.includes((K = Q.name.split(".").pop()) == null ? void 0 : K.toLowerCase());
|
|
495
508
|
}
|
|
496
509
|
);
|
|
497
|
-
i.length &&
|
|
510
|
+
i.length && Ue(i);
|
|
498
511
|
}
|
|
499
|
-
function N(
|
|
500
|
-
var
|
|
501
|
-
const i = d.value.findIndex((
|
|
502
|
-
i !== -1 && ((
|
|
512
|
+
function N(o) {
|
|
513
|
+
var k;
|
|
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));
|
|
503
516
|
}
|
|
504
517
|
return ft(() => {
|
|
505
|
-
I.forEach((
|
|
518
|
+
I.forEach((o) => o.abort()), I.length = 0, L.forEach((o) => URL.revokeObjectURL(o)), L.clear();
|
|
506
519
|
}), D({
|
|
507
520
|
/** 主动打开文件选择框,供表单或快捷操作调用 */
|
|
508
521
|
openFileDialog: () => {
|
|
509
|
-
var
|
|
510
|
-
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();
|
|
511
524
|
},
|
|
512
525
|
/** 获取已上传成功的文件 URL 列表 */
|
|
513
|
-
getPathList: () => d.value.filter((
|
|
526
|
+
getPathList: () => d.value.filter((o) => o.status === "success").map((o) => o.url),
|
|
514
527
|
/** 清空文件和文字,并同步 change 事件 */
|
|
515
528
|
clearFiles: () => {
|
|
516
|
-
d.value = [],
|
|
529
|
+
d.value = [], J.value = "", ie();
|
|
517
530
|
},
|
|
518
531
|
/** 获取完整值,结构与 change 事件保持一致 */
|
|
519
532
|
getValue: () => ({
|
|
520
|
-
files: d.value.filter((
|
|
521
|
-
text:
|
|
533
|
+
files: d.value.filter((o) => o.status === "success" && o.url).map((o) => o.url),
|
|
534
|
+
text: J.value
|
|
522
535
|
}),
|
|
523
536
|
/** 获取按 valueFormat 输出的值,便于外部不走 v-model 时读取 */
|
|
524
|
-
getModelValue: () =>
|
|
525
|
-
files: d.value.filter((
|
|
526
|
-
text:
|
|
537
|
+
getModelValue: () => C({
|
|
538
|
+
files: d.value.filter((o) => o.status === "success" && o.url).map((o) => o.url),
|
|
539
|
+
text: J.value
|
|
527
540
|
})
|
|
528
|
-
}), (
|
|
529
|
-
var
|
|
530
|
-
const
|
|
541
|
+
}), (o, i) => {
|
|
542
|
+
var ve;
|
|
543
|
+
const k = ct, Q = _a, K = Oa, oe = Ma, se = La, ge = dt;
|
|
531
544
|
return v(), A("div", {
|
|
532
545
|
class: ke(["qy-upload", a.value]),
|
|
533
|
-
style: Pe({ "--qy-upload-size":
|
|
546
|
+
style: Pe({ "--qy-upload-size": le.value })
|
|
534
547
|
}, [
|
|
535
|
-
O(
|
|
548
|
+
O(oe, {
|
|
536
549
|
ref_key: "uploadRef",
|
|
537
550
|
ref: H,
|
|
538
551
|
"file-list": d.value,
|
|
@@ -549,34 +562,34 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
549
562
|
"on-remove": me
|
|
550
563
|
}, {
|
|
551
564
|
default: h(() => [
|
|
552
|
-
|
|
565
|
+
w.value ? P("", !0) : (v(), A("div", {
|
|
553
566
|
key: 0,
|
|
554
567
|
class: ke(["qy-upload__trigger", { "is-dragover": ae.value }]),
|
|
555
|
-
onPaste:
|
|
568
|
+
onPaste: Te,
|
|
556
569
|
onDragover: ue(Ae, ["prevent"]),
|
|
557
570
|
onDragleave: ue(u, ["prevent"]),
|
|
558
571
|
onDrop: ue(c, ["prevent"])
|
|
559
572
|
}, [
|
|
560
|
-
O(
|
|
573
|
+
O(k, { class: "qy-upload__icon" }, {
|
|
561
574
|
default: h(() => [
|
|
562
|
-
O($(
|
|
575
|
+
O($(Na))
|
|
563
576
|
]),
|
|
564
577
|
_: 1
|
|
565
578
|
}),
|
|
566
|
-
t.supportVideo ? (v(), A(
|
|
567
|
-
i[9] || (i[9] =
|
|
568
|
-
|
|
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)
|
|
569
582
|
], 64)) : P("", !0),
|
|
570
583
|
t.showText ? (v(), A("div", {
|
|
571
584
|
key: 1,
|
|
572
585
|
class: "qy-upload__text",
|
|
573
586
|
onClick: i[3] || (i[3] = ue(() => {
|
|
574
587
|
}, ["stop"])),
|
|
575
|
-
onPaste: ue(
|
|
588
|
+
onPaste: ue(Te, ["stop"])
|
|
576
589
|
}, [
|
|
577
|
-
O(
|
|
578
|
-
visible:
|
|
579
|
-
"onUpdate:visible": i[2] || (i[2] = (Ce) =>
|
|
590
|
+
O(K, {
|
|
591
|
+
visible: X.value,
|
|
592
|
+
"onUpdate:visible": i[2] || (i[2] = (Ce) => X.value = Ce),
|
|
580
593
|
placement: "bottom-start",
|
|
581
594
|
width: 220,
|
|
582
595
|
trigger: "click",
|
|
@@ -584,22 +597,22 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
584
597
|
onAfterEnter: g
|
|
585
598
|
}, {
|
|
586
599
|
reference: h(() => [
|
|
587
|
-
|
|
588
|
-
class: ke(["qy-upload__text-preview", { "is-placeholder": !
|
|
589
|
-
}, pe(
|
|
600
|
+
T("div", {
|
|
601
|
+
class: ke(["qy-upload__text-preview", { "is-placeholder": !J.value }])
|
|
602
|
+
}, pe(J.value || t.pastePlaceholder), 3)
|
|
590
603
|
]),
|
|
591
604
|
default: h(() => [
|
|
592
|
-
O(
|
|
605
|
+
O(Q, {
|
|
593
606
|
ref_key: "inputRef",
|
|
594
607
|
ref: y,
|
|
595
|
-
modelValue:
|
|
596
|
-
"onUpdate:modelValue": i[0] || (i[0] = (Ce) =>
|
|
608
|
+
modelValue: J.value,
|
|
609
|
+
"onUpdate:modelValue": i[0] || (i[0] = (Ce) => J.value = Ce),
|
|
597
610
|
type: "textarea",
|
|
598
611
|
autosize: { minRows: 2, maxRows: 5 },
|
|
599
612
|
placeholder: t.pastePlaceholder,
|
|
600
613
|
disabled: t.disabled,
|
|
601
|
-
onBlur: i[1] || (i[1] = (Ce) =>
|
|
602
|
-
onPaste: ue(
|
|
614
|
+
onBlur: i[1] || (i[1] = (Ce) => X.value = !1),
|
|
615
|
+
onPaste: ue(Te, ["stop"])
|
|
603
616
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
604
617
|
]),
|
|
605
618
|
_: 1
|
|
@@ -609,34 +622,34 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
609
622
|
class: "qy-upload__text",
|
|
610
623
|
onClick: i[5] || (i[5] = ue(() => {
|
|
611
624
|
}, ["stop"])),
|
|
612
|
-
onPaste: ue(
|
|
625
|
+
onPaste: ue(Te, ["stop"])
|
|
613
626
|
}, [
|
|
614
|
-
|
|
627
|
+
T("input", {
|
|
615
628
|
ref_key: "pasteInputRef",
|
|
616
629
|
ref: f,
|
|
617
630
|
class: "qy-upload__paste-input",
|
|
618
631
|
placeholder: t.pastePlaceholder,
|
|
619
632
|
disabled: t.disabled,
|
|
620
|
-
onPaste: ue(
|
|
633
|
+
onPaste: ue(Te, ["stop"]),
|
|
621
634
|
onInput: B,
|
|
622
635
|
onClick: i[4] || (i[4] = ue(() => {
|
|
623
636
|
}, ["stop"]))
|
|
624
|
-
}, null, 40,
|
|
637
|
+
}, null, 40, ul)
|
|
625
638
|
], 32)) : P("", !0)
|
|
626
639
|
], 34))
|
|
627
640
|
]),
|
|
628
641
|
_: 1
|
|
629
642
|
}, 8, ["file-list", "multiple", "limit", "list-type", "accept", "disabled"]),
|
|
630
|
-
|
|
643
|
+
_.value ? (v(), ce(se, {
|
|
631
644
|
key: 0,
|
|
632
645
|
"url-list": E.value,
|
|
633
646
|
"initial-index": M.value,
|
|
634
647
|
onClose: Fe
|
|
635
648
|
}, null, 8, ["url-list", "initial-index"])) : P("", !0),
|
|
636
|
-
O(
|
|
649
|
+
O(ge, {
|
|
637
650
|
modelValue: j.value,
|
|
638
651
|
"onUpdate:modelValue": i[7] || (i[7] = (Ce) => j.value = Ce),
|
|
639
|
-
title:
|
|
652
|
+
title: R.value,
|
|
640
653
|
width: "640px",
|
|
641
654
|
"append-to-body": "",
|
|
642
655
|
"destroy-on-close": "",
|
|
@@ -649,34 +662,34 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
649
662
|
controls: "",
|
|
650
663
|
autoplay: "",
|
|
651
664
|
style: { width: "100%", "max-height": "400px", "border-radius": "4px" }
|
|
652
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, cl)) : P("", !0)
|
|
653
666
|
]),
|
|
654
667
|
_: 1
|
|
655
668
|
}, 8, ["modelValue", "title"]),
|
|
656
|
-
re.value ? (v(), A("div",
|
|
657
|
-
O(
|
|
669
|
+
re.value ? (v(), A("div", dl, [
|
|
670
|
+
O(k, null, {
|
|
658
671
|
default: h(() => [
|
|
659
|
-
O($(
|
|
672
|
+
O($(Ha))
|
|
660
673
|
]),
|
|
661
674
|
_: 1
|
|
662
675
|
}),
|
|
663
|
-
|
|
664
|
-
i[12] || (i[12] =
|
|
665
|
-
t.fileSize ? (v(), A(
|
|
666
|
-
i[10] || (i[10] =
|
|
667
|
-
|
|
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)
|
|
668
681
|
], 64)) : P("", !0),
|
|
669
|
-
(
|
|
670
|
-
i[11] || (i[11] =
|
|
671
|
-
|
|
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)
|
|
672
685
|
], 64)) : P("", !0),
|
|
673
|
-
i[13] || (i[13] =
|
|
686
|
+
i[13] || (i[13] = be(" 的文件。 ", -1))
|
|
674
687
|
])
|
|
675
688
|
])) : P("", !0)
|
|
676
689
|
], 6);
|
|
677
690
|
};
|
|
678
691
|
}
|
|
679
|
-
}),
|
|
692
|
+
}), $t = /* @__PURE__ */ Re(yl, [["__scopeId", "data-v-1e380be1"]]), pl = /* @__PURE__ */ Object.assign({
|
|
680
693
|
name: "QyImageUpload",
|
|
681
694
|
inheritAttrs: !1
|
|
682
695
|
}, {
|
|
@@ -734,7 +747,7 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
734
747
|
setup(t, { expose: D, emit: W }) {
|
|
735
748
|
const e = t, n = W, H = Be(), d = q(null), y = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], f = F(
|
|
736
749
|
() => e.voucher || e.mode === "voucher"
|
|
737
|
-
), 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)),
|
|
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(() => {
|
|
738
751
|
var a;
|
|
739
752
|
return (a = e.fileType) != null && a.length ? e.fileType : f.value && !e.supportVideo ? y : [];
|
|
740
753
|
});
|
|
@@ -742,8 +755,8 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
742
755
|
return Array.isArray(a) ? a.filter(Boolean) : [];
|
|
743
756
|
}
|
|
744
757
|
function M(a) {
|
|
745
|
-
const
|
|
746
|
-
return e.multiple ?
|
|
758
|
+
const l = E(a);
|
|
759
|
+
return e.multiple ? l : l[0] || "";
|
|
747
760
|
}
|
|
748
761
|
function j(a) {
|
|
749
762
|
n("update:modelValue", M(a));
|
|
@@ -751,36 +764,36 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
751
764
|
function G(a) {
|
|
752
765
|
n("change", M(a == null ? void 0 : a.files));
|
|
753
766
|
}
|
|
754
|
-
function
|
|
767
|
+
function R(a) {
|
|
755
768
|
var te, s;
|
|
756
769
|
if (typeof a == "string") return a;
|
|
757
|
-
const
|
|
758
|
-
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 || "";
|
|
759
772
|
}
|
|
760
773
|
function L(a) {
|
|
761
|
-
const
|
|
762
|
-
|
|
774
|
+
const l = R(a);
|
|
775
|
+
l && n("updateImg", l), n("success", V(), a);
|
|
763
776
|
}
|
|
764
777
|
function ae(a) {
|
|
765
778
|
n("error", a);
|
|
766
779
|
}
|
|
767
|
-
function
|
|
768
|
-
n("remove", a,
|
|
780
|
+
function J(a, l) {
|
|
781
|
+
n("remove", a, l);
|
|
769
782
|
}
|
|
770
|
-
function
|
|
771
|
-
var a,
|
|
772
|
-
(
|
|
783
|
+
function X() {
|
|
784
|
+
var a, l;
|
|
785
|
+
(l = (a = d.value) == null ? void 0 : a.openFileDialog) == null || l.call(a);
|
|
773
786
|
}
|
|
774
|
-
function
|
|
775
|
-
var a,
|
|
776
|
-
(
|
|
787
|
+
function le() {
|
|
788
|
+
var a, l;
|
|
789
|
+
(l = (a = d.value) == null ? void 0 : a.clearFiles) == null || l.call(a);
|
|
777
790
|
}
|
|
778
791
|
function ne() {
|
|
779
|
-
var a,
|
|
780
|
-
return ((
|
|
792
|
+
var a, l;
|
|
793
|
+
return ((l = (a = d.value) == null ? void 0 : a.getPathList) == null ? void 0 : l.call(a)) || [];
|
|
781
794
|
}
|
|
782
795
|
const re = F(() => ne()), Z = F(() => ne());
|
|
783
|
-
function
|
|
796
|
+
function w() {
|
|
784
797
|
return ne();
|
|
785
798
|
}
|
|
786
799
|
function V() {
|
|
@@ -788,14 +801,14 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
788
801
|
return e.multiple ? a : a[0] || "";
|
|
789
802
|
}
|
|
790
803
|
return D({
|
|
791
|
-
openFileDialog:
|
|
792
|
-
clearFiles:
|
|
804
|
+
openFileDialog: X,
|
|
805
|
+
clearFiles: le,
|
|
793
806
|
getPathList: ne,
|
|
794
|
-
getFullPathList:
|
|
807
|
+
getFullPathList: w,
|
|
795
808
|
fullPathList: re,
|
|
796
809
|
pathList: Z,
|
|
797
810
|
getValue: V
|
|
798
|
-
}), (a,
|
|
811
|
+
}), (a, l) => (v(), ce($t, xe({
|
|
799
812
|
ref_key: "uploadRef",
|
|
800
813
|
ref: d
|
|
801
814
|
}, $(H), {
|
|
@@ -805,7 +818,7 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
805
818
|
name: t.name,
|
|
806
819
|
multiple: t.multiple,
|
|
807
820
|
disabled: t.disabled,
|
|
808
|
-
"file-type":
|
|
821
|
+
"file-type": _.value,
|
|
809
822
|
"file-size": t.fileSize,
|
|
810
823
|
limit: x.value,
|
|
811
824
|
"is-show-tip": t.isShowTip,
|
|
@@ -823,23 +836,23 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
823
836
|
onChange: G,
|
|
824
837
|
onSuccess: L,
|
|
825
838
|
onError: ae,
|
|
826
|
-
onRemove:
|
|
839
|
+
onRemove: J
|
|
827
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"]));
|
|
828
841
|
}
|
|
829
|
-
}),
|
|
842
|
+
}), gl = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, vl = { key: 0 }, hl = { key: 1 }, bl = {
|
|
830
843
|
key: 0,
|
|
831
844
|
class: "icon-[material-symbols--square-outline-rounded]",
|
|
832
845
|
role: "img",
|
|
833
846
|
"aria-hidden": "true"
|
|
834
|
-
},
|
|
847
|
+
}, wl = {
|
|
835
848
|
key: 1,
|
|
836
849
|
class: "icon-[tdesign--fullscreen-exit-1]",
|
|
837
850
|
role: "img",
|
|
838
851
|
"aria-hidden": "true"
|
|
839
|
-
},
|
|
852
|
+
}, Sl = {
|
|
840
853
|
key: 0,
|
|
841
854
|
class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
|
|
842
|
-
},
|
|
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({
|
|
843
856
|
__name: "index",
|
|
844
857
|
props: /* @__PURE__ */ rt({
|
|
845
858
|
layout: { type: [Array, String, Boolean], default: () => ["confirm", "cancel"] },
|
|
@@ -854,12 +867,12 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
854
867
|
}),
|
|
855
868
|
emits: /* @__PURE__ */ rt(["confirm", "cancel", "close", "opened", "ok"], ["update:modelValue"]),
|
|
856
869
|
setup(t, { expose: D, emit: W }) {
|
|
857
|
-
const e = t, n = mt(), H = q(!0), d = q(!1), y = q(He), f = q(null), x =
|
|
870
|
+
const e = t, n = mt(), H = q(!0), d = q(!1), y = q(He), f = q(null), x = ro({
|
|
858
871
|
mobile: 0,
|
|
859
872
|
tablet: 640,
|
|
860
873
|
laptop: 1024,
|
|
861
874
|
desktop: 1280
|
|
862
|
-
}).isSmaller("tablet"),
|
|
875
|
+
}).isSmaller("tablet"), _ = F(() => {
|
|
863
876
|
if (Array.isArray(e.layout)) return e.layout;
|
|
864
877
|
if (typeof e.layout == "string")
|
|
865
878
|
return e.layout.split(",").map((g) => g.trim());
|
|
@@ -868,22 +881,22 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
868
881
|
ConfirmButton: O(te)
|
|
869
882
|
})), M = F(() => n.footer || e.layout !== !1), j = q(!1), G = q(
|
|
870
883
|
e.showFullscreen && x ? !0 : e.fullscreen
|
|
871
|
-
),
|
|
872
|
-
|
|
884
|
+
), R = W, L = Ka(t, "modelValue");
|
|
885
|
+
Ea(() => {
|
|
873
886
|
L.value && (j.value = !1);
|
|
874
887
|
}), D({
|
|
875
|
-
handleMinimize:
|
|
888
|
+
handleMinimize: C
|
|
876
889
|
});
|
|
877
|
-
const ae = Be(),
|
|
890
|
+
const ae = Be(), J = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, X = q(!1), le = q(null);
|
|
878
891
|
window.minimizedCount || (window.minimizedCount = 0);
|
|
879
|
-
const { x: ne, y: re } =
|
|
892
|
+
const { x: ne, y: re } = io(le, {
|
|
880
893
|
initialValue: {
|
|
881
894
|
x: 5,
|
|
882
895
|
y: window.innerHeight - 100 - (window.minimizedCount || 0) * 60
|
|
883
896
|
},
|
|
884
897
|
onMove(g) {
|
|
885
898
|
var B;
|
|
886
|
-
(B =
|
|
899
|
+
(B = le.value) == null || B.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), ne.value = Math.max(
|
|
887
900
|
0,
|
|
888
901
|
Math.min(window.innerWidth - 300, g.x)
|
|
889
902
|
), re.value = Math.max(
|
|
@@ -893,27 +906,27 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
893
906
|
},
|
|
894
907
|
onEnd() {
|
|
895
908
|
var g;
|
|
896
|
-
(g =
|
|
909
|
+
(g = le.value) == null || g.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
|
|
897
910
|
}
|
|
898
911
|
}), Z = F(() => ({
|
|
899
912
|
transform: `translate(${ne.value}px, ${re.value}px)`,
|
|
900
913
|
willChange: "transform"
|
|
901
914
|
}));
|
|
902
|
-
function
|
|
903
|
-
const B = g.target, { scrollTop: ie, scrollHeight: me, clientHeight:
|
|
904
|
-
H.value = ie <= it, d.value = me - (ie +
|
|
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;
|
|
905
918
|
}
|
|
906
919
|
function V() {
|
|
907
|
-
const g = document.querySelector(`.${
|
|
908
|
-
g && (f.value = g, g.addEventListener("scroll",
|
|
920
|
+
const g = document.querySelector(`.${J}.el-dialog`);
|
|
921
|
+
g && (f.value = g, g.addEventListener("scroll", w)), p(), R("opened");
|
|
909
922
|
}
|
|
910
923
|
function a() {
|
|
911
924
|
G.value = !G.value, p();
|
|
912
925
|
}
|
|
913
|
-
function
|
|
914
|
-
j.value || (j.value = !0,
|
|
926
|
+
function l() {
|
|
927
|
+
j.value || (j.value = !0, X.value = !1, L.value = !1, R("cancel"), R("close"));
|
|
915
928
|
}
|
|
916
|
-
function
|
|
929
|
+
function U(g) {
|
|
917
930
|
e.showFullscreen && g.detail >= 2 && a();
|
|
918
931
|
}
|
|
919
932
|
function te() {
|
|
@@ -924,7 +937,7 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
924
937
|
type: "primary",
|
|
925
938
|
class: "dialog__footerBtn",
|
|
926
939
|
onClick: () => {
|
|
927
|
-
|
|
940
|
+
R("confirm"), R("ok");
|
|
928
941
|
}
|
|
929
942
|
},
|
|
930
943
|
() => $(e.confirmProps).title || "确 认"
|
|
@@ -933,51 +946,51 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
933
946
|
function s() {
|
|
934
947
|
return nt(
|
|
935
948
|
Ve,
|
|
936
|
-
{ class: "dialog__footerBtn", onClick: () =>
|
|
949
|
+
{ class: "dialog__footerBtn", onClick: () => l() },
|
|
937
950
|
() => "取 消"
|
|
938
951
|
);
|
|
939
952
|
}
|
|
940
|
-
|
|
953
|
+
Xe(() => {
|
|
941
954
|
typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = He), p();
|
|
942
955
|
});
|
|
943
956
|
function p() {
|
|
944
957
|
var m;
|
|
945
958
|
const g = Array.from(
|
|
946
959
|
document.querySelectorAll(".el-overlay")
|
|
947
|
-
).filter((Y) => window.getComputedStyle(Y).display !== "none" && !Y.classList.contains("is-message")), B = (m = document.querySelector(`.${
|
|
948
|
-
`.${
|
|
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(
|
|
961
|
+
`.${J}.el-dialog`
|
|
949
962
|
);
|
|
950
963
|
if (!B || !ie) return;
|
|
951
964
|
const me = He;
|
|
952
965
|
window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || me;
|
|
953
|
-
const
|
|
966
|
+
const Qe = Math.max(
|
|
954
967
|
window.qyDialogMaxZIndex,
|
|
955
968
|
...g.map(
|
|
956
969
|
(Y) => parseInt(window.getComputedStyle(Y).zIndex || me.toString())
|
|
957
970
|
)
|
|
958
971
|
) + 2;
|
|
959
|
-
window.qyDialogMaxZIndex =
|
|
960
|
-
B.style.zIndex =
|
|
972
|
+
window.qyDialogMaxZIndex = Qe, Oe(() => {
|
|
973
|
+
B.style.zIndex = Qe.toString(), ie.style.zIndex = (Qe + 1).toString(), y.value = Qe + 1;
|
|
961
974
|
});
|
|
962
975
|
}
|
|
963
976
|
yt(() => {
|
|
964
977
|
var g;
|
|
965
|
-
(g = f.value) == null || g.removeEventListener("scroll",
|
|
978
|
+
(g = f.value) == null || g.removeEventListener("scroll", w), X.value && window.minimizedCount--;
|
|
966
979
|
});
|
|
967
|
-
function
|
|
980
|
+
function C() {
|
|
968
981
|
var B;
|
|
969
|
-
|
|
970
|
-
const g = (B = document.querySelector(`.${
|
|
971
|
-
g && (
|
|
982
|
+
X.value = !X.value;
|
|
983
|
+
const g = (B = document.querySelector(`.${J}`)) == null ? void 0 : B.closest(".el-overlay");
|
|
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()));
|
|
972
985
|
}
|
|
973
986
|
return (g, B) => {
|
|
974
|
-
const ie =
|
|
987
|
+
const ie = ct, me = dt;
|
|
975
988
|
return v(), A("div", null, [
|
|
976
|
-
O(
|
|
989
|
+
O(me, xe({
|
|
977
990
|
ref: "dialogRef",
|
|
978
991
|
class: ["qy-dialog", [
|
|
979
992
|
e.size === "small" && "[&_.el-dialog__header]:!hidden",
|
|
980
|
-
|
|
993
|
+
J
|
|
981
994
|
]],
|
|
982
995
|
"model-value": L.value,
|
|
983
996
|
"align-center": "",
|
|
@@ -988,10 +1001,10 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
988
1001
|
"show-close": !1,
|
|
989
1002
|
fullscreen: G.value,
|
|
990
1003
|
"z-index": y.value,
|
|
991
|
-
onClosed:
|
|
1004
|
+
onClosed: l,
|
|
992
1005
|
onOpened: V,
|
|
993
1006
|
draggable: ""
|
|
994
|
-
}, $(ae)),
|
|
1007
|
+
}, $(ae)), _e({
|
|
995
1008
|
header: h(() => [
|
|
996
1009
|
e.size === "default" ? (v(), A("div", {
|
|
997
1010
|
key: 0,
|
|
@@ -1001,14 +1014,14 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1001
1014
|
transition: "border-color .2s linear"
|
|
1002
1015
|
}),
|
|
1003
1016
|
class: "flex justify-between h-[var(--header-height)]",
|
|
1004
|
-
onDblclick:
|
|
1017
|
+
onDblclick: U
|
|
1005
1018
|
}, [
|
|
1006
|
-
|
|
1007
|
-
$(n).header ? $(n).header ? (v(), A("div",
|
|
1008
|
-
|
|
1009
|
-
])) : 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))
|
|
1010
1023
|
]),
|
|
1011
|
-
|
|
1024
|
+
T("div", {
|
|
1012
1025
|
class: "flex",
|
|
1013
1026
|
onMousedown: B[3] || (B[3] = ue(() => {
|
|
1014
1027
|
}, ["stop"]))
|
|
@@ -1016,11 +1029,11 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1016
1029
|
e.size === "default" ? (v(), A("div", {
|
|
1017
1030
|
key: 0,
|
|
1018
1031
|
class: "qy-dialog__btn qy-dialog__btn--default",
|
|
1019
|
-
onClick: ue(
|
|
1032
|
+
onClick: ue(C, ["stop"]),
|
|
1020
1033
|
onMousedown: B[0] || (B[0] = ue(() => {
|
|
1021
1034
|
}, ["stop"]))
|
|
1022
1035
|
}, [...B[4] || (B[4] = [
|
|
1023
|
-
|
|
1036
|
+
T("span", {
|
|
1024
1037
|
class: "icon-[material-symbols--minimize] text-xl mb-3",
|
|
1025
1038
|
role: "img",
|
|
1026
1039
|
"aria-hidden": "true"
|
|
@@ -1033,15 +1046,15 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1033
1046
|
onMousedown: B[1] || (B[1] = ue(() => {
|
|
1034
1047
|
}, ["stop"]))
|
|
1035
1048
|
}, [
|
|
1036
|
-
G.value ? (v(), A("span",
|
|
1049
|
+
G.value ? (v(), A("span", wl)) : (v(), A("span", bl))
|
|
1037
1050
|
], 32)) : P("", !0),
|
|
1038
|
-
|
|
1051
|
+
T("div", {
|
|
1039
1052
|
class: "qy-dialog__btn qy-dialog__btn--danger",
|
|
1040
|
-
onClick: ue(
|
|
1053
|
+
onClick: ue(l, ["stop"]),
|
|
1041
1054
|
onMousedown: B[2] || (B[2] = ue(() => {
|
|
1042
1055
|
}, ["stop"]))
|
|
1043
1056
|
}, [...B[5] || (B[5] = [
|
|
1044
|
-
|
|
1057
|
+
T("span", {
|
|
1045
1058
|
class: "icon-[ri--close-line] text-xl",
|
|
1046
1059
|
role: "img",
|
|
1047
1060
|
"aria-hidden": "true"
|
|
@@ -1051,45 +1064,45 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1051
1064
|
], 36)) : P("", !0)
|
|
1052
1065
|
]),
|
|
1053
1066
|
default: h(() => [
|
|
1054
|
-
|
|
1055
|
-
class: ke(["qy-dialog__wrapper", $(
|
|
1067
|
+
T("div", {
|
|
1068
|
+
class: ke(["qy-dialog__wrapper", $(no)(G.value && "qy-dialog__wrapper--fullscreen")]),
|
|
1056
1069
|
style: Pe({
|
|
1057
1070
|
maxHeight: M.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
|
|
1058
1071
|
padding: e.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
|
|
1059
1072
|
})
|
|
1060
1073
|
}, [
|
|
1061
|
-
e.size === "small" ? (v(), A("div",
|
|
1062
|
-
O(
|
|
1074
|
+
e.size === "small" ? (v(), A("div", Sl, [
|
|
1075
|
+
O(ie, {
|
|
1063
1076
|
size: 36,
|
|
1064
1077
|
class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
|
|
1065
|
-
onClick:
|
|
1078
|
+
onClick: l
|
|
1066
1079
|
}, {
|
|
1067
1080
|
default: h(() => [
|
|
1068
|
-
O(
|
|
1081
|
+
O($(Za))
|
|
1069
1082
|
]),
|
|
1070
1083
|
_: 1
|
|
1071
1084
|
})
|
|
1072
1085
|
])) : P("", !0),
|
|
1073
|
-
|
|
1086
|
+
z(g.$slots, "default")
|
|
1074
1087
|
], 6)
|
|
1075
1088
|
]),
|
|
1076
1089
|
_: 2
|
|
1077
1090
|
}, [
|
|
1078
|
-
!g.$slots.footer && Array.isArray(
|
|
1091
|
+
!g.$slots.footer && Array.isArray(_.value) ? {
|
|
1079
1092
|
name: "footer",
|
|
1080
1093
|
fn: h(() => [
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1094
|
+
T("div", kl, [
|
|
1095
|
+
T("div", null, [
|
|
1096
|
+
z(g.$slots, "footer-left")
|
|
1084
1097
|
]),
|
|
1085
|
-
|
|
1098
|
+
T("div", {
|
|
1086
1099
|
class: ke([{
|
|
1087
1100
|
"qy-dialog__footer--outline": d.value
|
|
1088
1101
|
}, "qy-dialog__footer flex items-center justify-end"])
|
|
1089
1102
|
}, [
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1103
|
+
_.value.includes("cancel") ? (v(), ce(s, { key: 0 })) : P("", !0),
|
|
1104
|
+
_.value.includes("confirm") ? (v(), ce(te, { key: 1 })) : P("", !0),
|
|
1105
|
+
z(g.$slots, "footer-append")
|
|
1093
1106
|
], 2)
|
|
1094
1107
|
])
|
|
1095
1108
|
]),
|
|
@@ -1097,12 +1110,12 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1097
1110
|
} : M.value ? {
|
|
1098
1111
|
name: "footer",
|
|
1099
1112
|
fn: h(() => [
|
|
1100
|
-
|
|
1113
|
+
T("div", {
|
|
1101
1114
|
class: ke([{
|
|
1102
1115
|
"qy-dialog__footer--outline": d.value
|
|
1103
1116
|
}, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
|
|
1104
1117
|
}, [
|
|
1105
|
-
|
|
1118
|
+
z(g.$slots, "footer", {
|
|
1106
1119
|
layouts: E.value,
|
|
1107
1120
|
layoutsNode: Object.values(E.value)
|
|
1108
1121
|
})
|
|
@@ -1111,34 +1124,34 @@ const Dl = { class: "qy-upload__hint" }, Ml = ["placeholder", "disabled"], Ol =
|
|
|
1111
1124
|
key: "1"
|
|
1112
1125
|
} : void 0
|
|
1113
1126
|
]), 1040, ["class", "model-value", "fullscreen", "z-index"]),
|
|
1114
|
-
Ye(
|
|
1127
|
+
Ye(T("div", {
|
|
1115
1128
|
ref_key: "minimizedRef",
|
|
1116
|
-
ref:
|
|
1129
|
+
ref: le,
|
|
1117
1130
|
class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
|
|
1118
1131
|
style: Pe([Z.value, { width: "300px", height: "50px", "will-change": "transform" }])
|
|
1119
1132
|
}, [
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
B[6] || (B[6] =
|
|
1123
|
-
|
|
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)
|
|
1124
1137
|
]),
|
|
1125
|
-
|
|
1126
|
-
|
|
1138
|
+
T("div", Cl, [
|
|
1139
|
+
T("div", {
|
|
1127
1140
|
class: "p-1 hover:bg-gray-200 rounded",
|
|
1128
|
-
onClick: ue(
|
|
1141
|
+
onClick: ue(C, ["stop"])
|
|
1129
1142
|
}, [...B[7] || (B[7] = [
|
|
1130
|
-
|
|
1143
|
+
T("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
|
|
1131
1144
|
])]),
|
|
1132
|
-
|
|
1145
|
+
T("div", {
|
|
1133
1146
|
class: "p-1 hover:bg-red-100 rounded",
|
|
1134
|
-
onClick: ue(
|
|
1147
|
+
onClick: ue(l, ["stop"])
|
|
1135
1148
|
}, [...B[8] || (B[8] = [
|
|
1136
|
-
|
|
1149
|
+
T("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
|
|
1137
1150
|
])])
|
|
1138
1151
|
])
|
|
1139
1152
|
])
|
|
1140
1153
|
], 4), [
|
|
1141
|
-
[pt,
|
|
1154
|
+
[pt, X.value]
|
|
1142
1155
|
])
|
|
1143
1156
|
]);
|
|
1144
1157
|
};
|
|
@@ -1154,32 +1167,32 @@ function st(t) {
|
|
|
1154
1167
|
text: t || ""
|
|
1155
1168
|
};
|
|
1156
1169
|
}
|
|
1157
|
-
function
|
|
1170
|
+
function Vl(t) {
|
|
1158
1171
|
const D = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
|
|
1159
1172
|
return D ? D[2] : t;
|
|
1160
1173
|
}
|
|
1161
1174
|
function ut(t, D) {
|
|
1162
1175
|
return D ? `[url:${D}]${t}` : t;
|
|
1163
1176
|
}
|
|
1164
|
-
const
|
|
1177
|
+
const ql = { class: "qy-remark-image__field" }, Bl = {
|
|
1165
1178
|
key: 1,
|
|
1166
1179
|
class: "qy-remark-image__divider"
|
|
1167
|
-
},
|
|
1180
|
+
}, Al = { class: "qy-remark-image__upload-anchor" }, Il = {
|
|
1168
1181
|
key: 0,
|
|
1169
1182
|
class: "icon-[line-md--loading-twotone-loop]",
|
|
1170
1183
|
role: "img",
|
|
1171
1184
|
"aria-hidden": "true"
|
|
1172
|
-
},
|
|
1185
|
+
}, Rl = {
|
|
1173
1186
|
key: 1,
|
|
1174
1187
|
class: "icon-[ion--cloud-upload-outline]",
|
|
1175
1188
|
role: "img",
|
|
1176
1189
|
"aria-hidden": "true"
|
|
1177
|
-
},
|
|
1190
|
+
}, Tl = {
|
|
1178
1191
|
key: 2,
|
|
1179
1192
|
class: "icon-[ph--images-thin]",
|
|
1180
1193
|
role: "img",
|
|
1181
1194
|
"aria-hidden": "true"
|
|
1182
|
-
},
|
|
1195
|
+
}, zl = { class: "qy-remark-image__popover" }, Fl = ["src"], Pl = { class: "qy-remark-image__popover-footer" }, Dl = /* @__PURE__ */ qe({
|
|
1183
1196
|
__name: "index",
|
|
1184
1197
|
props: {
|
|
1185
1198
|
defaultValue: { default: "" },
|
|
@@ -1203,7 +1216,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1203
1216
|
setup(t, { expose: D, emit: W }) {
|
|
1204
1217
|
const e = t, n = W, H = Be(), d = q(null), y = q(""), f = q(""), I = q(!1), x = F(
|
|
1205
1218
|
() => e.layout === "select-prefix"
|
|
1206
|
-
),
|
|
1219
|
+
), _ = F(() => ({
|
|
1207
1220
|
"qy-remark-image--select-prefix": x.value
|
|
1208
1221
|
})), E = F(
|
|
1209
1222
|
() => x.value || e.type === "text" ? "text" : "textarea"
|
|
@@ -1215,47 +1228,47 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1215
1228
|
});
|
|
1216
1229
|
fe(
|
|
1217
1230
|
() => e.defaultValue,
|
|
1218
|
-
(
|
|
1219
|
-
const V = st(
|
|
1231
|
+
(w) => {
|
|
1232
|
+
const V = st(w || "");
|
|
1220
1233
|
y.value = V.text, f.value = V.imageUrl || e.defaultImage || "";
|
|
1221
1234
|
},
|
|
1222
1235
|
{ immediate: !0 }
|
|
1223
1236
|
), fe(
|
|
1224
1237
|
() => e.defaultImage,
|
|
1225
|
-
(
|
|
1226
|
-
|
|
1238
|
+
(w) => {
|
|
1239
|
+
w !== void 0 && !st(e.defaultValue || "").imageUrl && (f.value = w || "");
|
|
1227
1240
|
},
|
|
1228
1241
|
{ immediate: !0 }
|
|
1229
|
-
),
|
|
1242
|
+
), Xe(() => {
|
|
1230
1243
|
Oe(G);
|
|
1231
1244
|
}), yt(() => {
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1245
|
+
const w = j();
|
|
1246
|
+
w && w.removeEventListener("paste", X);
|
|
1234
1247
|
});
|
|
1235
1248
|
function j() {
|
|
1236
|
-
var
|
|
1237
|
-
return ((
|
|
1249
|
+
var w, V;
|
|
1250
|
+
return ((w = d.value) == null ? void 0 : w.textarea) || ((V = d.value) == null ? void 0 : V.input) || null;
|
|
1238
1251
|
}
|
|
1239
1252
|
function G() {
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1253
|
+
const w = j();
|
|
1254
|
+
w && (w.removeEventListener("paste", X), w.addEventListener("paste", X));
|
|
1242
1255
|
}
|
|
1243
|
-
function
|
|
1244
|
-
y.value =
|
|
1256
|
+
function R(w) {
|
|
1257
|
+
y.value = Vl(w || "");
|
|
1245
1258
|
}
|
|
1246
|
-
function L(
|
|
1247
|
-
n("update:selectValue",
|
|
1259
|
+
function L(w) {
|
|
1260
|
+
n("update:selectValue", w), n("select-change", w);
|
|
1248
1261
|
}
|
|
1249
1262
|
function ae() {
|
|
1250
1263
|
f.value = "", Z();
|
|
1251
1264
|
}
|
|
1252
|
-
function
|
|
1265
|
+
function J() {
|
|
1253
1266
|
y.value = "", f.value = "", Z();
|
|
1254
1267
|
}
|
|
1255
|
-
async function
|
|
1256
|
-
var
|
|
1257
|
-
const a = Array.from(((
|
|
1258
|
-
a && (
|
|
1268
|
+
async function X(w) {
|
|
1269
|
+
var l;
|
|
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({
|
|
1259
1272
|
file: a,
|
|
1260
1273
|
onError: () => {
|
|
1261
1274
|
},
|
|
@@ -1265,31 +1278,31 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1265
1278
|
}
|
|
1266
1279
|
}));
|
|
1267
1280
|
}
|
|
1268
|
-
async function
|
|
1281
|
+
async function le(w) {
|
|
1269
1282
|
var V, a;
|
|
1270
|
-
if (
|
|
1271
|
-
return
|
|
1283
|
+
if (w.file.size > 51200 * 1e3)
|
|
1284
|
+
return he.error("图片过大"), !1;
|
|
1272
1285
|
I.value = !0;
|
|
1273
1286
|
try {
|
|
1274
|
-
const
|
|
1275
|
-
return f.value = re(
|
|
1276
|
-
} catch (
|
|
1277
|
-
return (a =
|
|
1287
|
+
const l = await ne(w);
|
|
1288
|
+
return f.value = re(l), Z(), he.success("上传图片成功"), (V = w.onSuccess) == null || V.call(w, l), !0;
|
|
1289
|
+
} catch (l) {
|
|
1290
|
+
return (a = w.onError) == null || a.call(w, l), he.error("上传失败"), !1;
|
|
1278
1291
|
} finally {
|
|
1279
1292
|
I.value = !1;
|
|
1280
1293
|
}
|
|
1281
1294
|
}
|
|
1282
|
-
async function ne(
|
|
1295
|
+
async function ne(w) {
|
|
1283
1296
|
const V = new FormData();
|
|
1284
|
-
if (V.append(e.uploadName,
|
|
1297
|
+
if (V.append(e.uploadName, w.file), e.uploadRequest)
|
|
1285
1298
|
return e.uploadRequest({
|
|
1286
|
-
file:
|
|
1299
|
+
file: w.file,
|
|
1287
1300
|
formData: V,
|
|
1288
|
-
options:
|
|
1301
|
+
options: w,
|
|
1289
1302
|
api: e.api,
|
|
1290
1303
|
tokenKey: e.tokenKey
|
|
1291
1304
|
});
|
|
1292
|
-
const a =
|
|
1305
|
+
const a = xt.get(e.tokenKey);
|
|
1293
1306
|
return (await fetch(e.api, {
|
|
1294
1307
|
method: "POST",
|
|
1295
1308
|
body: V,
|
|
@@ -1297,10 +1310,10 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1297
1310
|
headers: a ? { Authorization: `Bearer ${a}` } : void 0
|
|
1298
1311
|
})).json();
|
|
1299
1312
|
}
|
|
1300
|
-
function re(
|
|
1301
|
-
var
|
|
1302
|
-
if (typeof
|
|
1303
|
-
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) ?? "";
|
|
1304
1317
|
return Array.isArray(a) ? a[0] || "" : a || "";
|
|
1305
1318
|
}
|
|
1306
1319
|
function Z() {
|
|
@@ -1313,18 +1326,18 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1313
1326
|
return D({
|
|
1314
1327
|
deleteImage: ae,
|
|
1315
1328
|
// 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
|
|
1316
|
-
clearContent:
|
|
1329
|
+
clearContent: J,
|
|
1317
1330
|
// 给表单保存或外部调试读取当前拆分值。
|
|
1318
1331
|
getValue: () => ({
|
|
1319
1332
|
text: y.value || "",
|
|
1320
1333
|
imageUrl: f.value || "",
|
|
1321
1334
|
value: ut(y.value || "", f.value || "")
|
|
1322
1335
|
})
|
|
1323
|
-
}), (
|
|
1324
|
-
class: ke(["qy-remark-image",
|
|
1336
|
+
}), (w, V) => (v(), A("div", {
|
|
1337
|
+
class: ke(["qy-remark-image", _.value]),
|
|
1325
1338
|
style: Pe(M.value)
|
|
1326
1339
|
}, [
|
|
1327
|
-
|
|
1340
|
+
T("div", ql, [
|
|
1328
1341
|
x.value ? (v(), ce($(ht), {
|
|
1329
1342
|
key: 0,
|
|
1330
1343
|
class: "qy-remark-image__prefix-select",
|
|
@@ -1335,7 +1348,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1335
1348
|
"onUpdate:modelValue": L
|
|
1336
1349
|
}, {
|
|
1337
1350
|
default: h(() => [
|
|
1338
|
-
(v(!0), A(
|
|
1351
|
+
(v(!0), A(ze, null, et(t.selectOptions, (a) => (v(), ce($(bt), {
|
|
1339
1352
|
key: String(a.value),
|
|
1340
1353
|
label: a.label,
|
|
1341
1354
|
value: a.value,
|
|
@@ -1344,8 +1357,8 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1344
1357
|
]),
|
|
1345
1358
|
_: 1
|
|
1346
1359
|
}, 8, ["model-value", "options", "disabled"])) : P("", !0),
|
|
1347
|
-
x.value ? (v(), A("span",
|
|
1348
|
-
O($(Me),
|
|
1360
|
+
x.value ? (v(), A("span", Bl)) : P("", !0),
|
|
1361
|
+
O($(Me), xe({
|
|
1349
1362
|
ref_key: "inputRef",
|
|
1350
1363
|
ref: d,
|
|
1351
1364
|
"model-value": y.value,
|
|
@@ -1355,38 +1368,38 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1355
1368
|
disabled: t.disabled,
|
|
1356
1369
|
placeholder: t.placeholder
|
|
1357
1370
|
}, $(H), {
|
|
1358
|
-
"onUpdate:modelValue":
|
|
1371
|
+
"onUpdate:modelValue": R,
|
|
1359
1372
|
onBlur: Z
|
|
1360
1373
|
}), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
|
|
1361
|
-
O($(
|
|
1374
|
+
O($(Ga), {
|
|
1362
1375
|
placement: "top-start",
|
|
1363
1376
|
width: 400,
|
|
1364
1377
|
trigger: "hover",
|
|
1365
1378
|
disabled: !f.value
|
|
1366
1379
|
}, {
|
|
1367
1380
|
reference: h(() => [
|
|
1368
|
-
|
|
1369
|
-
O($(
|
|
1381
|
+
T("div", Al, [
|
|
1382
|
+
O($(Ja), {
|
|
1370
1383
|
disabled: I.value || t.disabled,
|
|
1371
1384
|
class: "qy-remark-image__upload",
|
|
1372
1385
|
"show-file-list": !1,
|
|
1373
|
-
"http-request":
|
|
1386
|
+
"http-request": le
|
|
1374
1387
|
}, {
|
|
1375
1388
|
default: h(() => [
|
|
1376
|
-
I.value ? (v(), A("span",
|
|
1389
|
+
I.value ? (v(), A("span", Il)) : f.value ? (v(), A("span", Tl)) : (v(), A("span", Rl))
|
|
1377
1390
|
]),
|
|
1378
1391
|
_: 1
|
|
1379
1392
|
}, 8, ["disabled"])
|
|
1380
1393
|
])
|
|
1381
1394
|
]),
|
|
1382
1395
|
default: h(() => [
|
|
1383
|
-
|
|
1384
|
-
|
|
1396
|
+
T("div", zl, [
|
|
1397
|
+
T("img", {
|
|
1385
1398
|
src: f.value,
|
|
1386
1399
|
class: "qy-remark-image__preview-img"
|
|
1387
|
-
}, null, 8,
|
|
1388
|
-
|
|
1389
|
-
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)),
|
|
1390
1403
|
O($(Ve), {
|
|
1391
1404
|
link: "",
|
|
1392
1405
|
size: "small",
|
|
@@ -1395,7 +1408,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1395
1408
|
onClick: ae
|
|
1396
1409
|
}, {
|
|
1397
1410
|
default: h(() => [...V[0] || (V[0] = [
|
|
1398
|
-
|
|
1411
|
+
be(" 删除图片 ", -1)
|
|
1399
1412
|
])]),
|
|
1400
1413
|
_: 1
|
|
1401
1414
|
}, 8, ["disabled"])
|
|
@@ -1407,7 +1420,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1407
1420
|
])
|
|
1408
1421
|
], 6));
|
|
1409
1422
|
}
|
|
1410
|
-
}),
|
|
1423
|
+
}), Ml = /* @__PURE__ */ Re(Dl, [["__scopeId", "data-v-3158c066"]]), Ol = /* @__PURE__ */ qe({
|
|
1411
1424
|
name: "QyMoneyInput",
|
|
1412
1425
|
inheritAttrs: !1,
|
|
1413
1426
|
__name: "index",
|
|
@@ -1435,88 +1448,88 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1435
1448
|
function x(a) {
|
|
1436
1449
|
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 2;
|
|
1437
1450
|
}
|
|
1438
|
-
function
|
|
1439
|
-
const
|
|
1440
|
-
let
|
|
1451
|
+
function _(a) {
|
|
1452
|
+
const l = I(a);
|
|
1453
|
+
let U = "", te = !1, s = !1;
|
|
1441
1454
|
const p = x(e.precision);
|
|
1442
|
-
for (let
|
|
1443
|
-
const g =
|
|
1455
|
+
for (let C = 0; C < l.length; C += 1) {
|
|
1456
|
+
const g = l[C];
|
|
1444
1457
|
if (g >= "0" && g <= "9") {
|
|
1445
|
-
|
|
1458
|
+
U += g;
|
|
1446
1459
|
continue;
|
|
1447
1460
|
}
|
|
1448
1461
|
if (g === "." && p > 0 && !te) {
|
|
1449
|
-
|
|
1462
|
+
U += g, te = !0;
|
|
1450
1463
|
continue;
|
|
1451
1464
|
}
|
|
1452
|
-
g === "-" && e.allowNegative &&
|
|
1465
|
+
g === "-" && e.allowNegative && C === 0 && !s && (U += g, s = !0);
|
|
1453
1466
|
}
|
|
1454
1467
|
if (p > 0 && te) {
|
|
1455
|
-
const [
|
|
1456
|
-
return `${
|
|
1468
|
+
const [C, g = ""] = U.split(".");
|
|
1469
|
+
return `${C}.${g.slice(0, p)}`;
|
|
1457
1470
|
}
|
|
1458
|
-
return
|
|
1471
|
+
return U;
|
|
1459
1472
|
}
|
|
1460
1473
|
function E(a) {
|
|
1461
|
-
let
|
|
1462
|
-
return typeof e.min == "number" && Number.isFinite(e.min) && (
|
|
1474
|
+
let l = a;
|
|
1475
|
+
return typeof e.min == "number" && Number.isFinite(e.min) && (l = Math.max(l, e.min)), typeof e.max == "number" && Number.isFinite(e.max) && (l = Math.min(l, e.max)), l;
|
|
1463
1476
|
}
|
|
1464
1477
|
function M(a) {
|
|
1465
|
-
const
|
|
1466
|
-
if (!
|
|
1478
|
+
const l = _(a);
|
|
1479
|
+
if (!l || l === "-" || l === ".")
|
|
1467
1480
|
return I(e.emptyValue);
|
|
1468
|
-
const
|
|
1469
|
-
if (Number.isNaN(
|
|
1481
|
+
const U = Number(l);
|
|
1482
|
+
if (Number.isNaN(U)) return I(e.emptyValue);
|
|
1470
1483
|
const te = x(e.precision);
|
|
1471
|
-
return E(
|
|
1484
|
+
return E(U).toFixed(te);
|
|
1472
1485
|
}
|
|
1473
1486
|
function j(a) {
|
|
1474
1487
|
y.value = a, n("update:modelValue", a);
|
|
1475
1488
|
}
|
|
1476
1489
|
function G(a) {
|
|
1477
|
-
const
|
|
1478
|
-
j(
|
|
1490
|
+
const l = _(a);
|
|
1491
|
+
j(l);
|
|
1479
1492
|
}
|
|
1480
|
-
function
|
|
1481
|
-
const
|
|
1482
|
-
y.value =
|
|
1493
|
+
function R(a) {
|
|
1494
|
+
const l = _(a);
|
|
1495
|
+
y.value = l, n("input", l);
|
|
1483
1496
|
}
|
|
1484
1497
|
function L(a) {
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1498
|
+
const l = e.formatTrigger === "change" ? M(a) : _(a);
|
|
1499
|
+
l !== I(e.modelValue) && j(l), n("change", l);
|
|
1487
1500
|
}
|
|
1488
1501
|
function ae(a) {
|
|
1489
1502
|
n("focus", a);
|
|
1490
1503
|
}
|
|
1491
|
-
function
|
|
1504
|
+
function J(a) {
|
|
1492
1505
|
if (e.formatTrigger === "blur") {
|
|
1493
|
-
const
|
|
1494
|
-
|
|
1506
|
+
const l = M(y.value);
|
|
1507
|
+
l !== I(e.modelValue) && j(l);
|
|
1495
1508
|
}
|
|
1496
1509
|
n("blur", a);
|
|
1497
1510
|
}
|
|
1498
|
-
function
|
|
1511
|
+
function X() {
|
|
1499
1512
|
const a = I(e.emptyValue);
|
|
1500
1513
|
y.value = a, n("update:modelValue", a), n("clear");
|
|
1501
1514
|
}
|
|
1502
|
-
function
|
|
1515
|
+
function le(a) {
|
|
1503
1516
|
n("enter", a);
|
|
1504
1517
|
}
|
|
1505
1518
|
function ne() {
|
|
1506
|
-
var a,
|
|
1507
|
-
(
|
|
1519
|
+
var a, l;
|
|
1520
|
+
(l = (a = d.value) == null ? void 0 : a.focus) == null || l.call(a);
|
|
1508
1521
|
}
|
|
1509
1522
|
function re() {
|
|
1510
|
-
var a,
|
|
1511
|
-
(
|
|
1523
|
+
var a, l;
|
|
1524
|
+
(l = (a = d.value) == null ? void 0 : a.blur) == null || l.call(a);
|
|
1512
1525
|
}
|
|
1513
1526
|
function Z() {
|
|
1514
|
-
var a,
|
|
1515
|
-
(
|
|
1527
|
+
var a, l;
|
|
1528
|
+
(l = (a = d.value) == null ? void 0 : a.select) == null || l.call(a);
|
|
1516
1529
|
}
|
|
1517
|
-
function
|
|
1518
|
-
var a,
|
|
1519
|
-
(
|
|
1530
|
+
function w() {
|
|
1531
|
+
var a, l;
|
|
1532
|
+
(l = (a = d.value) == null ? void 0 : a.clear) == null || l.call(a);
|
|
1520
1533
|
}
|
|
1521
1534
|
function V() {
|
|
1522
1535
|
var a;
|
|
@@ -1526,53 +1539,53 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1526
1539
|
focus: ne,
|
|
1527
1540
|
blur: re,
|
|
1528
1541
|
select: Z,
|
|
1529
|
-
clear:
|
|
1542
|
+
clear: w,
|
|
1530
1543
|
getNativeInput: V
|
|
1531
|
-
}), (a,
|
|
1544
|
+
}), (a, l) => (v(), ce($(Me), xe({
|
|
1532
1545
|
ref_key: "inputRef",
|
|
1533
1546
|
ref: d
|
|
1534
1547
|
}, $(H), {
|
|
1535
1548
|
"model-value": f.value,
|
|
1536
1549
|
inputmode: "decimal",
|
|
1537
1550
|
"onUpdate:modelValue": G,
|
|
1538
|
-
onInput:
|
|
1551
|
+
onInput: R,
|
|
1539
1552
|
onChange: L,
|
|
1540
1553
|
onFocus: ae,
|
|
1541
|
-
onBlur:
|
|
1542
|
-
onClear:
|
|
1543
|
-
onKeydown: Ee(
|
|
1544
|
-
}),
|
|
1554
|
+
onBlur: J,
|
|
1555
|
+
onClear: X,
|
|
1556
|
+
onKeydown: Ee(le, ["enter"])
|
|
1557
|
+
}), _e({ _: 2 }, [
|
|
1545
1558
|
a.$slots.prefix ? {
|
|
1546
1559
|
name: "prefix",
|
|
1547
1560
|
fn: h(() => [
|
|
1548
|
-
|
|
1561
|
+
z(a.$slots, "prefix")
|
|
1549
1562
|
]),
|
|
1550
1563
|
key: "0"
|
|
1551
1564
|
} : void 0,
|
|
1552
1565
|
a.$slots.suffix ? {
|
|
1553
1566
|
name: "suffix",
|
|
1554
1567
|
fn: h(() => [
|
|
1555
|
-
|
|
1568
|
+
z(a.$slots, "suffix")
|
|
1556
1569
|
]),
|
|
1557
1570
|
key: "1"
|
|
1558
1571
|
} : void 0,
|
|
1559
1572
|
a.$slots.prepend ? {
|
|
1560
1573
|
name: "prepend",
|
|
1561
1574
|
fn: h(() => [
|
|
1562
|
-
|
|
1575
|
+
z(a.$slots, "prepend")
|
|
1563
1576
|
]),
|
|
1564
1577
|
key: "2"
|
|
1565
1578
|
} : void 0,
|
|
1566
1579
|
a.$slots.append ? {
|
|
1567
1580
|
name: "append",
|
|
1568
1581
|
fn: h(() => [
|
|
1569
|
-
|
|
1582
|
+
z(a.$slots, "append")
|
|
1570
1583
|
]),
|
|
1571
1584
|
key: "3"
|
|
1572
1585
|
} : void 0
|
|
1573
1586
|
]), 1040, ["model-value"]));
|
|
1574
1587
|
}
|
|
1575
|
-
}),
|
|
1588
|
+
}), _l = /* @__PURE__ */ qe({
|
|
1576
1589
|
name: "QyRemoteSelect",
|
|
1577
1590
|
inheritAttrs: !1,
|
|
1578
1591
|
__name: "index",
|
|
@@ -1606,10 +1619,10 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1606
1619
|
},
|
|
1607
1620
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
|
|
1608
1621
|
setup(t, { expose: D, emit: W }) {
|
|
1609
|
-
const e = t, n = W, H = Be(), d = q(null), y = q([]), f = q(/* @__PURE__ */ new Map()), I = q(!1), x = q(""),
|
|
1622
|
+
const e = t, n = W, H = Be(), d = q(null), y = q([]), f = q(/* @__PURE__ */ new Map()), I = q(!1), x = q(""), _ = q("");
|
|
1610
1623
|
let E = 0, M = null;
|
|
1611
|
-
const j = F(() => e.loading || I.value), G = q(!1),
|
|
1612
|
-
if (
|
|
1624
|
+
const j = F(() => e.loading || I.value), G = q(!1), R = F(() => x.value !== ""), L = F(() => {
|
|
1625
|
+
if (R.value) return y.value;
|
|
1613
1626
|
const m = /* @__PURE__ */ new Map(), Y = (r) => {
|
|
1614
1627
|
m.set(ae(r), r);
|
|
1615
1628
|
};
|
|
@@ -1618,28 +1631,28 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1618
1631
|
fe(
|
|
1619
1632
|
() => e.defaultOptions,
|
|
1620
1633
|
(m) => {
|
|
1621
|
-
m.forEach(
|
|
1634
|
+
m.forEach(X);
|
|
1622
1635
|
},
|
|
1623
1636
|
{ immediate: !0 }
|
|
1624
1637
|
), fe(
|
|
1625
1638
|
() => e.modelValue,
|
|
1626
1639
|
() => {
|
|
1627
|
-
L.value.forEach(
|
|
1640
|
+
L.value.forEach(X);
|
|
1628
1641
|
},
|
|
1629
1642
|
{ immediate: !0 }
|
|
1630
1643
|
);
|
|
1631
1644
|
function ae(m) {
|
|
1632
1645
|
return (m == null ? void 0 : m[e.valueKey]) ?? (m == null ? void 0 : m.value) ?? (m == null ? void 0 : m.label);
|
|
1633
1646
|
}
|
|
1634
|
-
function
|
|
1647
|
+
function J(m) {
|
|
1635
1648
|
return Array.isArray(e.modelValue) ? e.modelValue.includes(m) : e.modelValue === m;
|
|
1636
1649
|
}
|
|
1637
|
-
function
|
|
1650
|
+
function X(m) {
|
|
1638
1651
|
if (!e.reserveSelectedOption) return;
|
|
1639
1652
|
const Y = ae(m);
|
|
1640
|
-
|
|
1653
|
+
J(Y) && f.value.set(Y, m);
|
|
1641
1654
|
}
|
|
1642
|
-
function
|
|
1655
|
+
function le(m) {
|
|
1643
1656
|
return e.disabled ? !1 : m ? m.length >= e.minLength : e.remoteOnFocus;
|
|
1644
1657
|
}
|
|
1645
1658
|
function ne(m) {
|
|
@@ -1647,18 +1660,18 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1647
1660
|
}
|
|
1648
1661
|
async function re(m) {
|
|
1649
1662
|
const Y = B(m), r = ++E;
|
|
1650
|
-
if (ie(Y), !
|
|
1663
|
+
if (ie(Y), !le(Y)) {
|
|
1651
1664
|
y.value = [], ne(!1), n("options-change", L.value);
|
|
1652
1665
|
return;
|
|
1653
1666
|
}
|
|
1654
1667
|
ne(!0);
|
|
1655
1668
|
try {
|
|
1656
|
-
const
|
|
1669
|
+
const S = await e.fetchMethod(Y);
|
|
1657
1670
|
if (r !== E) return;
|
|
1658
|
-
y.value = Array.isArray(
|
|
1659
|
-
} catch (
|
|
1671
|
+
y.value = Array.isArray(S) ? S : [], y.value.forEach(X), n("options-change", L.value);
|
|
1672
|
+
} catch (S) {
|
|
1660
1673
|
if (r !== E) return;
|
|
1661
|
-
y.value = [], n("error",
|
|
1674
|
+
y.value = [], n("error", S), n("options-change", L.value);
|
|
1662
1675
|
} finally {
|
|
1663
1676
|
r === E && ne(!1);
|
|
1664
1677
|
}
|
|
@@ -1666,9 +1679,9 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1666
1679
|
function Z() {
|
|
1667
1680
|
G.value || (G.value = !0, re(""));
|
|
1668
1681
|
}
|
|
1669
|
-
function
|
|
1682
|
+
function w(m) {
|
|
1670
1683
|
const Y = B(m);
|
|
1671
|
-
|
|
1684
|
+
_.value = Y, E += 1, ie(Y), M && (clearTimeout(M), M = null), M = setTimeout(() => {
|
|
1672
1685
|
re(Y);
|
|
1673
1686
|
}, e.debounce);
|
|
1674
1687
|
}
|
|
@@ -1678,14 +1691,14 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1678
1691
|
function a() {
|
|
1679
1692
|
re(x.value);
|
|
1680
1693
|
}
|
|
1681
|
-
function
|
|
1682
|
-
|
|
1694
|
+
function l(m) {
|
|
1695
|
+
_.value = "", n("update:modelValue", m);
|
|
1683
1696
|
}
|
|
1684
|
-
function
|
|
1685
|
-
|
|
1697
|
+
function U(m) {
|
|
1698
|
+
_.value = "", L.value.forEach(X), n("change", m);
|
|
1686
1699
|
}
|
|
1687
1700
|
function te() {
|
|
1688
|
-
|
|
1701
|
+
_.value = "", n("clear");
|
|
1689
1702
|
}
|
|
1690
1703
|
function s(m) {
|
|
1691
1704
|
m && e.remoteOnFocus && !x.value && Z(), n("visible-change", m);
|
|
@@ -1693,13 +1706,13 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1693
1706
|
function p(m) {
|
|
1694
1707
|
e.remoteOnFocus && !x.value && Z(), n("focus", m);
|
|
1695
1708
|
}
|
|
1696
|
-
function
|
|
1709
|
+
function C(m) {
|
|
1697
1710
|
g(), n("blur", m);
|
|
1698
1711
|
}
|
|
1699
1712
|
function g() {
|
|
1700
1713
|
if (!e.allowCreate || !e.commitOnBlur || e.disabled) return;
|
|
1701
|
-
const m =
|
|
1702
|
-
m.trim() && (
|
|
1714
|
+
const m = _.value;
|
|
1715
|
+
m.trim() && (_.value = "", n("update:modelValue", m), n("change", m));
|
|
1703
1716
|
}
|
|
1704
1717
|
function B(m) {
|
|
1705
1718
|
return String(m ?? "");
|
|
@@ -1711,11 +1724,11 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1711
1724
|
var m, Y;
|
|
1712
1725
|
(Y = (m = d.value) == null ? void 0 : m.focus) == null || Y.call(m);
|
|
1713
1726
|
}
|
|
1714
|
-
function
|
|
1727
|
+
function we() {
|
|
1715
1728
|
var m, Y;
|
|
1716
1729
|
(Y = (m = d.value) == null ? void 0 : m.blur) == null || Y.call(m);
|
|
1717
1730
|
}
|
|
1718
|
-
function
|
|
1731
|
+
function Qe() {
|
|
1719
1732
|
n("update:modelValue", e.multiple ? [] : ""), n("clear");
|
|
1720
1733
|
}
|
|
1721
1734
|
return ft(() => {
|
|
@@ -1723,11 +1736,11 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1723
1736
|
}), D({
|
|
1724
1737
|
// 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
|
|
1725
1738
|
focus: me,
|
|
1726
|
-
blur:
|
|
1727
|
-
clear:
|
|
1739
|
+
blur: we,
|
|
1740
|
+
clear: Qe,
|
|
1728
1741
|
retryFetch: a,
|
|
1729
1742
|
fetchDefaultOptions: V
|
|
1730
|
-
}), (m, Y) => (v(), ce(tt,
|
|
1743
|
+
}), (m, Y) => (v(), ce(tt, xe({
|
|
1731
1744
|
ref_key: "selectRef",
|
|
1732
1745
|
ref: d
|
|
1733
1746
|
}, $(H), {
|
|
@@ -1752,54 +1765,54 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1752
1765
|
remote: "",
|
|
1753
1766
|
debounce: 0,
|
|
1754
1767
|
"remote-show-suffix": t.remoteShowSuffix,
|
|
1755
|
-
"remote-method":
|
|
1768
|
+
"remote-method": w,
|
|
1756
1769
|
loading: j.value,
|
|
1757
|
-
"onUpdate:modelValue":
|
|
1758
|
-
onChange:
|
|
1770
|
+
"onUpdate:modelValue": l,
|
|
1771
|
+
onChange: U,
|
|
1759
1772
|
onClear: te,
|
|
1760
1773
|
onVisibleChange: s,
|
|
1761
1774
|
onFocus: p,
|
|
1762
|
-
onBlur:
|
|
1763
|
-
}),
|
|
1775
|
+
onBlur: C
|
|
1776
|
+
}), _e({
|
|
1764
1777
|
default: h(() => [
|
|
1765
|
-
m.$slots.default ?
|
|
1778
|
+
m.$slots.default ? z(m.$slots, "default", {}, void 0, void 0, 0) : P("", !0)
|
|
1766
1779
|
]),
|
|
1767
1780
|
_: 2
|
|
1768
1781
|
}, [
|
|
1769
1782
|
m.$slots.prefix ? {
|
|
1770
1783
|
name: "prefix",
|
|
1771
1784
|
fn: h(() => [
|
|
1772
|
-
|
|
1785
|
+
z(m.$slots, "prefix")
|
|
1773
1786
|
]),
|
|
1774
1787
|
key: "0"
|
|
1775
1788
|
} : void 0,
|
|
1776
1789
|
m.$slots.empty ? {
|
|
1777
1790
|
name: "empty",
|
|
1778
1791
|
fn: h(() => [
|
|
1779
|
-
|
|
1792
|
+
z(m.$slots, "empty")
|
|
1780
1793
|
]),
|
|
1781
1794
|
key: "1"
|
|
1782
1795
|
} : void 0,
|
|
1783
1796
|
m.$slots.loading ? {
|
|
1784
1797
|
name: "loading",
|
|
1785
1798
|
fn: h(() => [
|
|
1786
|
-
|
|
1799
|
+
z(m.$slots, "loading")
|
|
1787
1800
|
]),
|
|
1788
1801
|
key: "2"
|
|
1789
1802
|
} : void 0,
|
|
1790
1803
|
m.$slots.tag ? {
|
|
1791
1804
|
name: "tag",
|
|
1792
1805
|
fn: h((r) => [
|
|
1793
|
-
|
|
1806
|
+
z(m.$slots, "tag", gt(vt(r)))
|
|
1794
1807
|
]),
|
|
1795
1808
|
key: "3"
|
|
1796
1809
|
} : void 0
|
|
1797
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"]));
|
|
1798
1811
|
}
|
|
1799
|
-
}),
|
|
1812
|
+
}), Ll = { class: "qy-search-input__item" }, Ul = ["innerHTML"], Kl = {
|
|
1800
1813
|
key: 0,
|
|
1801
1814
|
class: "qy-search-input__item-description"
|
|
1802
|
-
},
|
|
1815
|
+
}, El = /* @__PURE__ */ qe({
|
|
1803
1816
|
name: "QySearchInput",
|
|
1804
1817
|
inheritAttrs: !1,
|
|
1805
1818
|
__name: "index",
|
|
@@ -1832,7 +1845,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1832
1845
|
setup(t, { expose: D, emit: W }) {
|
|
1833
1846
|
const e = t, n = W, H = Be(), d = q(null), y = q(E(e.modelValue)), f = F(() => E(e.modelValue)), I = F(
|
|
1834
1847
|
() => ["qy-search-input__popper", e.popperClass].filter(Boolean).join(" ")
|
|
1835
|
-
), x = F(() => E(e.modelValue)),
|
|
1848
|
+
), x = F(() => E(e.modelValue)), _ = q("");
|
|
1836
1849
|
fe(
|
|
1837
1850
|
() => e.modelValue,
|
|
1838
1851
|
(r) => {
|
|
@@ -1845,45 +1858,45 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1845
1858
|
function M(r) {
|
|
1846
1859
|
return e.removeSpace ? r.replace(/\s+/g, "") : r;
|
|
1847
1860
|
}
|
|
1848
|
-
function j(r,
|
|
1849
|
-
return e.trimMode !==
|
|
1861
|
+
function j(r, S) {
|
|
1862
|
+
return e.trimMode !== S ? r : r.trim();
|
|
1850
1863
|
}
|
|
1851
1864
|
function G(r) {
|
|
1852
1865
|
return M(E(r));
|
|
1853
1866
|
}
|
|
1854
|
-
function
|
|
1867
|
+
function R(r) {
|
|
1855
1868
|
y.value = r, n("update:modelValue", r);
|
|
1856
1869
|
}
|
|
1857
|
-
function L(r,
|
|
1870
|
+
function L(r, S = "") {
|
|
1858
1871
|
return {
|
|
1859
1872
|
...r,
|
|
1860
1873
|
label: r.label || r.value,
|
|
1861
1874
|
value: r.value || r.label,
|
|
1862
|
-
description: r.description ||
|
|
1875
|
+
description: r.description || S
|
|
1863
1876
|
};
|
|
1864
1877
|
}
|
|
1865
1878
|
function ae(r = []) {
|
|
1866
|
-
return r.flatMap((
|
|
1867
|
-
if (Array.isArray(
|
|
1868
|
-
const ee =
|
|
1879
|
+
return r.flatMap((S) => {
|
|
1880
|
+
if (Array.isArray(S.items)) {
|
|
1881
|
+
const ee = S;
|
|
1869
1882
|
return ee.items.map((Se) => L(Se, ee.groupLabel));
|
|
1870
1883
|
}
|
|
1871
|
-
return L(
|
|
1884
|
+
return L(S);
|
|
1872
1885
|
});
|
|
1873
1886
|
}
|
|
1874
|
-
function X(r) {
|
|
1875
|
-
const w = r.toLowerCase();
|
|
1876
|
-
return (ee) => [ee.label, ee.value, ee.description].filter(Boolean).some((Se) => String(Se).toLowerCase().includes(w));
|
|
1877
|
-
}
|
|
1878
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));
|
|
1890
|
+
}
|
|
1891
|
+
function X(r) {
|
|
1879
1892
|
return r ? r.length >= e.minLength : e.triggerOnFocus;
|
|
1880
1893
|
}
|
|
1881
|
-
function
|
|
1894
|
+
function le(r) {
|
|
1882
1895
|
n("suggestions-change", r), n("visible-change", r.length > 0);
|
|
1883
1896
|
}
|
|
1884
1897
|
async function ne(r) {
|
|
1885
|
-
if (!
|
|
1886
|
-
return
|
|
1898
|
+
if (!X(r))
|
|
1899
|
+
return le([]), [];
|
|
1887
1900
|
if (e.fetchSuggestionsMethod) {
|
|
1888
1901
|
const Se = await new Promise(($e) => {
|
|
1889
1902
|
var de;
|
|
@@ -1891,49 +1904,49 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1891
1904
|
$e(ae(De));
|
|
1892
1905
|
});
|
|
1893
1906
|
});
|
|
1894
|
-
return
|
|
1907
|
+
return le(Se), Se;
|
|
1895
1908
|
}
|
|
1896
1909
|
if (e.fetchSuggestions) {
|
|
1897
1910
|
const Se = await e.fetchSuggestions(r), $e = ae(Array.isArray(Se) ? Se : []);
|
|
1898
|
-
return
|
|
1911
|
+
return le($e), $e;
|
|
1899
1912
|
}
|
|
1900
|
-
const
|
|
1901
|
-
return
|
|
1913
|
+
const S = ae(e.suggestions), ee = r ? S.filter(J(r)) : S;
|
|
1914
|
+
return le(ee), ee;
|
|
1902
1915
|
}
|
|
1903
|
-
async function re(r,
|
|
1904
|
-
|
|
1916
|
+
async function re(r, S) {
|
|
1917
|
+
_.value = r;
|
|
1905
1918
|
try {
|
|
1906
1919
|
const ee = await ne(r);
|
|
1907
|
-
|
|
1920
|
+
S(ee);
|
|
1908
1921
|
} catch (ee) {
|
|
1909
|
-
n("error", ee),
|
|
1922
|
+
n("error", ee), le([]), S([]);
|
|
1910
1923
|
}
|
|
1911
1924
|
}
|
|
1912
1925
|
function Z() {
|
|
1913
|
-
var r,
|
|
1914
|
-
|
|
1926
|
+
var r, S;
|
|
1927
|
+
_.value && ((S = (r = d.value) == null ? void 0 : r.getData) == null || S.call(r, _.value));
|
|
1915
1928
|
}
|
|
1916
|
-
function
|
|
1917
|
-
const
|
|
1918
|
-
|
|
1929
|
+
function w(r) {
|
|
1930
|
+
const S = G(r);
|
|
1931
|
+
R(S);
|
|
1919
1932
|
}
|
|
1920
1933
|
function V(r) {
|
|
1921
|
-
const
|
|
1922
|
-
y.value =
|
|
1934
|
+
const S = G(r);
|
|
1935
|
+
y.value = S, n("input", S);
|
|
1923
1936
|
}
|
|
1924
1937
|
function a(r) {
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1938
|
+
const S = j(G(r), "change");
|
|
1939
|
+
S !== E(e.modelValue) && R(S), n("change", S);
|
|
1927
1940
|
}
|
|
1928
|
-
function
|
|
1941
|
+
function l(r) {
|
|
1929
1942
|
n("focus", r);
|
|
1930
1943
|
}
|
|
1931
|
-
function
|
|
1932
|
-
const
|
|
1933
|
-
|
|
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);
|
|
1934
1947
|
}
|
|
1935
1948
|
function te() {
|
|
1936
|
-
y.value = "", n("update:modelValue", ""), n("clear"),
|
|
1949
|
+
y.value = "", n("update:modelValue", ""), n("clear"), le([]);
|
|
1937
1950
|
}
|
|
1938
1951
|
function s(r) {
|
|
1939
1952
|
n("enter", r), e.searchOnEnter && p();
|
|
@@ -1941,7 +1954,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1941
1954
|
function p() {
|
|
1942
1955
|
n("search", E(e.modelValue));
|
|
1943
1956
|
}
|
|
1944
|
-
function
|
|
1957
|
+
function C(r) {
|
|
1945
1958
|
n("select", r), e.searchOnSelect && n("search", r.value);
|
|
1946
1959
|
}
|
|
1947
1960
|
function g(r) {
|
|
@@ -1951,46 +1964,46 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
1951
1964
|
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1952
1965
|
}
|
|
1953
1966
|
function ie(r) {
|
|
1954
|
-
const
|
|
1955
|
-
if (!e.highlightKeyword || !f.value) return
|
|
1967
|
+
const S = g(r || "");
|
|
1968
|
+
if (!e.highlightKeyword || !f.value) return S;
|
|
1956
1969
|
const ee = B(g(f.value));
|
|
1957
|
-
return ee ?
|
|
1970
|
+
return ee ? S.replace(
|
|
1958
1971
|
new RegExp(`(${ee})`, "ig"),
|
|
1959
1972
|
'<mark class="qy-search-input__mark">$1</mark>'
|
|
1960
|
-
) :
|
|
1973
|
+
) : S;
|
|
1961
1974
|
}
|
|
1962
1975
|
function me() {
|
|
1963
|
-
var r,
|
|
1964
|
-
(
|
|
1976
|
+
var r, S;
|
|
1977
|
+
(S = (r = d.value) == null ? void 0 : r.focus) == null || S.call(r);
|
|
1965
1978
|
}
|
|
1966
|
-
function
|
|
1967
|
-
var r,
|
|
1968
|
-
(
|
|
1979
|
+
function we() {
|
|
1980
|
+
var r, S;
|
|
1981
|
+
(S = (r = d.value) == null ? void 0 : r.blur) == null || S.call(r);
|
|
1969
1982
|
}
|
|
1970
|
-
function
|
|
1971
|
-
var r,
|
|
1972
|
-
(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);
|
|
1973
1986
|
}
|
|
1974
1987
|
function m() {
|
|
1975
|
-
var r,
|
|
1976
|
-
(
|
|
1988
|
+
var r, S;
|
|
1989
|
+
(S = (r = d.value) == null ? void 0 : r.clear) == null || S.call(r);
|
|
1977
1990
|
}
|
|
1978
1991
|
function Y() {
|
|
1979
|
-
var r,
|
|
1980
|
-
(
|
|
1992
|
+
var r, S;
|
|
1993
|
+
(S = (r = d.value) == null ? void 0 : r.close) == null || S.call(r);
|
|
1981
1994
|
}
|
|
1982
1995
|
return D({
|
|
1983
1996
|
// 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
|
|
1984
1997
|
focus: me,
|
|
1985
|
-
blur:
|
|
1986
|
-
select:
|
|
1998
|
+
blur: we,
|
|
1999
|
+
select: Qe,
|
|
1987
2000
|
clear: m,
|
|
1988
2001
|
closePanel: Y,
|
|
1989
2002
|
retryFetch: Z
|
|
1990
|
-
}), (r,
|
|
2003
|
+
}), (r, S) => (v(), A("div", {
|
|
1991
2004
|
class: ke(["qy-search-input", { "is-disabled": t.disabled }])
|
|
1992
2005
|
}, [
|
|
1993
|
-
O($(
|
|
2006
|
+
O($(Xa), xe({
|
|
1994
2007
|
ref_key: "autocompleteRef",
|
|
1995
2008
|
ref: d
|
|
1996
2009
|
}, $(H), {
|
|
@@ -2006,26 +2019,26 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2006
2019
|
"popper-class": I.value,
|
|
2007
2020
|
"append-to": t.appendTo,
|
|
2008
2021
|
"value-key": "value",
|
|
2009
|
-
"onUpdate:modelValue":
|
|
2022
|
+
"onUpdate:modelValue": w,
|
|
2010
2023
|
onInput: V,
|
|
2011
2024
|
onChange: a,
|
|
2012
|
-
onFocus:
|
|
2013
|
-
onBlur:
|
|
2025
|
+
onFocus: l,
|
|
2026
|
+
onBlur: U,
|
|
2014
2027
|
onClear: te,
|
|
2015
|
-
onSelect:
|
|
2028
|
+
onSelect: C,
|
|
2016
2029
|
onKeydown: Ee(s, ["enter"])
|
|
2017
|
-
}),
|
|
2030
|
+
}), _e({
|
|
2018
2031
|
default: h(({ item: ee }) => [
|
|
2019
|
-
|
|
2032
|
+
z(r.$slots, "item", {
|
|
2020
2033
|
item: ee,
|
|
2021
2034
|
keyword: f.value
|
|
2022
2035
|
}, () => [
|
|
2023
|
-
|
|
2024
|
-
|
|
2036
|
+
T("div", Ll, [
|
|
2037
|
+
T("div", {
|
|
2025
2038
|
class: "qy-search-input__item-label",
|
|
2026
2039
|
innerHTML: ie(ee.label || ee.value || "")
|
|
2027
|
-
}, null, 8,
|
|
2028
|
-
ee.description ? (v(), A("div",
|
|
2040
|
+
}, null, 8, Ul),
|
|
2041
|
+
ee.description ? (v(), A("div", Kl, pe(ee.description), 1)) : P("", !0)
|
|
2029
2042
|
])
|
|
2030
2043
|
], !0)
|
|
2031
2044
|
]),
|
|
@@ -2034,34 +2047,34 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2034
2047
|
r.$slots.prefix ? {
|
|
2035
2048
|
name: "prefix",
|
|
2036
2049
|
fn: h(() => [
|
|
2037
|
-
|
|
2050
|
+
z(r.$slots, "prefix", {}, void 0, !0)
|
|
2038
2051
|
]),
|
|
2039
2052
|
key: "0"
|
|
2040
2053
|
} : void 0,
|
|
2041
2054
|
r.$slots.suffix ? {
|
|
2042
2055
|
name: "suffix",
|
|
2043
2056
|
fn: h(() => [
|
|
2044
|
-
|
|
2057
|
+
z(r.$slots, "suffix", {}, void 0, !0)
|
|
2045
2058
|
]),
|
|
2046
2059
|
key: "1"
|
|
2047
2060
|
} : void 0,
|
|
2048
2061
|
r.$slots.prepend ? {
|
|
2049
2062
|
name: "prepend",
|
|
2050
2063
|
fn: h(() => [
|
|
2051
|
-
|
|
2064
|
+
z(r.$slots, "prepend", {}, void 0, !0)
|
|
2052
2065
|
]),
|
|
2053
2066
|
key: "2"
|
|
2054
2067
|
} : void 0,
|
|
2055
2068
|
r.$slots.append || t.showButton ? {
|
|
2056
2069
|
name: "append",
|
|
2057
2070
|
fn: h(() => [
|
|
2058
|
-
r.$slots.append ?
|
|
2071
|
+
r.$slots.append ? z(r.$slots, "append", {}, void 0, !0, 0) : (v(), ce($(Ve), xe({ key: 1 }, t.buttonProps, {
|
|
2059
2072
|
loading: t.loading,
|
|
2060
2073
|
disabled: t.disabled,
|
|
2061
2074
|
onClick: p
|
|
2062
2075
|
}), {
|
|
2063
2076
|
default: h(() => [
|
|
2064
|
-
|
|
2077
|
+
be(pe(t.buttonText), 1)
|
|
2065
2078
|
]),
|
|
2066
2079
|
_: 1
|
|
2067
2080
|
}, 16, ["loading", "disabled"]))
|
|
@@ -2071,16 +2084,16 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2071
2084
|
]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
|
|
2072
2085
|
], 2));
|
|
2073
2086
|
}
|
|
2074
|
-
}),
|
|
2087
|
+
}), Ct = /* @__PURE__ */ Re(El, [["__scopeId", "data-v-cd7f5dfc"]]), jl = { class: "qy-record-quote-search" }, Nl = {
|
|
2075
2088
|
key: 0,
|
|
2076
2089
|
class: "qy-record-quote-search__header"
|
|
2077
|
-
},
|
|
2090
|
+
}, Hl = {
|
|
2078
2091
|
key: 0,
|
|
2079
2092
|
class: "qy-record-quote-search__label"
|
|
2080
|
-
},
|
|
2093
|
+
}, Zl = {
|
|
2081
2094
|
key: 1,
|
|
2082
2095
|
class: "qy-record-quote-search__description"
|
|
2083
|
-
},
|
|
2096
|
+
}, Wl = /* @__PURE__ */ qe({
|
|
2084
2097
|
name: "QyRecordQuoteSearch",
|
|
2085
2098
|
inheritAttrs: !1,
|
|
2086
2099
|
__name: "index",
|
|
@@ -2113,92 +2126,92 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2113
2126
|
function x(a) {
|
|
2114
2127
|
return a == null ? "" : String(a);
|
|
2115
2128
|
}
|
|
2116
|
-
function
|
|
2117
|
-
const
|
|
2118
|
-
return te ? te[0] :
|
|
2129
|
+
function _(a) {
|
|
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;
|
|
2119
2132
|
}
|
|
2120
2133
|
function E(a) {
|
|
2121
2134
|
return x(a).replace(/\s+/g, "").trim().toUpperCase();
|
|
2122
2135
|
}
|
|
2123
2136
|
function M(a) {
|
|
2124
|
-
return e.extractMethod ? e.extractMethod(a) :
|
|
2137
|
+
return e.extractMethod ? e.extractMethod(a) : _(a);
|
|
2125
2138
|
}
|
|
2126
2139
|
function j(a) {
|
|
2127
2140
|
return e.normalizeMethod ? e.normalizeMethod(a) : E(a);
|
|
2128
2141
|
}
|
|
2129
|
-
function G(a,
|
|
2130
|
-
const
|
|
2131
|
-
return n("normalize", { rawValue:
|
|
2132
|
-
rawValue:
|
|
2142
|
+
function G(a, l) {
|
|
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,
|
|
2133
2146
|
code: s,
|
|
2134
|
-
item:
|
|
2147
|
+
item: l
|
|
2135
2148
|
};
|
|
2136
2149
|
}
|
|
2137
|
-
function
|
|
2150
|
+
function R(a) {
|
|
2138
2151
|
n("update:modelValue", a);
|
|
2139
2152
|
}
|
|
2140
2153
|
async function L(a) {
|
|
2141
2154
|
if (n("search", a), !!e.searchMethod) {
|
|
2142
2155
|
y.value = !0;
|
|
2143
2156
|
try {
|
|
2144
|
-
const
|
|
2145
|
-
n("success",
|
|
2146
|
-
} catch (
|
|
2147
|
-
n("error",
|
|
2157
|
+
const l = await e.searchMethod(a);
|
|
2158
|
+
n("success", l);
|
|
2159
|
+
} catch (l) {
|
|
2160
|
+
n("error", l);
|
|
2148
2161
|
} finally {
|
|
2149
2162
|
y.value = !1;
|
|
2150
2163
|
}
|
|
2151
2164
|
}
|
|
2152
2165
|
}
|
|
2153
2166
|
function ae(a) {
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2167
|
+
const l = G(a);
|
|
2168
|
+
l.code !== x(e.modelValue) && n("update:modelValue", l.code), L(l);
|
|
2156
2169
|
}
|
|
2157
|
-
function
|
|
2170
|
+
function J() {
|
|
2158
2171
|
n("clear");
|
|
2159
2172
|
}
|
|
2160
|
-
function
|
|
2173
|
+
function X(a) {
|
|
2161
2174
|
n("enter", a);
|
|
2162
2175
|
}
|
|
2163
|
-
function
|
|
2176
|
+
function le(a) {
|
|
2164
2177
|
if (n("select", a), !e.searchOnSelect) return;
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2178
|
+
const l = G(a.value, a);
|
|
2179
|
+
l.code !== x(e.modelValue) && n("update:modelValue", l.code), L(l);
|
|
2167
2180
|
}
|
|
2168
2181
|
function ne(a) {
|
|
2169
2182
|
n("error", a);
|
|
2170
2183
|
}
|
|
2171
2184
|
function re() {
|
|
2172
|
-
var a,
|
|
2173
|
-
(
|
|
2185
|
+
var a, l;
|
|
2186
|
+
(l = (a = d.value) == null ? void 0 : a.focus) == null || l.call(a);
|
|
2174
2187
|
}
|
|
2175
2188
|
function Z() {
|
|
2176
|
-
var a,
|
|
2177
|
-
(
|
|
2189
|
+
var a, l;
|
|
2190
|
+
(l = (a = d.value) == null ? void 0 : a.blur) == null || l.call(a);
|
|
2178
2191
|
}
|
|
2179
|
-
function
|
|
2180
|
-
var a,
|
|
2181
|
-
(
|
|
2192
|
+
function w() {
|
|
2193
|
+
var a, l;
|
|
2194
|
+
(l = (a = d.value) == null ? void 0 : a.select) == null || l.call(a);
|
|
2182
2195
|
}
|
|
2183
2196
|
function V() {
|
|
2184
|
-
var a,
|
|
2185
|
-
(
|
|
2197
|
+
var a, l;
|
|
2198
|
+
(l = (a = d.value) == null ? void 0 : a.clear) == null || l.call(a);
|
|
2186
2199
|
}
|
|
2187
2200
|
return D({
|
|
2188
2201
|
focus: re,
|
|
2189
2202
|
blur: Z,
|
|
2190
|
-
select:
|
|
2203
|
+
select: w,
|
|
2191
2204
|
clear: V,
|
|
2192
2205
|
extractQuoteOrderCode: M,
|
|
2193
2206
|
normalizeQuoteOrderCode: j
|
|
2194
|
-
}), (a,
|
|
2195
|
-
|
|
2196
|
-
t.label || t.description ? (v(), A("div",
|
|
2197
|
-
t.label ? (v(), A("div",
|
|
2198
|
-
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)
|
|
2199
2212
|
])) : P("", !0)
|
|
2200
2213
|
], !0),
|
|
2201
|
-
O(
|
|
2214
|
+
O(Ct, xe({
|
|
2202
2215
|
ref_key: "searchRef",
|
|
2203
2216
|
ref: d
|
|
2204
2217
|
}, $(H), {
|
|
@@ -2215,75 +2228,75 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2215
2228
|
debounce: t.debounce,
|
|
2216
2229
|
"min-length": t.minLength,
|
|
2217
2230
|
"search-on-select": !1,
|
|
2218
|
-
"onUpdate:modelValue":
|
|
2231
|
+
"onUpdate:modelValue": R,
|
|
2219
2232
|
onSearch: ae,
|
|
2220
|
-
onClear:
|
|
2221
|
-
onEnter:
|
|
2222
|
-
onSelect:
|
|
2233
|
+
onClear: J,
|
|
2234
|
+
onEnter: X,
|
|
2235
|
+
onSelect: le,
|
|
2223
2236
|
onError: ne
|
|
2224
|
-
}),
|
|
2237
|
+
}), _e({ _: 2 }, [
|
|
2225
2238
|
a.$slots.prefix ? {
|
|
2226
2239
|
name: "prefix",
|
|
2227
2240
|
fn: h(() => [
|
|
2228
|
-
|
|
2241
|
+
z(a.$slots, "prefix", {}, void 0, !0)
|
|
2229
2242
|
]),
|
|
2230
2243
|
key: "0"
|
|
2231
2244
|
} : void 0,
|
|
2232
2245
|
a.$slots.suffix ? {
|
|
2233
2246
|
name: "suffix",
|
|
2234
2247
|
fn: h(() => [
|
|
2235
|
-
|
|
2248
|
+
z(a.$slots, "suffix", {}, void 0, !0)
|
|
2236
2249
|
]),
|
|
2237
2250
|
key: "1"
|
|
2238
2251
|
} : void 0,
|
|
2239
2252
|
a.$slots.item ? {
|
|
2240
2253
|
name: "item",
|
|
2241
|
-
fn: h((
|
|
2242
|
-
|
|
2254
|
+
fn: h((U) => [
|
|
2255
|
+
z(a.$slots, "item", gt(vt(U)), void 0, !0)
|
|
2243
2256
|
]),
|
|
2244
2257
|
key: "2"
|
|
2245
2258
|
} : void 0,
|
|
2246
2259
|
a.$slots.empty ? {
|
|
2247
2260
|
name: "empty",
|
|
2248
2261
|
fn: h(() => [
|
|
2249
|
-
|
|
2262
|
+
z(a.$slots, "empty", {}, void 0, !0)
|
|
2250
2263
|
]),
|
|
2251
2264
|
key: "3"
|
|
2252
2265
|
} : void 0,
|
|
2253
2266
|
a.$slots.loading ? {
|
|
2254
2267
|
name: "loading",
|
|
2255
2268
|
fn: h(() => [
|
|
2256
|
-
|
|
2269
|
+
z(a.$slots, "loading", {}, void 0, !0)
|
|
2257
2270
|
]),
|
|
2258
2271
|
key: "4"
|
|
2259
2272
|
} : void 0
|
|
2260
2273
|
]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
|
|
2261
|
-
t.showStatus && f.value ?
|
|
2274
|
+
t.showStatus && f.value ? z(a.$slots, "status", {
|
|
2262
2275
|
status: t.status,
|
|
2263
2276
|
statusText: f.value
|
|
2264
2277
|
}, () => [
|
|
2265
|
-
|
|
2278
|
+
T("div", {
|
|
2266
2279
|
class: ke(["qy-record-quote-search__status", `is-${t.status}`])
|
|
2267
2280
|
}, pe(f.value), 3)
|
|
2268
2281
|
], !0, 0) : P("", !0)
|
|
2269
2282
|
]));
|
|
2270
2283
|
}
|
|
2271
|
-
}),
|
|
2284
|
+
}), Gl = /* @__PURE__ */ Re(Wl, [["__scopeId", "data-v-3a314f64"]]), Jl = { class: "qy-selection-dialog" }, Xl = { class: "qy-selection-dialog__main" }, Yl = {
|
|
2272
2285
|
key: 0,
|
|
2273
2286
|
class: "qy-selection-dialog__selected"
|
|
2274
|
-
},
|
|
2287
|
+
}, en = { class: "qy-selection-dialog__selected-tags" }, tn = {
|
|
2275
2288
|
key: 0,
|
|
2276
2289
|
class: "qy-selection-dialog__selected-actions"
|
|
2277
|
-
},
|
|
2290
|
+
}, an = {
|
|
2278
2291
|
key: 1,
|
|
2279
2292
|
class: "qy-selection-dialog__search-row"
|
|
2280
|
-
},
|
|
2293
|
+
}, on = {
|
|
2281
2294
|
key: 0,
|
|
2282
2295
|
class: "qy-selection-dialog__toolbar"
|
|
2283
|
-
},
|
|
2296
|
+
}, ln = {
|
|
2284
2297
|
key: 2,
|
|
2285
2298
|
class: "qy-selection-dialog__pagination"
|
|
2286
|
-
},
|
|
2299
|
+
}, nn = { class: "qy-selection-dialog__paste-actions" }, rn = /* @__PURE__ */ qe({
|
|
2287
2300
|
name: "QySelectionDialog",
|
|
2288
2301
|
inheritAttrs: !1,
|
|
2289
2302
|
__name: "index",
|
|
@@ -2323,22 +2336,22 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2323
2336
|
},
|
|
2324
2337
|
emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
|
|
2325
2338
|
setup(t, { expose: D, emit: W }) {
|
|
2326
|
-
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({
|
|
2327
2340
|
category: [],
|
|
2328
2341
|
type: "",
|
|
2329
2342
|
page: 1,
|
|
2330
2343
|
pageSize: 10,
|
|
2331
2344
|
...e.searchKey ? { [e.searchKey]: "" } : {},
|
|
2332
2345
|
...e.queryParams
|
|
2333
|
-
}), L = F(() => e.selectionMode ? e.selectionMode : e.selection === "multi" ? "multiple" : e.selection), ae = F(() => e.mainKey || e.rowKey),
|
|
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(() => ({
|
|
2334
2347
|
...e.typeSelectionProps,
|
|
2335
2348
|
...e.typeSelectProps
|
|
2336
2349
|
})), ne = F(() => e.tableProps || {}), re = F(
|
|
2337
2350
|
() => e.showSearch || !!H["search-visible"]
|
|
2338
|
-
), Z = F(() => e.showAppend || e.append),
|
|
2351
|
+
), Z = F(() => e.showAppend || e.append), w = F(
|
|
2339
2352
|
() => Z.value || !!d.toolbar || !!d.bar
|
|
2340
|
-
), V = F(() => e.fetchMethod || e.query), a = F(() =>
|
|
2341
|
-
function
|
|
2353
|
+
), V = F(() => e.fetchMethod || e.query), a = F(() => l() ? e.modelValue : e.selected);
|
|
2354
|
+
function l() {
|
|
2342
2355
|
const u = (y == null ? void 0 : y.vnode.props) || {};
|
|
2343
2356
|
return Object.prototype.hasOwnProperty.call(u, "modelValue") || Object.prototype.hasOwnProperty.call(u, "model-value") || Object.prototype.hasOwnProperty.call(u, "onUpdate:modelValue");
|
|
2344
2357
|
}
|
|
@@ -2352,47 +2365,47 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2352
2365
|
[() => e.categoryOptions, () => e.category],
|
|
2353
2366
|
(u) => {
|
|
2354
2367
|
if (Array.isArray(e.category) && e.category.length) {
|
|
2355
|
-
|
|
2368
|
+
_.value = e.category;
|
|
2356
2369
|
return;
|
|
2357
2370
|
}
|
|
2358
|
-
|
|
2371
|
+
_.value = e.categoryOptions || [];
|
|
2359
2372
|
},
|
|
2360
2373
|
{ immediate: !0 }
|
|
2361
2374
|
), fe(j, (u) => {
|
|
2362
2375
|
u || (G.value = "");
|
|
2363
2376
|
});
|
|
2364
|
-
async function
|
|
2377
|
+
async function U() {
|
|
2365
2378
|
x.value = Ae(a.value), await te(), await s(), ee();
|
|
2366
2379
|
}
|
|
2367
2380
|
async function te() {
|
|
2368
2381
|
const u = e.categoryFetchMethod || (typeof e.category == "function" ? e.category : null);
|
|
2369
2382
|
if (!u) return;
|
|
2370
2383
|
const c = await u();
|
|
2371
|
-
|
|
2384
|
+
_.value = me(c);
|
|
2372
2385
|
}
|
|
2373
2386
|
async function s() {
|
|
2374
2387
|
if (V.value) {
|
|
2375
2388
|
E.value = !0;
|
|
2376
2389
|
try {
|
|
2377
|
-
const u = await V.value(
|
|
2378
|
-
return I.value = N, M.value =
|
|
2390
|
+
const u = await V.value(Qe()), c = e.responseFormatter ? await e.responseFormatter(u) : u, { rows: N, total: o } = ie(c);
|
|
2391
|
+
return I.value = N, M.value = o, n("loaded", N), ee(), c;
|
|
2379
2392
|
} finally {
|
|
2380
2393
|
E.value = !1;
|
|
2381
2394
|
}
|
|
2382
2395
|
}
|
|
2383
2396
|
}
|
|
2384
2397
|
function p() {
|
|
2385
|
-
return
|
|
2398
|
+
return R.page = 1, s();
|
|
2386
2399
|
}
|
|
2387
|
-
function
|
|
2388
|
-
return
|
|
2400
|
+
function C() {
|
|
2401
|
+
return R.page = 1, s();
|
|
2389
2402
|
}
|
|
2390
2403
|
function g() {
|
|
2391
|
-
return Object.assign(
|
|
2404
|
+
return Object.assign(R, {
|
|
2392
2405
|
category: [],
|
|
2393
2406
|
type: "",
|
|
2394
2407
|
page: 1,
|
|
2395
|
-
pageSize:
|
|
2408
|
+
pageSize: R.pageSize,
|
|
2396
2409
|
...e.searchKey ? { [e.searchKey]: "" } : {},
|
|
2397
2410
|
...e.queryParams
|
|
2398
2411
|
}), s();
|
|
@@ -2406,8 +2419,8 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2406
2419
|
const c = u == null ? void 0 : u.data;
|
|
2407
2420
|
if (Array.isArray(c))
|
|
2408
2421
|
return { rows: c, total: (u == null ? void 0 : u.total) ?? c.length };
|
|
2409
|
-
const N = (u == null ? void 0 : u.records) || (u == null ? void 0 : u.rows) || (c == null ? void 0 : c.records) || [],
|
|
2410
|
-
return { rows: N, total:
|
|
2422
|
+
const N = (u == null ? void 0 : u.records) || (u == null ? void 0 : u.rows) || (c == null ? void 0 : c.records) || [], o = (u == null ? void 0 : u.total) ?? (c == null ? void 0 : c.total) ?? N.length;
|
|
2423
|
+
return { rows: N, total: o };
|
|
2411
2424
|
}
|
|
2412
2425
|
function me(u) {
|
|
2413
2426
|
const c = (u == null ? void 0 : u.data) ?? u;
|
|
@@ -2415,32 +2428,32 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2415
2428
|
if (typeof e.categoryFormatter == "function")
|
|
2416
2429
|
return e.categoryFormatter(c);
|
|
2417
2430
|
if (Array.isArray(e.categoryFormatter)) {
|
|
2418
|
-
const [N,
|
|
2431
|
+
const [N, o] = e.categoryFormatter;
|
|
2419
2432
|
return c.map((i) => ({
|
|
2420
2433
|
...i,
|
|
2421
2434
|
label: i[N],
|
|
2422
|
-
value: i[
|
|
2423
|
-
children: Array.isArray(i.children) ?
|
|
2435
|
+
value: i[o],
|
|
2436
|
+
children: Array.isArray(i.children) ? we(i.children, N, o) : i.children
|
|
2424
2437
|
}));
|
|
2425
2438
|
}
|
|
2426
2439
|
return c;
|
|
2427
2440
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return u.map((
|
|
2430
|
-
...
|
|
2431
|
-
label:
|
|
2432
|
-
value:
|
|
2433
|
-
children: Array.isArray(
|
|
2441
|
+
function we(u, c, N) {
|
|
2442
|
+
return u.map((o) => ({
|
|
2443
|
+
...o,
|
|
2444
|
+
label: o[c],
|
|
2445
|
+
value: o[N],
|
|
2446
|
+
children: Array.isArray(o.children) ? we(o.children, c, N) : o.children
|
|
2434
2447
|
}));
|
|
2435
2448
|
}
|
|
2436
|
-
function
|
|
2437
|
-
const u = { ...e.queryParams, ...
|
|
2449
|
+
function Qe() {
|
|
2450
|
+
const u = { ...e.queryParams, ...R };
|
|
2438
2451
|
return e.searchKey && (u[e.searchKey] = String(u[e.searchKey] || "").trim()), u.category = m(), u;
|
|
2439
2452
|
}
|
|
2440
2453
|
function m() {
|
|
2441
2454
|
if (Object.prototype.hasOwnProperty.call(e.queryParams, "category"))
|
|
2442
2455
|
return e.queryParams.category;
|
|
2443
|
-
const u =
|
|
2456
|
+
const u = R.category;
|
|
2444
2457
|
return Array.isArray(u) ? u : u ? [u] : [];
|
|
2445
2458
|
}
|
|
2446
2459
|
function Y(u) {
|
|
@@ -2457,18 +2470,18 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2457
2470
|
if (L.value !== "multiple") return;
|
|
2458
2471
|
const c = new Set(I.value.map(de)), N = new Set(u.map(de));
|
|
2459
2472
|
x.value = x.value.filter(
|
|
2460
|
-
(
|
|
2461
|
-
), u.forEach((
|
|
2462
|
-
$e(
|
|
2473
|
+
(o) => !c.has(de(o)) || N.has(de(o))
|
|
2474
|
+
), u.forEach((o) => {
|
|
2475
|
+
$e(o) || x.value.push(o);
|
|
2463
2476
|
}), Fe();
|
|
2464
2477
|
}
|
|
2465
|
-
function
|
|
2466
|
-
var N,
|
|
2478
|
+
function S(u) {
|
|
2479
|
+
var N, o;
|
|
2467
2480
|
x.value = x.value.filter(
|
|
2468
2481
|
(i) => de(i) !== de(u)
|
|
2469
2482
|
);
|
|
2470
2483
|
const c = I.value.find((i) => de(i) === de(u));
|
|
2471
|
-
c && (L.value === "multiple" ? (N = f.value) == null || N.toggleRowSelection(c, !1) : (
|
|
2484
|
+
c && (L.value === "multiple" ? (N = f.value) == null || N.toggleRowSelection(c, !1) : (o = f.value) == null || o.setCurrentRow()), Fe();
|
|
2472
2485
|
}
|
|
2473
2486
|
function ee() {
|
|
2474
2487
|
Oe(() => {
|
|
@@ -2476,7 +2489,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2476
2489
|
if (f.value) {
|
|
2477
2490
|
if (L.value === "single") {
|
|
2478
2491
|
const [c] = x.value, N = I.value.find(
|
|
2479
|
-
(
|
|
2492
|
+
(o) => c && de(o) === de(c)
|
|
2480
2493
|
);
|
|
2481
2494
|
(u = f.value) == null || u.setCurrentRow(N);
|
|
2482
2495
|
return;
|
|
@@ -2500,11 +2513,11 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2500
2513
|
return Le(u, ae.value);
|
|
2501
2514
|
}
|
|
2502
2515
|
function De(u) {
|
|
2503
|
-
return Le(u,
|
|
2516
|
+
return Le(u, J.value) ?? de(u);
|
|
2504
2517
|
}
|
|
2505
2518
|
function Le(u, c) {
|
|
2506
2519
|
if (!(!u || !c))
|
|
2507
|
-
return c.split(".").reduce((N,
|
|
2520
|
+
return c.split(".").reduce((N, o) => N == null ? void 0 : N[o], u);
|
|
2508
2521
|
}
|
|
2509
2522
|
function Fe() {
|
|
2510
2523
|
const u = Ae(x.value);
|
|
@@ -2512,28 +2525,28 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2512
2525
|
}
|
|
2513
2526
|
function je() {
|
|
2514
2527
|
const u = Ae(x.value);
|
|
2515
|
-
n("update:modelValue", u), n("confirm", u), n("submit", { selection: u, rows: u, query: { ...
|
|
2528
|
+
n("update:modelValue", u), n("confirm", u), n("submit", { selection: u, rows: u, query: { ...R } });
|
|
2516
2529
|
}
|
|
2517
|
-
function
|
|
2530
|
+
function Ue() {
|
|
2518
2531
|
x.value = Ae(a.value), n("cancel"), n("close");
|
|
2519
2532
|
}
|
|
2520
2533
|
async function Ne() {
|
|
2521
2534
|
var c;
|
|
2522
2535
|
const u = JSON.stringify(x.value);
|
|
2523
|
-
await ((c = navigator.clipboard) == null ? void 0 : c.writeText(u)),
|
|
2536
|
+
await ((c = navigator.clipboard) == null ? void 0 : c.writeText(u)), he.success("复制成功");
|
|
2524
2537
|
}
|
|
2525
|
-
function
|
|
2538
|
+
function Te() {
|
|
2526
2539
|
try {
|
|
2527
2540
|
const u = JSON.parse(G.value);
|
|
2528
2541
|
if (!Array.isArray(u)) {
|
|
2529
|
-
|
|
2542
|
+
he.error("粘贴内容需要是数组");
|
|
2530
2543
|
return;
|
|
2531
2544
|
}
|
|
2532
2545
|
u.forEach((c) => {
|
|
2533
2546
|
$e(c) || x.value.push(c);
|
|
2534
2547
|
}), j.value = !1, Fe(), ee();
|
|
2535
2548
|
} catch (u) {
|
|
2536
|
-
|
|
2549
|
+
he.error(`粘贴错误: ${(u == null ? void 0 : u.message) || "内容格式错误"}`);
|
|
2537
2550
|
}
|
|
2538
2551
|
}
|
|
2539
2552
|
function Ae(u = []) {
|
|
@@ -2548,8 +2561,8 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2548
2561
|
getTableData: () => I.value,
|
|
2549
2562
|
getSelection: () => Ae(x.value)
|
|
2550
2563
|
}), (u, c) => {
|
|
2551
|
-
const N =
|
|
2552
|
-
return v(), ce(
|
|
2564
|
+
const N = Ua;
|
|
2565
|
+
return v(), ce(Je, xe($(H), {
|
|
2553
2566
|
"model-value": t.open,
|
|
2554
2567
|
title: t.title,
|
|
2555
2568
|
width: t.width,
|
|
@@ -2557,25 +2570,25 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2557
2570
|
draggable: "",
|
|
2558
2571
|
"align-center": "",
|
|
2559
2572
|
"append-to-body": "",
|
|
2560
|
-
onOpened:
|
|
2573
|
+
onOpened: U,
|
|
2561
2574
|
onConfirm: je,
|
|
2562
|
-
onCancel:
|
|
2575
|
+
onCancel: Ue
|
|
2563
2576
|
}), {
|
|
2564
2577
|
default: h(() => [
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
t.showSelected ? (v(), A("div",
|
|
2569
|
-
c[12] || (c[12] =
|
|
2570
|
-
|
|
2571
|
-
(v(!0), A(
|
|
2572
|
-
key: de(
|
|
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, {
|
|
2585
|
+
key: de(o),
|
|
2573
2586
|
closable: "",
|
|
2574
2587
|
class: "qy-selection-dialog__selected-tag",
|
|
2575
|
-
onClose: (i) =>
|
|
2588
|
+
onClose: (i) => S(o)
|
|
2576
2589
|
}, {
|
|
2577
2590
|
default: h(() => [
|
|
2578
|
-
|
|
2591
|
+
be(pe(De(o)), 1)
|
|
2579
2592
|
]),
|
|
2580
2593
|
_: 2
|
|
2581
2594
|
}, 1032, ["onClose"]))), 128)),
|
|
@@ -2584,54 +2597,54 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2584
2597
|
tone: "info"
|
|
2585
2598
|
}, {
|
|
2586
2599
|
default: h(() => [...c[9] || (c[9] = [
|
|
2587
|
-
|
|
2600
|
+
be("无", -1)
|
|
2588
2601
|
])]),
|
|
2589
2602
|
_: 1
|
|
2590
2603
|
}))
|
|
2591
2604
|
]),
|
|
2592
|
-
t.showCopyPaste ? (v(), A("div",
|
|
2605
|
+
t.showCopyPaste ? (v(), A("div", tn, [
|
|
2593
2606
|
O($(Ve), {
|
|
2594
2607
|
size: "small",
|
|
2595
2608
|
onClick: Ne
|
|
2596
2609
|
}, {
|
|
2597
2610
|
default: h(() => [...c[10] || (c[10] = [
|
|
2598
|
-
|
|
2611
|
+
be("复制", -1)
|
|
2599
2612
|
])]),
|
|
2600
2613
|
_: 1
|
|
2601
2614
|
}),
|
|
2602
2615
|
O($(Ve), {
|
|
2603
2616
|
size: "small",
|
|
2604
|
-
onClick: c[0] || (c[0] = (
|
|
2617
|
+
onClick: c[0] || (c[0] = (o) => j.value = !0)
|
|
2605
2618
|
}, {
|
|
2606
2619
|
default: h(() => [...c[11] || (c[11] = [
|
|
2607
|
-
|
|
2620
|
+
be("粘贴", -1)
|
|
2608
2621
|
])]),
|
|
2609
2622
|
_: 1
|
|
2610
2623
|
})
|
|
2611
2624
|
])) : P("", !0)
|
|
2612
2625
|
])) : P("", !0),
|
|
2613
|
-
re.value ? (v(), A("div",
|
|
2626
|
+
re.value ? (v(), A("div", an, [
|
|
2614
2627
|
O($(wt), {
|
|
2615
2628
|
class: "qy-selection-dialog__search",
|
|
2616
2629
|
inline: "",
|
|
2617
|
-
model:
|
|
2630
|
+
model: R
|
|
2618
2631
|
}, {
|
|
2619
2632
|
default: h(() => [
|
|
2620
|
-
|
|
2621
|
-
query:
|
|
2633
|
+
z(u.$slots, "search", {
|
|
2634
|
+
query: R,
|
|
2622
2635
|
search: p,
|
|
2623
2636
|
reset: g
|
|
2624
2637
|
}, () => [
|
|
2625
|
-
|
|
2638
|
+
_.value.length ? (v(), ce($(Ie), {
|
|
2626
2639
|
key: 0,
|
|
2627
2640
|
label: "分类"
|
|
2628
2641
|
}, {
|
|
2629
2642
|
default: h(() => [
|
|
2630
2643
|
O(St, {
|
|
2631
|
-
modelValue:
|
|
2632
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
2644
|
+
modelValue: R.category,
|
|
2645
|
+
"onUpdate:modelValue": c[1] || (c[1] = (o) => R.category = o),
|
|
2633
2646
|
class: "qy-selection-dialog__category",
|
|
2634
|
-
options:
|
|
2647
|
+
options: _.value,
|
|
2635
2648
|
clearable: "",
|
|
2636
2649
|
filterable: "",
|
|
2637
2650
|
"check-strictly": "",
|
|
@@ -2641,19 +2654,19 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2641
2654
|
]),
|
|
2642
2655
|
_: 1
|
|
2643
2656
|
})) : P("", !0),
|
|
2644
|
-
|
|
2657
|
+
X.value.length ? (v(), ce($(Ie), {
|
|
2645
2658
|
key: 1,
|
|
2646
2659
|
label: "类型"
|
|
2647
2660
|
}, {
|
|
2648
2661
|
default: h(() => [
|
|
2649
|
-
O(tt,
|
|
2650
|
-
modelValue:
|
|
2651
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
2662
|
+
O(tt, xe({
|
|
2663
|
+
modelValue: R.type,
|
|
2664
|
+
"onUpdate:modelValue": c[2] || (c[2] = (o) => R.type = o),
|
|
2652
2665
|
class: "qy-selection-dialog__type",
|
|
2653
|
-
options:
|
|
2666
|
+
options: X.value,
|
|
2654
2667
|
placeholder: "请选择类型",
|
|
2655
2668
|
clearable: ""
|
|
2656
|
-
},
|
|
2669
|
+
}, le.value, { onChange: p }), null, 16, ["modelValue", "options"])
|
|
2657
2670
|
]),
|
|
2658
2671
|
_: 1
|
|
2659
2672
|
})) : P("", !0),
|
|
@@ -2663,8 +2676,8 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2663
2676
|
}, {
|
|
2664
2677
|
default: h(() => [
|
|
2665
2678
|
O($(Me), {
|
|
2666
|
-
modelValue:
|
|
2667
|
-
"onUpdate:modelValue": c[3] || (c[3] = (
|
|
2679
|
+
modelValue: R[t.searchKey],
|
|
2680
|
+
"onUpdate:modelValue": c[3] || (c[3] = (o) => R[t.searchKey] = o),
|
|
2668
2681
|
clearable: "",
|
|
2669
2682
|
placeholder: "请输入",
|
|
2670
2683
|
class: "qy-selection-dialog__search-input",
|
|
@@ -2680,13 +2693,13 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2680
2693
|
onClick: p
|
|
2681
2694
|
}, {
|
|
2682
2695
|
default: h(() => [...c[13] || (c[13] = [
|
|
2683
|
-
|
|
2696
|
+
be("查询", -1)
|
|
2684
2697
|
])]),
|
|
2685
2698
|
_: 1
|
|
2686
2699
|
}),
|
|
2687
2700
|
O($(Ve), { onClick: g }, {
|
|
2688
2701
|
default: h(() => [...c[14] || (c[14] = [
|
|
2689
|
-
|
|
2702
|
+
be("重置", -1)
|
|
2690
2703
|
])]),
|
|
2691
2704
|
_: 1
|
|
2692
2705
|
})
|
|
@@ -2697,28 +2710,28 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2697
2710
|
]),
|
|
2698
2711
|
_: 3
|
|
2699
2712
|
}, 8, ["model"]),
|
|
2700
|
-
|
|
2713
|
+
w.value ? (v(), A("div", on, [
|
|
2701
2714
|
Z.value ? (v(), ce($(Ve), {
|
|
2702
2715
|
key: 0,
|
|
2703
2716
|
type: "primary",
|
|
2704
2717
|
onClick: B
|
|
2705
2718
|
}, {
|
|
2706
2719
|
default: h(() => [...c[15] || (c[15] = [
|
|
2707
|
-
|
|
2720
|
+
be(" 新增 ", -1)
|
|
2708
2721
|
])]),
|
|
2709
2722
|
_: 1
|
|
2710
2723
|
})) : P("", !0),
|
|
2711
|
-
|
|
2712
|
-
query:
|
|
2724
|
+
z(u.$slots, "toolbar", {
|
|
2725
|
+
query: R,
|
|
2713
2726
|
search: p
|
|
2714
2727
|
}, void 0, !0),
|
|
2715
|
-
|
|
2716
|
-
query:
|
|
2728
|
+
z(u.$slots, "bar", {
|
|
2729
|
+
query: R,
|
|
2717
2730
|
search: p
|
|
2718
2731
|
}, void 0, !0)
|
|
2719
2732
|
])) : P("", !0)
|
|
2720
2733
|
])) : P("", !0),
|
|
2721
|
-
Ye((v(), ce($(
|
|
2734
|
+
Ye((v(), ce($(Ya), xe({
|
|
2722
2735
|
ref_key: "tableRef",
|
|
2723
2736
|
ref: f,
|
|
2724
2737
|
data: I.value,
|
|
@@ -2731,41 +2744,41 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2731
2744
|
onRowClick: Y
|
|
2732
2745
|
}), {
|
|
2733
2746
|
default: h(() => {
|
|
2734
|
-
var
|
|
2747
|
+
var o;
|
|
2735
2748
|
return [
|
|
2736
|
-
L.value === "multiple" ? (v(), ce($(
|
|
2749
|
+
L.value === "multiple" ? (v(), ce($(eo), {
|
|
2737
2750
|
key: 0,
|
|
2738
2751
|
type: "selection",
|
|
2739
2752
|
"reserve-selection": "",
|
|
2740
2753
|
width: "42",
|
|
2741
|
-
selectable: (
|
|
2754
|
+
selectable: (o = ne.value) == null ? void 0 : o.selectable
|
|
2742
2755
|
}, null, 8, ["selectable"])) : P("", !0),
|
|
2743
|
-
|
|
2744
|
-
|
|
2756
|
+
z(u.$slots, "columns", {}, void 0, !0),
|
|
2757
|
+
z(u.$slots, "cols", {}, void 0, !0)
|
|
2745
2758
|
];
|
|
2746
2759
|
}),
|
|
2747
2760
|
_: 3
|
|
2748
2761
|
}, 16, ["data", "row-key"])), [
|
|
2749
2762
|
[N, E.value]
|
|
2750
2763
|
]),
|
|
2751
|
-
t.showPagination && M.value > 0 ? (v(), A("div",
|
|
2752
|
-
O($(
|
|
2753
|
-
"current-page":
|
|
2754
|
-
"onUpdate:currentPage": c[4] || (c[4] = (
|
|
2755
|
-
"page-size":
|
|
2756
|
-
"onUpdate:pageSize": c[5] || (c[5] = (
|
|
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),
|
|
2757
2770
|
total: M.value,
|
|
2758
2771
|
"page-sizes": t.pageSizes,
|
|
2759
2772
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
2760
|
-
onSizeChange:
|
|
2773
|
+
onSizeChange: C,
|
|
2761
2774
|
onCurrentChange: s
|
|
2762
2775
|
}, null, 8, ["current-page", "page-size", "total", "page-sizes"])
|
|
2763
2776
|
])) : P("", !0)
|
|
2764
2777
|
])
|
|
2765
2778
|
]),
|
|
2766
|
-
O(
|
|
2779
|
+
O(Je, {
|
|
2767
2780
|
modelValue: j.value,
|
|
2768
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
|
2781
|
+
"onUpdate:modelValue": c[8] || (c[8] = (o) => j.value = o),
|
|
2769
2782
|
title: "粘贴数据",
|
|
2770
2783
|
layout: !1,
|
|
2771
2784
|
width: "560px"
|
|
@@ -2773,25 +2786,25 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2773
2786
|
default: h(() => [
|
|
2774
2787
|
O($(Me), {
|
|
2775
2788
|
modelValue: G.value,
|
|
2776
|
-
"onUpdate:modelValue": c[6] || (c[6] = (
|
|
2789
|
+
"onUpdate:modelValue": c[6] || (c[6] = (o) => G.value = o),
|
|
2777
2790
|
type: "textarea",
|
|
2778
2791
|
rows: 8
|
|
2779
2792
|
}, null, 8, ["modelValue"]),
|
|
2780
|
-
|
|
2793
|
+
T("div", nn, [
|
|
2781
2794
|
O($(Ve), {
|
|
2782
|
-
onClick: c[7] || (c[7] = (
|
|
2795
|
+
onClick: c[7] || (c[7] = (o) => j.value = !1)
|
|
2783
2796
|
}, {
|
|
2784
2797
|
default: h(() => [...c[16] || (c[16] = [
|
|
2785
|
-
|
|
2798
|
+
be("取消", -1)
|
|
2786
2799
|
])]),
|
|
2787
2800
|
_: 1
|
|
2788
2801
|
}),
|
|
2789
2802
|
O($(Ve), {
|
|
2790
2803
|
type: "primary",
|
|
2791
|
-
onClick:
|
|
2804
|
+
onClick: Te
|
|
2792
2805
|
}, {
|
|
2793
2806
|
default: h(() => [...c[17] || (c[17] = [
|
|
2794
|
-
|
|
2807
|
+
be("确认", -1)
|
|
2795
2808
|
])]),
|
|
2796
2809
|
_: 1
|
|
2797
2810
|
})
|
|
@@ -2804,7 +2817,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2804
2817
|
}, 16, ["model-value", "title", "width"]);
|
|
2805
2818
|
};
|
|
2806
2819
|
}
|
|
2807
|
-
}),
|
|
2820
|
+
}), Vt = /* @__PURE__ */ Re(rn, [["__scopeId", "data-v-31ee3945"]]), sn = /* @__PURE__ */ qe({
|
|
2808
2821
|
name: "QyLegacySelectionDialog",
|
|
2809
2822
|
inheritAttrs: !1,
|
|
2810
2823
|
__name: "index",
|
|
@@ -2851,10 +2864,10 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2851
2864
|
dialogOpen: !1,
|
|
2852
2865
|
pasteData: "",
|
|
2853
2866
|
pasteDataDialog: !1
|
|
2854
|
-
}), I = F(() => e.type || []), x = F(() => f.categories),
|
|
2867
|
+
}), I = F(() => e.type || []), x = F(() => f.categories), _ = async (s) => {
|
|
2855
2868
|
if (!e.query) return { data: { records: [], total: 0 } };
|
|
2856
|
-
const p = await e.query(
|
|
2857
|
-
return f.total =
|
|
2869
|
+
const p = await e.query(le(s)), C = e.responseFormatter ? await e.responseFormatter(p) : p;
|
|
2870
|
+
return f.total = U(C), C;
|
|
2858
2871
|
};
|
|
2859
2872
|
fe(
|
|
2860
2873
|
() => e.open,
|
|
@@ -2888,7 +2901,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2888
2901
|
), fe(
|
|
2889
2902
|
() => e.select,
|
|
2890
2903
|
async () => {
|
|
2891
|
-
e.select && await
|
|
2904
|
+
e.select && await X(e.select);
|
|
2892
2905
|
},
|
|
2893
2906
|
{ deep: !0 }
|
|
2894
2907
|
), fe(
|
|
@@ -2904,7 +2917,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2904
2917
|
return;
|
|
2905
2918
|
}
|
|
2906
2919
|
const s = typeof e.category == "function" ? await e.category() : e.category;
|
|
2907
|
-
f.categories =
|
|
2920
|
+
f.categories = w(s);
|
|
2908
2921
|
}
|
|
2909
2922
|
async function M() {
|
|
2910
2923
|
var s;
|
|
@@ -2917,7 +2930,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2917
2930
|
var p;
|
|
2918
2931
|
f.tableData = s, f.tableRef = (p = d.value) == null ? void 0 : p.getTableRef();
|
|
2919
2932
|
}
|
|
2920
|
-
function
|
|
2933
|
+
function R(s) {
|
|
2921
2934
|
f.selection = te(s), n("submit", f);
|
|
2922
2935
|
}
|
|
2923
2936
|
function L() {
|
|
@@ -2926,21 +2939,21 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2926
2939
|
function ae() {
|
|
2927
2940
|
f.dialogOpen = !0, n("openDialog");
|
|
2928
2941
|
}
|
|
2929
|
-
function
|
|
2942
|
+
function J(s) {
|
|
2930
2943
|
n("changeIndexShow", s);
|
|
2931
2944
|
}
|
|
2932
|
-
async function
|
|
2945
|
+
async function X(s) {
|
|
2933
2946
|
if (!e.query || !e.searchKey || !e.mainKey) return;
|
|
2934
2947
|
const p = await e.query({
|
|
2935
2948
|
...y,
|
|
2936
2949
|
[e.searchKey]: s[e.mainKey],
|
|
2937
2950
|
category: []
|
|
2938
|
-
}),
|
|
2951
|
+
}), C = e.responseFormatter ? await e.responseFormatter(p) : p, [g] = l(C);
|
|
2939
2952
|
g && (e.selection === "multi" ? (f.selection = f.selection.filter(
|
|
2940
2953
|
(B) => B[e.mainKey] !== g[e.mainKey]
|
|
2941
2954
|
), f.selection.push(g)) : f.selection = [g]);
|
|
2942
2955
|
}
|
|
2943
|
-
function
|
|
2956
|
+
function le(s = {}) {
|
|
2944
2957
|
y.page = s.page ?? y.page, y.pageSize = s.pageSize ?? y.pageSize;
|
|
2945
2958
|
const p = {
|
|
2946
2959
|
...y,
|
|
@@ -2958,55 +2971,55 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
2958
2971
|
return p ? Z(p) : [s];
|
|
2959
2972
|
}
|
|
2960
2973
|
function re(s, p) {
|
|
2961
|
-
for (const
|
|
2962
|
-
if (
|
|
2963
|
-
const g = re(
|
|
2974
|
+
for (const C of s || []) {
|
|
2975
|
+
if (C.value === p) return C;
|
|
2976
|
+
const g = re(C.children || [], p);
|
|
2964
2977
|
if (g) return g;
|
|
2965
2978
|
}
|
|
2966
2979
|
}
|
|
2967
2980
|
function Z(s) {
|
|
2968
2981
|
return [s.value, ...(s.children || []).flatMap(Z)];
|
|
2969
2982
|
}
|
|
2970
|
-
function
|
|
2983
|
+
function w(s) {
|
|
2971
2984
|
const p = (s == null ? void 0 : s.data) ?? s;
|
|
2972
2985
|
if (!Array.isArray(p)) return [];
|
|
2973
2986
|
if (typeof e.categoryFormatter == "function")
|
|
2974
2987
|
return e.categoryFormatter(p);
|
|
2975
2988
|
if (Array.isArray(e.categoryFormatter)) {
|
|
2976
|
-
const [
|
|
2977
|
-
return a(V(p, g),
|
|
2989
|
+
const [C, g] = e.categoryFormatter;
|
|
2990
|
+
return a(V(p, g), C, g);
|
|
2978
2991
|
}
|
|
2979
2992
|
return p;
|
|
2980
2993
|
}
|
|
2981
2994
|
function V(s, p) {
|
|
2982
|
-
const
|
|
2983
|
-
return
|
|
2995
|
+
const C = s.map((B) => ({ ...B })), g = [];
|
|
2996
|
+
return C.forEach((B) => {
|
|
2984
2997
|
const ie = B.parentCateCode;
|
|
2985
2998
|
if (!ie) {
|
|
2986
2999
|
g.push(B);
|
|
2987
3000
|
return;
|
|
2988
3001
|
}
|
|
2989
|
-
const me =
|
|
3002
|
+
const me = C.find((we) => we[p] === ie);
|
|
2990
3003
|
me ? (me.children || (me.children = [])).push(B) : g.push(B);
|
|
2991
3004
|
}), g;
|
|
2992
3005
|
}
|
|
2993
|
-
function a(s, p,
|
|
3006
|
+
function a(s, p, C) {
|
|
2994
3007
|
return s.map((g) => ({
|
|
2995
3008
|
...g,
|
|
2996
3009
|
label: g[p],
|
|
2997
|
-
value: g[
|
|
2998
|
-
children: Array.isArray(g.children) ? a(g.children, p,
|
|
3010
|
+
value: g[C],
|
|
3011
|
+
children: Array.isArray(g.children) ? a(g.children, p, C) : g.children
|
|
2999
3012
|
}));
|
|
3000
3013
|
}
|
|
3001
|
-
function
|
|
3014
|
+
function l(s) {
|
|
3002
3015
|
if (Array.isArray(s)) return s;
|
|
3003
3016
|
const p = s == null ? void 0 : s.data;
|
|
3004
3017
|
return Array.isArray(p) ? p : (s == null ? void 0 : s.records) || (s == null ? void 0 : s.rows) || (p == null ? void 0 : p.records) || [];
|
|
3005
3018
|
}
|
|
3006
|
-
function
|
|
3019
|
+
function U(s) {
|
|
3007
3020
|
if (Array.isArray(s)) return s.length;
|
|
3008
|
-
const p =
|
|
3009
|
-
return (s == null ? void 0 : s.total) ?? (Array.isArray(
|
|
3021
|
+
const p = l(s), C = s == null ? void 0 : s.data;
|
|
3022
|
+
return (s == null ? void 0 : s.total) ?? (Array.isArray(C) ? C.length : C == null ? void 0 : C.total) ?? p.length;
|
|
3010
3023
|
}
|
|
3011
3024
|
function te(s = []) {
|
|
3012
3025
|
return s.map((p) => ({ ...p }));
|
|
@@ -3018,17 +3031,17 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3018
3031
|
getTableRef: () => f.tableRef,
|
|
3019
3032
|
getTableData: () => f.tableData,
|
|
3020
3033
|
getSelection: () => te(f.selection)
|
|
3021
|
-
}), (s, p) => (v(), A(
|
|
3022
|
-
O(
|
|
3034
|
+
}), (s, p) => (v(), A(ze, null, [
|
|
3035
|
+
O(Vt, xe({
|
|
3023
3036
|
ref_key: "selectionDialogRef",
|
|
3024
3037
|
ref: d
|
|
3025
3038
|
}, $(H), {
|
|
3026
3039
|
modelValue: f.selection,
|
|
3027
|
-
"onUpdate:modelValue": p[3] || (p[3] = (
|
|
3040
|
+
"onUpdate:modelValue": p[3] || (p[3] = (C) => f.selection = C),
|
|
3028
3041
|
open: t.open,
|
|
3029
3042
|
title: t.title,
|
|
3030
3043
|
width: t.width,
|
|
3031
|
-
query:
|
|
3044
|
+
query: _,
|
|
3032
3045
|
"response-formatter": t.responseFormatter,
|
|
3033
3046
|
selection: t.selection,
|
|
3034
3047
|
"row-key": t.mainKey,
|
|
@@ -3042,20 +3055,20 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3042
3055
|
"show-copy-paste": !0,
|
|
3043
3056
|
"show-append": t.append,
|
|
3044
3057
|
onSelectionChange: j,
|
|
3045
|
-
onConfirm:
|
|
3058
|
+
onConfirm: R,
|
|
3046
3059
|
onCancel: L,
|
|
3047
3060
|
onAppend: ae,
|
|
3048
3061
|
onLoaded: G
|
|
3049
3062
|
}), {
|
|
3050
3063
|
side: h(() => [
|
|
3051
|
-
|
|
3064
|
+
z(s.$slots, "side", {
|
|
3052
3065
|
state: f,
|
|
3053
3066
|
cate: f.categories,
|
|
3054
3067
|
form: y,
|
|
3055
3068
|
query: y,
|
|
3056
3069
|
getData: M,
|
|
3057
3070
|
search: M,
|
|
3058
|
-
changeIndexShow:
|
|
3071
|
+
changeIndexShow: J
|
|
3059
3072
|
}, void 0, !0)
|
|
3060
3073
|
]),
|
|
3061
3074
|
search: h(() => [
|
|
@@ -3069,9 +3082,9 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3069
3082
|
label: "分类"
|
|
3070
3083
|
}, {
|
|
3071
3084
|
default: h(() => [
|
|
3072
|
-
O($(
|
|
3085
|
+
O($(ao), {
|
|
3073
3086
|
modelValue: y.category,
|
|
3074
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
3087
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => y.category = C),
|
|
3075
3088
|
class: "qy-legacy-selection-dialog__category",
|
|
3076
3089
|
data: f.categories,
|
|
3077
3090
|
clearable: "",
|
|
@@ -3088,16 +3101,16 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3088
3101
|
label: "类型"
|
|
3089
3102
|
}, {
|
|
3090
3103
|
default: h(() => [
|
|
3091
|
-
O($(ht),
|
|
3104
|
+
O($(ht), xe({
|
|
3092
3105
|
modelValue: y.type,
|
|
3093
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
3106
|
+
"onUpdate:modelValue": p[1] || (p[1] = (C) => y.type = C),
|
|
3094
3107
|
clearable: ""
|
|
3095
3108
|
}, t.typeSelectionProps, { onChange: M }), {
|
|
3096
3109
|
default: h(() => [
|
|
3097
|
-
(v(!0), A(
|
|
3098
|
-
key:
|
|
3099
|
-
label:
|
|
3100
|
-
value:
|
|
3110
|
+
(v(!0), A(ze, null, et(I.value, (C) => (v(), ce($(bt), {
|
|
3111
|
+
key: C.value,
|
|
3112
|
+
label: C.label,
|
|
3113
|
+
value: C.value
|
|
3101
3114
|
}, null, 8, ["label", "value"]))), 128))
|
|
3102
3115
|
]),
|
|
3103
3116
|
_: 1
|
|
@@ -3112,7 +3125,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3112
3125
|
default: h(() => [
|
|
3113
3126
|
O($(Me), {
|
|
3114
3127
|
modelValue: y[t.searchKey],
|
|
3115
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
3128
|
+
"onUpdate:modelValue": p[2] || (p[2] = (C) => y[t.searchKey] = C),
|
|
3116
3129
|
clearable: "",
|
|
3117
3130
|
class: "qy-legacy-selection-dialog__search-input",
|
|
3118
3131
|
onKeydown: Ee(ue(M, ["prevent"]), ["enter"])
|
|
@@ -3127,7 +3140,7 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3127
3140
|
onClick: M
|
|
3128
3141
|
}, {
|
|
3129
3142
|
default: h(() => [...p[4] || (p[4] = [
|
|
3130
|
-
|
|
3143
|
+
be("查询", -1)
|
|
3131
3144
|
])]),
|
|
3132
3145
|
_: 1
|
|
3133
3146
|
})
|
|
@@ -3139,31 +3152,31 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3139
3152
|
}, 8, ["model"])
|
|
3140
3153
|
]),
|
|
3141
3154
|
toolbar: h(() => [
|
|
3142
|
-
|
|
3155
|
+
z(s.$slots, "bar", {
|
|
3143
3156
|
query: y,
|
|
3144
3157
|
search: M
|
|
3145
3158
|
}, void 0, !0)
|
|
3146
3159
|
]),
|
|
3147
3160
|
columns: h(() => [
|
|
3148
|
-
|
|
3149
|
-
|
|
3161
|
+
z(s.$slots, "cols", {}, void 0, !0),
|
|
3162
|
+
z(s.$slots, "columns", {}, void 0, !0)
|
|
3150
3163
|
]),
|
|
3151
3164
|
_: 3
|
|
3152
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"]),
|
|
3153
|
-
|
|
3166
|
+
z(s.$slots, "dialog", {
|
|
3154
3167
|
state: f,
|
|
3155
3168
|
form: y,
|
|
3156
3169
|
getData: M
|
|
3157
3170
|
}, void 0, !0)
|
|
3158
3171
|
], 64));
|
|
3159
3172
|
}
|
|
3160
|
-
}),
|
|
3173
|
+
}), un = /* @__PURE__ */ Re(sn, [["__scopeId", "data-v-b54ca11b"]]), cn = { class: "qy-form-section__heading" }, dn = {
|
|
3161
3174
|
key: 0,
|
|
3162
3175
|
class: "qy-form-section__title"
|
|
3163
|
-
},
|
|
3176
|
+
}, fn = {
|
|
3164
3177
|
key: 0,
|
|
3165
3178
|
class: "qy-form-section__description"
|
|
3166
|
-
},
|
|
3179
|
+
}, mn = { class: "qy-form-section__actions" }, yn = /* @__PURE__ */ qe({
|
|
3167
3180
|
name: "QyFormSection",
|
|
3168
3181
|
__name: "index",
|
|
3169
3182
|
props: {
|
|
@@ -3202,20 +3215,20 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3202
3215
|
}
|
|
3203
3216
|
]])
|
|
3204
3217
|
}, [
|
|
3205
|
-
|
|
3218
|
+
T("header", {
|
|
3206
3219
|
class: ke(["qy-form-section__header", t.headerClass]),
|
|
3207
3220
|
onClick: d
|
|
3208
3221
|
}, [
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
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)
|
|
3212
3225
|
], !0),
|
|
3213
|
-
|
|
3214
|
-
t.description ? (v(), A("div",
|
|
3226
|
+
z(y.$slots, "description", {}, () => [
|
|
3227
|
+
t.description ? (v(), A("div", fn, pe(t.description), 1)) : P("", !0)
|
|
3215
3228
|
], !0)
|
|
3216
3229
|
]),
|
|
3217
|
-
|
|
3218
|
-
|
|
3230
|
+
T("div", mn, [
|
|
3231
|
+
z(y.$slots, "actions", {}, void 0, !0),
|
|
3219
3232
|
t.collapsible ? (v(), A("button", {
|
|
3220
3233
|
key: 0,
|
|
3221
3234
|
type: "button",
|
|
@@ -3224,31 +3237,31 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3224
3237
|
}, pe(n.value ? "收起" : "展开"), 1)) : P("", !0)
|
|
3225
3238
|
])
|
|
3226
3239
|
], 2),
|
|
3227
|
-
Ye(
|
|
3240
|
+
Ye(T("div", {
|
|
3228
3241
|
class: ke(["qy-form-section__body", t.bodyClass])
|
|
3229
3242
|
}, [
|
|
3230
|
-
|
|
3243
|
+
z(y.$slots, "tip", {}, () => [
|
|
3231
3244
|
t.tip ? (v(), A("div", {
|
|
3232
3245
|
key: 0,
|
|
3233
3246
|
class: ke(["qy-form-section__tip", `is-${t.tipType}`])
|
|
3234
3247
|
}, pe(t.tip), 3)) : P("", !0)
|
|
3235
3248
|
], !0),
|
|
3236
|
-
|
|
3249
|
+
z(y.$slots, "default", {}, void 0, !0)
|
|
3237
3250
|
], 2), [
|
|
3238
3251
|
[pt, n.value]
|
|
3239
3252
|
])
|
|
3240
3253
|
], 2));
|
|
3241
3254
|
}
|
|
3242
|
-
}),
|
|
3255
|
+
}), pn = /* @__PURE__ */ Re(yn, [["__scopeId", "data-v-8149aa01"]]), gn = {
|
|
3243
3256
|
key: 0,
|
|
3244
3257
|
class: "qy-action-bar__left"
|
|
3245
|
-
},
|
|
3258
|
+
}, vn = {
|
|
3246
3259
|
key: 1,
|
|
3247
3260
|
class: "qy-action-bar__center"
|
|
3248
|
-
},
|
|
3261
|
+
}, hn = {
|
|
3249
3262
|
key: 2,
|
|
3250
3263
|
class: "qy-action-bar__right"
|
|
3251
|
-
},
|
|
3264
|
+
}, bn = /* @__PURE__ */ qe({
|
|
3252
3265
|
name: "QyActionBar",
|
|
3253
3266
|
__name: "index",
|
|
3254
3267
|
props: {
|
|
@@ -3278,143 +3291,167 @@ const lo = { class: "qy-remark-image__field" }, oo = {
|
|
|
3278
3291
|
]]),
|
|
3279
3292
|
style: Pe(W.value)
|
|
3280
3293
|
}, [
|
|
3281
|
-
e.$slots.left ? (v(), A("div",
|
|
3282
|
-
|
|
3294
|
+
e.$slots.left ? (v(), A("div", gn, [
|
|
3295
|
+
z(e.$slots, "left", {}, void 0, !0)
|
|
3283
3296
|
])) : P("", !0),
|
|
3284
|
-
e.$slots.default ? (v(), A("div",
|
|
3285
|
-
|
|
3297
|
+
e.$slots.default ? (v(), A("div", vn, [
|
|
3298
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
3286
3299
|
])) : P("", !0),
|
|
3287
|
-
e.$slots.right ? (v(), A("div",
|
|
3288
|
-
|
|
3300
|
+
e.$slots.right ? (v(), A("div", hn, [
|
|
3301
|
+
z(e.$slots, "right", {}, void 0, !0)
|
|
3289
3302
|
])) : P("", !0)
|
|
3290
3303
|
], 6));
|
|
3291
3304
|
}
|
|
3292
|
-
}),
|
|
3293
|
-
|
|
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,
|
|
3294
3307
|
"QyTableColumnSettings"
|
|
3295
|
-
),
|
|
3296
|
-
|
|
3308
|
+
), Nt = b(wo, "QyRadioGroup"), Ht = b(_l, "QyRemoteSelect"), Zt = b(Ct, "QySearchInput"), Wt = b(
|
|
3309
|
+
Gl,
|
|
3297
3310
|
"QyRecordQuoteSearch"
|
|
3298
|
-
),
|
|
3299
|
-
|
|
3311
|
+
), Gt = b(tt, "QySelect"), Jt = b(St, "QyTreeSelect"), Xt = b(Vt, "QySelectionDialog"), Yt = b(
|
|
3312
|
+
un,
|
|
3300
3313
|
"QyLegacySelectionDialog"
|
|
3301
|
-
),
|
|
3302
|
-
t.component("QyDialog",
|
|
3303
|
-
},
|
|
3304
|
-
install:
|
|
3305
|
-
QyUpload:
|
|
3306
|
-
QyImage:
|
|
3307
|
-
QyImagePreview:
|
|
3308
|
-
openQyImagePreview:
|
|
3309
|
-
QyImageUpload:
|
|
3310
|
-
QyDialog:
|
|
3311
|
-
QyButton:
|
|
3312
|
-
QyDropdown:
|
|
3313
|
-
QyInput:
|
|
3314
|
-
QyInputNumber:
|
|
3315
|
-
QyMoneyInput:
|
|
3316
|
-
QyDatePicker:
|
|
3317
|
-
QyCheckbox:
|
|
3318
|
-
QyCheckboxGroup:
|
|
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,
|
|
3324
|
+
QyButton: zt,
|
|
3325
|
+
QyDropdown: Ft,
|
|
3326
|
+
QyInput: Pt,
|
|
3327
|
+
QyInputNumber: Dt,
|
|
3328
|
+
QyMoneyInput: Mt,
|
|
3329
|
+
QyDatePicker: Ot,
|
|
3330
|
+
QyCheckbox: _t,
|
|
3331
|
+
QyCheckboxGroup: Lt,
|
|
3319
3332
|
QyRadio: Ut,
|
|
3320
|
-
QyAutocomplete:
|
|
3321
|
-
QyMenuActions:
|
|
3322
|
-
QyTableColumnSettings:
|
|
3323
|
-
QyRadioGroup:
|
|
3324
|
-
QyRemoteSelect:
|
|
3325
|
-
QySearchInput:
|
|
3326
|
-
QyRecordQuoteSearch:
|
|
3327
|
-
QySelect:
|
|
3328
|
-
QyTreeSelect:
|
|
3329
|
-
QySelectionDialog:
|
|
3330
|
-
QyLegacySelectionDialog:
|
|
3331
|
-
QyFormSection:
|
|
3332
|
-
QyActionBar:
|
|
3333
|
-
QyFilePicker:
|
|
3334
|
-
QySwitch:
|
|
3335
|
-
QyTag:
|
|
3336
|
-
QyBadge:
|
|
3337
|
-
QyCascader:
|
|
3338
|
-
QyTooltip:
|
|
3339
|
-
QyPopover:
|
|
3340
|
-
QySkeleton:
|
|
3341
|
-
QySkeletonItem:
|
|
3342
|
-
QyTabs:
|
|
3343
|
-
QyTabPane:
|
|
3344
|
-
QySteps:
|
|
3345
|
-
QyStep:
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
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,
|
|
3351
|
+
QyTooltip: ia,
|
|
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,
|
|
3361
|
+
QyIcon: kt,
|
|
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,
|
|
3371
|
+
QyCollapseItem: xa,
|
|
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
|
|
3360
3387
|
};
|
|
3361
3388
|
export {
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
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
|
-
|
|
3389
|
+
ya as $,
|
|
3390
|
+
Bt as A,
|
|
3391
|
+
At as B,
|
|
3392
|
+
It as C,
|
|
3393
|
+
Pt as D,
|
|
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,
|
|
3436
|
+
zt as f,
|
|
3437
|
+
Ba as g,
|
|
3438
|
+
ra as h,
|
|
3439
|
+
_t as i,
|
|
3440
|
+
Lt as j,
|
|
3441
|
+
va as k,
|
|
3442
|
+
Qa as l,
|
|
3443
|
+
xa as m,
|
|
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
|
|
3420
3457
|
};
|