fangguo-component 1.2.0 → 1.2.2
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/CHANGELOG.md +28 -5
- package/README.md +11 -0
- package/dist/{FgCascader.vue_vue_type_style_index_0_lang-Bm4HR37D.js → FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js} +1 -1
- package/dist/{ImgViewerHost.vue_vue_type_script_setup_true_lang-CMoh7eWo.js → ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js} +4 -3
- package/dist/{ViewImg-Bg1AQ0T6.js → ViewImg-DXhF20SL.js} +14 -7
- package/dist/ViewImg.css +9 -9
- package/dist/ViewImgPopover-QblZG0z5.js +343 -0
- package/dist/ViewImgPopover.css +79 -6
- package/dist/ViewImgPreview.css +32 -0
- package/dist/{ViewImgPreview.vue_vue_type_style_index_0_lang-CYuLovBR.js → ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js} +19 -9
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/imgViewerHost/imgViewerStore.d.ts +5 -1
- package/dist/components/imgViewerHost/index.js +2 -2
- package/dist/components/index.js +15 -11
- package/dist/components/viewImg/ViewImg.vue.d.ts +9 -1
- package/dist/components/viewImg/index.js +1 -1
- package/dist/components/viewImgPopover/ViewImgPopover.vue.d.ts +25 -4
- package/dist/components/viewImgPopover/index.js +1 -1
- package/dist/components/viewImgPreview/ViewImgPreview.vue.d.ts +4 -1
- package/dist/components/viewImgPreview/index.d.ts +2 -2
- package/dist/components/viewImgPreview/index.js +11 -7
- package/dist/components/viewImgPreview/types.d.ts +15 -0
- package/dist/{imgViewerStore-C5n16uYa.js → imgViewerStore-DK3zvGf4.js} +7 -1
- package/dist/{index-CckJZ8N-.js → index-Ce_edAQB.js} +11 -7
- package/dist/index.js +25 -21
- package/dist/types-Ccn_sb6f.js +49 -0
- package/package.json +97 -92
- package/dist/ViewImgPopover-b9PDEYbP.js +0 -275
- package/dist/types-BNFeGRer.js +0 -32
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as _sfc_main } from "./ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./FgCascader.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js";
|
|
3
3
|
import { _ as _sfc_main$2 } from "./CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js";
|
|
4
4
|
import { _ as _sfc_main$3 } from "./DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js";
|
|
5
5
|
import { _ as _sfc_main$4 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js";
|
|
6
6
|
import { _ as _sfc_main$5 } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js";
|
|
7
7
|
import { _ as _sfc_main$6 } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js";
|
|
8
|
-
import { _ as _sfc_main$7 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as _sfc_main$7 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
|
|
9
9
|
import { _ as _sfc_main$8 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
|
|
10
10
|
import { _ as _sfc_main$9 } from "./NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js";
|
|
11
11
|
import { _ as _sfc_main$a } from "./SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js";
|
|
@@ -13,8 +13,8 @@ import { _ as _sfc_main$b } from "./SelectAll2.vue_vue_type_script_setup_true_la
|
|
|
13
13
|
import { _ as _sfc_main$c } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js";
|
|
14
14
|
import { _ as _sfc_main$d } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js";
|
|
15
15
|
import { _ as _sfc_main$e } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js";
|
|
16
|
-
import { _ as _sfc_main$f } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-
|
|
17
|
-
import { D as DEFAULT_ORIGINAL_TOOLBAR, a as DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE, b as DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL, c as DEFAULT_PREVIEW_INFINITE, d as DEFAULT_PREVIEW_MAX_SCALE, e as DEFAULT_PREVIEW_MIN_SCALE, f as DEFAULT_PREVIEW_SCALE, g as DEFAULT_PREVIEW_SHOW_PROGRESS, h as
|
|
16
|
+
import { _ as _sfc_main$f } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js";
|
|
17
|
+
import { D as DEFAULT_ORIGINAL_TOOLBAR, a as DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE, b as DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL, c as DEFAULT_PREVIEW_INFINITE, d as DEFAULT_PREVIEW_MAX_SCALE, e as DEFAULT_PREVIEW_MIN_SCALE, f as DEFAULT_PREVIEW_SCALE, g as DEFAULT_PREVIEW_SHOW_PROGRESS, h as DEFAULT_PREVIEW_SIDE_NAV, i as DEFAULT_PREVIEW_TELEPORTED, j as DEFAULT_PREVIEW_ZOOM_RATE, k as DEFAULT_TOOLBAR_BG_COLOR, l as DEFAULT_TOOLBAR_ICON_COLOR, N as NAV_TOOLBAR_KEYS, r as resolvePreviewSideNav, s as shouldShowPreviewSideNav } from "./types-Ccn_sb6f.js";
|
|
18
18
|
import { B as ButtonGroup } from "./ButtonGroup-DqViorHX.js";
|
|
19
19
|
import { C as ContentTitle } from "./ContentTitle-By0Zk1u7.js";
|
|
20
20
|
import { C as CustomInputV2 } from "./CustomInputV2-BqhBSO53.js";
|
|
@@ -31,9 +31,9 @@ import { S as SelectAddress } from "./SelectAddress-CCepDxu8.js";
|
|
|
31
31
|
import { S as SelectTree } from "./SelectTree-DUH92Iwr.js";
|
|
32
32
|
import { S as SvgIcon } from "./SvgIcon-DIg0upEk.js";
|
|
33
33
|
import { T as TextCopy } from "./TextCopy-lpbeqOUI.js";
|
|
34
|
-
import { F as FgViewImg } from "./ViewImg-
|
|
35
|
-
import { V as ViewImgPopover } from "./ViewImgPopover-
|
|
36
|
-
import { I as ImgViewerStore, P as PREVIEW_BASE_Z_INDEX, g as getDialogZindex, u as useImgViewerState, a as useImgViewerStore } from "./imgViewerStore-
|
|
34
|
+
import { F as FgViewImg } from "./ViewImg-DXhF20SL.js";
|
|
35
|
+
import { V as ViewImgPopover } from "./ViewImgPopover-QblZG0z5.js";
|
|
36
|
+
import { I as ImgViewerStore, P as PREVIEW_BASE_Z_INDEX, g as getDialogZindex, u as useImgViewerState, a as useImgViewerStore } from "./imgViewerStore-DK3zvGf4.js";
|
|
37
37
|
import { V as VirtualTable } from "./VirtualTable-Cm_L7q9W.js";
|
|
38
38
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
39
39
|
__proto__: null,
|
|
@@ -45,6 +45,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
45
45
|
DEFAULT_PREVIEW_MIN_SCALE,
|
|
46
46
|
DEFAULT_PREVIEW_SCALE,
|
|
47
47
|
DEFAULT_PREVIEW_SHOW_PROGRESS,
|
|
48
|
+
DEFAULT_PREVIEW_SIDE_NAV,
|
|
48
49
|
DEFAULT_PREVIEW_TELEPORTED,
|
|
49
50
|
DEFAULT_PREVIEW_ZOOM_RATE,
|
|
50
51
|
DEFAULT_TOOLBAR_BG_COLOR,
|
|
@@ -84,9 +85,12 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
84
85
|
FgViewImgPopover: ViewImgPopover,
|
|
85
86
|
FgViewImgPreview: _sfc_main$f,
|
|
86
87
|
ImgViewerStore,
|
|
88
|
+
NAV_TOOLBAR_KEYS,
|
|
87
89
|
PREVIEW_BASE_Z_INDEX,
|
|
88
90
|
VirtualTable,
|
|
89
91
|
getDialogZindex,
|
|
92
|
+
resolvePreviewSideNav,
|
|
93
|
+
shouldShowPreviewSideNav,
|
|
90
94
|
useImgViewerState,
|
|
91
95
|
useImgViewerStore
|
|
92
96
|
}, Symbol.toStringTag, { value: "Module" }));
|
package/dist/index.js
CHANGED
|
@@ -14,20 +14,20 @@ var __spreadValues = (a10, b4) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a10;
|
|
16
16
|
};
|
|
17
|
-
import { c as components } from "./index-
|
|
17
|
+
import { c as components } from "./index-Ce_edAQB.js";
|
|
18
18
|
import { t as tools } from "./index-Qkq7I01c.js";
|
|
19
19
|
import { d as directives } from "./index-CSMWzzp0.js";
|
|
20
20
|
import { h as hooks } from "./index-DfQiknXJ.js";
|
|
21
21
|
import { c as configureImgUrl } from "./montageImgUrl-CwgYnB2h.js";
|
|
22
22
|
import { D, g, a, b, i, d, e, m, n, f, r, t } from "./montageImgUrl-CwgYnB2h.js";
|
|
23
23
|
import { _ } from "./ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js";
|
|
24
|
-
import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-
|
|
24
|
+
import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js";
|
|
25
25
|
import { _ as _3 } from "./CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js";
|
|
26
26
|
import { _ as _4 } from "./DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js";
|
|
27
27
|
import { _ as _5 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js";
|
|
28
28
|
import { _ as _6 } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js";
|
|
29
29
|
import { _ as _7 } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js";
|
|
30
|
-
import { _ as _8 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-
|
|
30
|
+
import { _ as _8 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
|
|
31
31
|
import { _ as _9 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
|
|
32
32
|
import { _ as _10 } from "./NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js";
|
|
33
33
|
import { _ as _11 } from "./SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js";
|
|
@@ -35,8 +35,8 @@ import { _ as _12 } from "./SelectAll2.vue_vue_type_script_setup_true_lang-Crsao
|
|
|
35
35
|
import { _ as _13 } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js";
|
|
36
36
|
import { _ as _14 } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js";
|
|
37
37
|
import { _ as _15 } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js";
|
|
38
|
-
import { _ as _16 } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-
|
|
39
|
-
import { D as D2, a as a2, b as b2, c, d as d2, e as e2, f as f2, g as g2, h, i as i2, j, k } from "./types-
|
|
38
|
+
import { _ as _16 } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js";
|
|
39
|
+
import { D as D2, a as a2, b as b2, c, d as d2, e as e2, f as f2, g as g2, h, i as i2, j, k, l, N, r as r2, s } from "./types-Ccn_sb6f.js";
|
|
40
40
|
import { B } from "./ButtonGroup-DqViorHX.js";
|
|
41
41
|
import { C } from "./ContentTitle-By0Zk1u7.js";
|
|
42
42
|
import { C as C2 } from "./CustomInputV2-BqhBSO53.js";
|
|
@@ -46,7 +46,7 @@ import { F } from "./ErrorImage-CFVt1ht_.js";
|
|
|
46
46
|
import { H } from "./HSelect-DgFjd08Y.js";
|
|
47
47
|
import { H as H2 } from "./HSelectSJ-DOFUzTZV.js";
|
|
48
48
|
import { L } from "./LazyPopover-7ebuh-QG.js";
|
|
49
|
-
import { l } from "./loading-CGrVcnNl.js";
|
|
49
|
+
import { l as l2 } from "./loading-CGrVcnNl.js";
|
|
50
50
|
import { L as L2 } from "./LoadingBtn-DWm2cY9k.js";
|
|
51
51
|
import { M } from "./MInput-s_P63myh.js";
|
|
52
52
|
import { M as M2 } from "./MyTable-CHvxPYgk.js";
|
|
@@ -54,13 +54,13 @@ import { S } from "./SelectAddress-CCepDxu8.js";
|
|
|
54
54
|
import { S as S2 } from "./SelectTree-DUH92Iwr.js";
|
|
55
55
|
import { S as S3 } from "./SvgIcon-DIg0upEk.js";
|
|
56
56
|
import { T } from "./TextCopy-lpbeqOUI.js";
|
|
57
|
-
import { F as F2 } from "./ViewImg-
|
|
58
|
-
import { V } from "./ViewImgPopover-
|
|
59
|
-
import { I, P, g as g3, u, a as a3 } from "./imgViewerStore-
|
|
57
|
+
import { F as F2 } from "./ViewImg-DXhF20SL.js";
|
|
58
|
+
import { V } from "./ViewImgPopover-QblZG0z5.js";
|
|
59
|
+
import { I, P, g as g3, u, a as a3 } from "./imgViewerStore-DK3zvGf4.js";
|
|
60
60
|
import { V as V2 } from "./VirtualTable-Cm_L7q9W.js";
|
|
61
|
-
import { a as a4, b as b3, c as c2, d as d3, e as e3, f as f3, g as g4, h as h2, i as i3, j as j2, k as k2, l as
|
|
61
|
+
import { a as a4, b as b3, c as c2, d as d3, e as e3, f as f3, g as g4, h as h2, i as i3, j as j2, k as k2, l as l3, m as m2, n as n2, o, p, q, r as r3, s as s2, t as t2, u as u2, v, w, x, y, z, A, B as B2, C as C4, D as D4, E, F as F3, G, H as H3, I as I2, J, K, L as L3, M as M3, N as N2, O, P as P2, Q, R, S as S4, T as T2, U, V as V3, W, X, Y, Z, _ as _17, $, a0, a1, a2 as a22, a3 as a32, a4 as a42, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as } from "./common-D0EYVGB2.js";
|
|
62
62
|
import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./tools/ImageParserUtils/index.js";
|
|
63
|
-
import { s as
|
|
63
|
+
import { s as s3 } from "./dateShortcuts-DjFC_Txu.js";
|
|
64
64
|
import { u as u3 } from "./usePagination-C63IRXjZ.js";
|
|
65
65
|
function isDirectiveDef(v2) {
|
|
66
66
|
if (!v2 || typeof v2 !== "object") return false;
|
|
@@ -97,10 +97,11 @@ export {
|
|
|
97
97
|
e2 as DEFAULT_PREVIEW_MIN_SCALE,
|
|
98
98
|
f2 as DEFAULT_PREVIEW_SCALE,
|
|
99
99
|
g2 as DEFAULT_PREVIEW_SHOW_PROGRESS,
|
|
100
|
-
h as
|
|
101
|
-
i2 as
|
|
102
|
-
j as
|
|
103
|
-
k as
|
|
100
|
+
h as DEFAULT_PREVIEW_SIDE_NAV,
|
|
101
|
+
i2 as DEFAULT_PREVIEW_TELEPORTED,
|
|
102
|
+
j as DEFAULT_PREVIEW_ZOOM_RATE,
|
|
103
|
+
k as DEFAULT_TOOLBAR_BG_COLOR,
|
|
104
|
+
l as DEFAULT_TOOLBAR_ICON_COLOR,
|
|
104
105
|
_ as FgArgHover,
|
|
105
106
|
B as FgButtonGroup,
|
|
106
107
|
_2 as FgCascader,
|
|
@@ -119,7 +120,7 @@ export {
|
|
|
119
120
|
_8 as FgImgViewerHost,
|
|
120
121
|
_9 as FgLazyComponent,
|
|
121
122
|
L as FgLazyPopover,
|
|
122
|
-
|
|
123
|
+
l2 as FgLoading,
|
|
123
124
|
L2 as FgLoadingBtn,
|
|
124
125
|
M as FgMInput,
|
|
125
126
|
M2 as FgMyTable,
|
|
@@ -137,6 +138,7 @@ export {
|
|
|
137
138
|
V as FgViewImgPopover,
|
|
138
139
|
_16 as FgViewImgPreview,
|
|
139
140
|
I as ImgViewerStore,
|
|
141
|
+
N as NAV_TOOLBAR_KEYS,
|
|
140
142
|
P as PREVIEW_BASE_Z_INDEX,
|
|
141
143
|
V2 as VirtualTable,
|
|
142
144
|
a4 as aesDecrypt,
|
|
@@ -151,7 +153,7 @@ export {
|
|
|
151
153
|
j2 as cleanEmptyFields,
|
|
152
154
|
configureImgUrl,
|
|
153
155
|
k2 as convertImageFormat,
|
|
154
|
-
|
|
156
|
+
l3 as copyText,
|
|
155
157
|
m2 as copyWord,
|
|
156
158
|
n2 as createFileLocalUrl,
|
|
157
159
|
o as createUuid,
|
|
@@ -159,8 +161,8 @@ export {
|
|
|
159
161
|
q as debounce,
|
|
160
162
|
index as default,
|
|
161
163
|
detectFileType,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
r3 as dropperColor,
|
|
165
|
+
s2 as fileUrlToBase64,
|
|
164
166
|
t2 as filterCountryAreaCodeList,
|
|
165
167
|
u2 as filterMethodLowerCase,
|
|
166
168
|
v as filterSearch,
|
|
@@ -183,7 +185,7 @@ export {
|
|
|
183
185
|
g3 as getDialogZindex,
|
|
184
186
|
L3 as getFileFolderToEnums,
|
|
185
187
|
M3 as getFilenameAndExtension,
|
|
186
|
-
|
|
188
|
+
N2 as getImageSizeByFile,
|
|
187
189
|
g as getImgFasten,
|
|
188
190
|
O as getMobileSubmitParams,
|
|
189
191
|
a as getNetworkAdaptiveOptions,
|
|
@@ -236,7 +238,9 @@ export {
|
|
|
236
238
|
ag as pwdReg,
|
|
237
239
|
ah as ratioToNumber,
|
|
238
240
|
r as replaceUnsupportedImg,
|
|
239
|
-
|
|
241
|
+
r2 as resolvePreviewSideNav,
|
|
242
|
+
s3 as shortcuts,
|
|
243
|
+
s as shouldShowPreviewSideNav,
|
|
240
244
|
ai as sleep,
|
|
241
245
|
aj as splitArray,
|
|
242
246
|
ak as strPasteJson,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const DEFAULT_ORIGINAL_TOOLBAR = [
|
|
2
|
+
"zoomOut",
|
|
3
|
+
"zoomIn",
|
|
4
|
+
"anticlockwise",
|
|
5
|
+
"clockwise",
|
|
6
|
+
"reset"
|
|
7
|
+
];
|
|
8
|
+
const NAV_TOOLBAR_KEYS = ["prev", "next", "fistImg", "lastImg"];
|
|
9
|
+
const DEFAULT_PREVIEW_SIDE_NAV = "both";
|
|
10
|
+
function resolvePreviewSideNav(previewSideNav, imageCount, toolbar, hasExtraTools = false) {
|
|
11
|
+
if (imageCount <= 1) return "none";
|
|
12
|
+
if (previewSideNav === false) return "none";
|
|
13
|
+
if (previewSideNav === "prev") return "prev";
|
|
14
|
+
if (previewSideNav === "next") return "next";
|
|
15
|
+
if (toolbar.length > 0 || hasExtraTools) return "both";
|
|
16
|
+
return "none";
|
|
17
|
+
}
|
|
18
|
+
function shouldShowPreviewSideNav(imageCount, toolbar, hasExtraTools = false) {
|
|
19
|
+
return resolvePreviewSideNav(DEFAULT_PREVIEW_SIDE_NAV, imageCount, toolbar, hasExtraTools) === "both";
|
|
20
|
+
}
|
|
21
|
+
const DEFAULT_TOOLBAR_BG_COLOR = "#606266";
|
|
22
|
+
const DEFAULT_TOOLBAR_ICON_COLOR = "#ffffff";
|
|
23
|
+
const DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL = false;
|
|
24
|
+
const DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE = true;
|
|
25
|
+
const DEFAULT_PREVIEW_TELEPORTED = true;
|
|
26
|
+
const DEFAULT_PREVIEW_INFINITE = true;
|
|
27
|
+
const DEFAULT_PREVIEW_ZOOM_RATE = 1.2;
|
|
28
|
+
const DEFAULT_PREVIEW_SCALE = 1;
|
|
29
|
+
const DEFAULT_PREVIEW_MIN_SCALE = 0.2;
|
|
30
|
+
const DEFAULT_PREVIEW_MAX_SCALE = 7;
|
|
31
|
+
const DEFAULT_PREVIEW_SHOW_PROGRESS = false;
|
|
32
|
+
export {
|
|
33
|
+
DEFAULT_ORIGINAL_TOOLBAR as D,
|
|
34
|
+
NAV_TOOLBAR_KEYS as N,
|
|
35
|
+
DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE as a,
|
|
36
|
+
DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL as b,
|
|
37
|
+
DEFAULT_PREVIEW_INFINITE as c,
|
|
38
|
+
DEFAULT_PREVIEW_MAX_SCALE as d,
|
|
39
|
+
DEFAULT_PREVIEW_MIN_SCALE as e,
|
|
40
|
+
DEFAULT_PREVIEW_SCALE as f,
|
|
41
|
+
DEFAULT_PREVIEW_SHOW_PROGRESS as g,
|
|
42
|
+
DEFAULT_PREVIEW_SIDE_NAV as h,
|
|
43
|
+
DEFAULT_PREVIEW_TELEPORTED as i,
|
|
44
|
+
DEFAULT_PREVIEW_ZOOM_RATE as j,
|
|
45
|
+
DEFAULT_TOOLBAR_BG_COLOR as k,
|
|
46
|
+
DEFAULT_TOOLBAR_ICON_COLOR as l,
|
|
47
|
+
resolvePreviewSideNav as r,
|
|
48
|
+
shouldShowPreviewSideNav as s
|
|
49
|
+
};
|
package/package.json
CHANGED
|
@@ -1,93 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fangguo-component",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./dist/*": "./dist/*"
|
|
15
|
-
},
|
|
16
|
-
"sideEffects": [
|
|
17
|
-
"**/*.css"
|
|
18
|
-
],
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"LICENSE",
|
|
23
|
-
"CHANGELOG.md",
|
|
24
|
-
"package.json"
|
|
25
|
-
],
|
|
26
|
-
"author": "yeshen",
|
|
27
|
-
"license": "ISC",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"vue
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "fangguo-component",
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./dist/*": "./dist/*"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"CHANGELOG.md",
|
|
24
|
+
"package.json"
|
|
25
|
+
],
|
|
26
|
+
"author": "yeshen",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"ag-psd": "^28.4.1",
|
|
30
|
+
"crypto-js": "^4.2.0",
|
|
31
|
+
"fingerprintjs2": "^2.1.4",
|
|
32
|
+
"js-sha1": "^0.7.0",
|
|
33
|
+
"lodash-unified": "^1.0.3",
|
|
34
|
+
"utif2": "^4.1.0",
|
|
35
|
+
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
39
|
+
"element-plus": "2.13.7",
|
|
40
|
+
"sass": "^1.53.0",
|
|
41
|
+
"tailwindcss": "^3.3.1",
|
|
42
|
+
"vue": "^3.5.3"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@commitlint/cli": "^21.0.0",
|
|
46
|
+
"@commitlint/config-conventional": "^21.0.0",
|
|
47
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
48
|
+
"@types/node": "^25.6.2",
|
|
49
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
50
|
+
"@vue/shared": "^3.5.27",
|
|
51
|
+
"@vue/tsconfig": "^0.8.1",
|
|
52
|
+
"@vueuse/core": "^14.1.0",
|
|
53
|
+
"address-parse": "^1.2.19",
|
|
54
|
+
"element-plus": "2.13.7",
|
|
55
|
+
"husky": "^9.1.7",
|
|
56
|
+
"lint-staged": "^17.0.4",
|
|
57
|
+
"lodash-es": "^4.18.1",
|
|
58
|
+
"oxfmt": "^0.27.0",
|
|
59
|
+
"oxlint": "^1.42.0",
|
|
60
|
+
"sass": "^1.53.0",
|
|
61
|
+
"tailwindcss": "^3.3.1",
|
|
62
|
+
"typescript": "^5.9.3",
|
|
63
|
+
"unplugin-auto-import": "^21.0.0",
|
|
64
|
+
"unplugin-vue-components": "^31.0.0",
|
|
65
|
+
"vite": "^7.3.1",
|
|
66
|
+
"vite-plugin-dts": "4.5.4",
|
|
67
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
68
|
+
"vite-plugin-node-polyfills": "^0.26.0",
|
|
69
|
+
"vitepress": "^1.6.4",
|
|
70
|
+
"vitepress-demo-plugin": "^1.5.1",
|
|
71
|
+
"vue": "^3.5.3",
|
|
72
|
+
"vue-tsc": "^3.2.4",
|
|
73
|
+
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
74
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1"
|
|
75
|
+
},
|
|
76
|
+
"lint-staged": {
|
|
77
|
+
"*.{ts,vue,js}": "node scripts/lint-staged-oxlint.mjs"
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"dev": "vite",
|
|
81
|
+
"preview": "vite preview",
|
|
82
|
+
"fmt": "oxfmt",
|
|
83
|
+
"lint": "oxlint",
|
|
84
|
+
"lint:fix": "oxlint --fix",
|
|
85
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.check-src.json",
|
|
86
|
+
"build:npm": "vite build --mode npm",
|
|
87
|
+
"publish:npm": "pnpm publish --no-git-checks",
|
|
88
|
+
"docs:gen": "npx tsx scripts/gen-docs.ts",
|
|
89
|
+
"docs:dev": "vitepress dev docs",
|
|
90
|
+
"docs:build": "vitepress build docs && pnpm --dir mcp/fangguo-component-mcp-server exec tsx src/generateCatalog.ts --out ../../docs/.vitepress/dist/catalog.json",
|
|
91
|
+
"docs:preview": "vitepress preview docs",
|
|
92
|
+
"build:mcp": "pnpm --dir mcp/fangguo-component-mcp-server build",
|
|
93
|
+
"publish:mcp": "pnpm --dir mcp/fangguo-component-mcp-server run publish:npm",
|
|
94
|
+
"start:mcp": "pnpm --dir mcp/fangguo-component-mcp-server start",
|
|
95
|
+
"start:mcp:http": "pnpm --dir mcp/fangguo-component-mcp-server start:http",
|
|
96
|
+
"debug:tools": "pnpm --dir mcp/fangguo-component-mcp-server debug:tools"
|
|
97
|
+
}
|
|
93
98
|
}
|