fangguo-component 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/dist/{ErrorImage-Ao9kEEUg.js → ErrorImage-CFVt1ht_.js} +2 -2
- package/dist/FgCascader.css +24 -0
- package/dist/{FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js → FgCascader.vue_vue_type_style_index_0_lang-Bm4HR37D.js} +45 -4
- package/dist/{HSelect-BFkWiCFi.js → HSelect-DgFjd08Y.js} +3 -3
- package/dist/{HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js → HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js} +1 -1
- package/dist/{HSelectSJ-DZmtdyjF.js → HSelectSJ-DOFUzTZV.js} +3 -3
- package/dist/ImgViewerHost.vue_vue_type_script_setup_true_lang-CMoh7eWo.js +52 -0
- package/dist/LazyPopover-7ebuh-QG.js +188 -0
- package/dist/LazyPopover.css +5 -0
- package/dist/{SelectTree-DHbWogEU.js → SelectTree-DUH92Iwr.js} +2 -2
- package/dist/{TextCopy-th0FAxwl.js → TextCopy-lpbeqOUI.js} +1 -1
- package/dist/ViewImg-Bg1AQ0T6.js +247 -0
- package/dist/ViewImg.css +56 -0
- package/dist/ViewImgPopover-b9PDEYbP.js +275 -0
- package/dist/ViewImgPopover.css +33 -0
- package/dist/ViewImgPreview.css +100 -0
- package/dist/ViewImgPreview.vue_vue_type_style_index_0_lang-CYuLovBR.js +306 -0
- package/dist/{common-B1nSpTGn.js → common-D0EYVGB2.js} +1 -1
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/errorImage/index.js +2 -2
- package/dist/components/hSelect/index.js +1 -1
- package/dist/components/hSelectAll/index.js +1 -1
- package/dist/components/hSelectSJ/index.js +1 -1
- package/dist/components/imgViewerHost/ImgViewerHost.vue.d.ts +2 -0
- package/dist/components/imgViewerHost/imgViewerStore.d.ts +195 -0
- package/dist/components/imgViewerHost/index.d.ts +4 -0
- package/dist/components/imgViewerHost/index.js +10 -0
- package/dist/components/imgViewerHost/utils.d.ts +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +45 -18
- package/dist/components/lazyPopover/LazyPopover.vue.d.ts +12 -15
- package/dist/components/lazyPopover/index.js +2 -2
- package/dist/components/selectTree/index.js +1 -1
- package/dist/components/textCopy/index.js +1 -1
- package/dist/components/viewImg/ViewImg.vue.d.ts +141 -0
- package/dist/components/viewImg/index.d.ts +1 -0
- package/dist/components/viewImg/index.js +4 -0
- package/dist/components/viewImgPopover/ViewImgPopover.vue.d.ts +705 -0
- package/dist/components/viewImgPopover/index.d.ts +1 -0
- package/dist/components/viewImgPopover/index.js +4 -0
- package/dist/components/viewImgPreview/ViewImgPreview.vue.d.ts +50 -0
- package/dist/components/viewImgPreview/index.d.ts +3 -0
- package/dist/components/viewImgPreview/index.js +17 -0
- package/dist/components/viewImgPreview/types.d.ts +78 -0
- package/dist/imgViewerStore-C5n16uYa.js +241 -0
- package/dist/{index-DzdLpetc.js → index-BtQgIf7F.js} +1414 -1402
- package/dist/{index-uQXqC9BF.js → index-CckJZ8N-.js} +40 -13
- package/dist/{index-BPnixsfc.js → index-Qkq7I01c.js} +15 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +103 -60
- package/dist/montageImgUrl-CwgYnB2h.js +204 -0
- package/dist/tools/ImageParserUtils/index.js +346 -346
- package/dist/tools/common/index.js +1 -1
- package/dist/tools/imgUrl/config.d.ts +10 -0
- package/dist/tools/imgUrl/index.d.ts +4 -0
- package/dist/tools/imgUrl/index.js +16 -0
- package/dist/tools/imgUrl/montageImgUrl.d.ts +15 -0
- package/dist/tools/imgUrl/networkAdaptive.d.ts +7 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +29 -15
- package/dist/types-BNFeGRer.js +32 -0
- package/package.json +92 -92
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, 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-
|
|
1
|
+
import { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, 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";
|
|
2
2
|
import { s as s2 } from "../../dateShortcuts-DjFC_Txu.js";
|
|
3
3
|
export {
|
|
4
4
|
a as aesDecrypt,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ImgFastenConfig, ImgUrlConfig } from './types';
|
|
2
|
+
export declare const DEFAULT_IMG_FASTEN: ImgFastenConfig;
|
|
3
|
+
/** 图片 URL 全局配置版本;configureImgUrl 更新时递增,供已挂载组件刷新 */
|
|
4
|
+
export declare const imgUrlConfigKey: import('vue').Ref<number, number>;
|
|
5
|
+
/** 获取当前 OSS 域名配置 */
|
|
6
|
+
export declare function getOssLinks(): string[];
|
|
7
|
+
/** 获取当前占位图配置 */
|
|
8
|
+
export declare function getImgFasten(): ImgFastenConfig;
|
|
9
|
+
/** 在应用入口注入 OSS 域名与占位图配置 */
|
|
10
|
+
export declare function configureImgUrl(config?: ImgUrlConfig): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { configureImgUrl, DEFAULT_IMG_FASTEN, getImgFasten, getOssLinks, imgUrlConfigKey } from './config';
|
|
2
|
+
export { getNetworkAdaptiveOptions, initNetworkListener, networkKey } from './networkAdaptive';
|
|
3
|
+
export { isUnsupportedImg, montageImgUrl, notSupportedImgTypes, replaceUnsupportedImg, temuThumbUrl, } from './montageImgUrl';
|
|
4
|
+
export type { ImgFastenConfig, ImgSizeOptions, ImgUrlConfig, MontageImgUrlOptions } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { D, c, g, a, b, i, d, e, m, n, f, r, t } from "../../montageImgUrl-CwgYnB2h.js";
|
|
2
|
+
export {
|
|
3
|
+
D as DEFAULT_IMG_FASTEN,
|
|
4
|
+
c as configureImgUrl,
|
|
5
|
+
g as getImgFasten,
|
|
6
|
+
a as getNetworkAdaptiveOptions,
|
|
7
|
+
b as getOssLinks,
|
|
8
|
+
i as imgUrlConfigKey,
|
|
9
|
+
d as initNetworkListener,
|
|
10
|
+
e as isUnsupportedImg,
|
|
11
|
+
m as montageImgUrl,
|
|
12
|
+
n as networkKey,
|
|
13
|
+
f as notSupportedImgTypes,
|
|
14
|
+
r as replaceUnsupportedImg,
|
|
15
|
+
t as temuThumbUrl
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImgSizeOptions, MontageImgUrlOptions } from './types';
|
|
2
|
+
export declare const notSupportedImgTypes: string[];
|
|
3
|
+
/** 判断图片 url 是否为浏览器不支持渲染的格式 */
|
|
4
|
+
export declare function isUnsupportedImg(url: string): boolean;
|
|
5
|
+
/** 命中不支持格式时返回占位图,否则返回原 url */
|
|
6
|
+
export declare function replaceUnsupportedImg(url?: string): string;
|
|
7
|
+
/** TEMU 平台缩略图 */
|
|
8
|
+
export declare function temuThumbUrl(url: string, imgSize?: ImgSizeOptions): string;
|
|
9
|
+
/**
|
|
10
|
+
* 拼接图片 url(OSS / TEMU / 占位图)
|
|
11
|
+
* @param url 原始图片地址
|
|
12
|
+
* @param imgSize 图片缩放规则(w-宽, h-高, s-短边, l-长边)
|
|
13
|
+
* @param options 当前调用配置;不传 ossLinks 时读取全局 configureImgUrl 配置
|
|
14
|
+
*/
|
|
15
|
+
export declare function montageImgUrl(url?: string, imgSize?: ImgSizeOptions, options?: MontageImgUrlOptions): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImgSizeOptions } from './types';
|
|
2
|
+
/** 网络变化时可配合组件刷新缩略图参数 */
|
|
3
|
+
export declare const networkKey: import('vue').Ref<number, number>;
|
|
4
|
+
/** 根据网络状况适配图片处理参数 */
|
|
5
|
+
export declare function getNetworkAdaptiveOptions(baseOptions?: ImgSizeOptions): ImgSizeOptions;
|
|
6
|
+
/** 监听网络变化,清空缓存并递增 networkKey */
|
|
7
|
+
export declare function initNetworkListener(): void;
|
package/dist/tools/index.d.ts
CHANGED
package/dist/tools/index.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D, c, g, a, b, i, d, e, m, n, f, r, t } from "../montageImgUrl-CwgYnB2h.js";
|
|
2
|
+
import { a as a2, b as b2, c as c2, d as d2, e as e2, f as f2, g as g2, h, i as i2, j, k, l, m as m2, n as n2, o, p, q, r as r2, s, t as t2, u, v, w, x, y, z, A, B, C, D as D2, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2 as a22, a3, a4, 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";
|
|
2
3
|
import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./ImageParserUtils/index.js";
|
|
3
4
|
import { s as s2 } from "../dateShortcuts-DjFC_Txu.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
D as DEFAULT_IMG_FASTEN,
|
|
7
|
+
a2 as aesDecrypt,
|
|
8
|
+
b2 as aesEncrypt,
|
|
9
|
+
c2 as allPhoneReq,
|
|
10
|
+
d2 as analyzeFileformat,
|
|
11
|
+
e2 as argFormate,
|
|
12
|
+
f2 as base64ToBlob,
|
|
13
|
+
g2 as base64ToFile,
|
|
12
14
|
h as boldPoint,
|
|
13
|
-
|
|
15
|
+
i2 as checkGoodValue,
|
|
14
16
|
j as cleanEmptyFields,
|
|
17
|
+
c as configureImgUrl,
|
|
15
18
|
k as convertImageFormat,
|
|
16
19
|
l as copyText,
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
m2 as copyWord,
|
|
21
|
+
n2 as createFileLocalUrl,
|
|
19
22
|
o as createUuid,
|
|
20
23
|
p as currentDaysLessFivedays,
|
|
21
24
|
q as debounce,
|
|
22
25
|
detectFileType,
|
|
23
|
-
|
|
26
|
+
r2 as dropperColor,
|
|
24
27
|
s as fileUrlToBase64,
|
|
25
|
-
|
|
28
|
+
t2 as filterCountryAreaCodeList,
|
|
26
29
|
u as filterMethodLowerCase,
|
|
27
30
|
v as filterSearch,
|
|
28
31
|
w as findNodePath,
|
|
@@ -33,7 +36,7 @@ export {
|
|
|
33
36
|
A as formatTimestamp,
|
|
34
37
|
B as formatXmlText,
|
|
35
38
|
C as formateDate,
|
|
36
|
-
|
|
39
|
+
D2 as formateOperateLogWord,
|
|
37
40
|
E as formateTaskTableData,
|
|
38
41
|
F as generateFpid,
|
|
39
42
|
G as generatePassword,
|
|
@@ -44,25 +47,34 @@ export {
|
|
|
44
47
|
L as getFileFolderToEnums,
|
|
45
48
|
M as getFilenameAndExtension,
|
|
46
49
|
N as getImageSizeByFile,
|
|
50
|
+
g as getImgFasten,
|
|
47
51
|
O as getMobileSubmitParams,
|
|
52
|
+
a as getNetworkAdaptiveOptions,
|
|
53
|
+
b as getOssLinks,
|
|
48
54
|
P as getQueryParams,
|
|
49
55
|
Q as getUUID,
|
|
50
56
|
R as getUrlSuffix,
|
|
51
57
|
S as getXmlKeyValue,
|
|
52
58
|
T as hasInvalidFileNameChars,
|
|
59
|
+
i as imgUrlConfigKey,
|
|
60
|
+
d as initNetworkListener,
|
|
53
61
|
U as isCmykPsd,
|
|
54
62
|
V as isFuction,
|
|
55
63
|
W as isMobileDevice,
|
|
56
64
|
X as isPdfUrl,
|
|
57
65
|
Y as isSameDay,
|
|
66
|
+
e as isUnsupportedImg,
|
|
58
67
|
Z as localUrlToFile,
|
|
59
68
|
_ as longestContinuousMatch,
|
|
60
69
|
$ as mergeColumns,
|
|
61
70
|
a0 as mergeItem,
|
|
62
71
|
a1 as mergeTaskTableData,
|
|
63
|
-
|
|
72
|
+
a22 as modelCodeReg,
|
|
64
73
|
a3 as modelListFilter,
|
|
74
|
+
m as montageImgUrl,
|
|
65
75
|
a4 as nameReg,
|
|
76
|
+
n as networkKey,
|
|
77
|
+
f as notSupportedImgTypes,
|
|
66
78
|
a5 as numberFilter,
|
|
67
79
|
a6 as numberToChinese,
|
|
68
80
|
a7 as numberToRatio,
|
|
@@ -84,12 +96,14 @@ export {
|
|
|
84
96
|
af as preventDefaultHandler,
|
|
85
97
|
ag as pwdReg,
|
|
86
98
|
ah as ratioToNumber,
|
|
99
|
+
r as replaceUnsupportedImg,
|
|
87
100
|
s2 as shortcuts,
|
|
88
101
|
ai as sleep,
|
|
89
102
|
aj as splitArray,
|
|
90
103
|
ak as strPasteJson,
|
|
91
104
|
al as stringArrayDiff,
|
|
92
105
|
am as stringToUnicodeEscape,
|
|
106
|
+
t as temuThumbUrl,
|
|
93
107
|
an as trimAndReduceSpaces,
|
|
94
108
|
ao as truncateText,
|
|
95
109
|
ap as unicodeEscapeToChars,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const DEFAULT_ORIGINAL_TOOLBAR = [
|
|
2
|
+
"zoomOut",
|
|
3
|
+
"zoomIn",
|
|
4
|
+
"anticlockwise",
|
|
5
|
+
"clockwise",
|
|
6
|
+
"reset"
|
|
7
|
+
];
|
|
8
|
+
const DEFAULT_TOOLBAR_BG_COLOR = "#606266";
|
|
9
|
+
const DEFAULT_TOOLBAR_ICON_COLOR = "#ffffff";
|
|
10
|
+
const DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL = false;
|
|
11
|
+
const DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE = true;
|
|
12
|
+
const DEFAULT_PREVIEW_TELEPORTED = true;
|
|
13
|
+
const DEFAULT_PREVIEW_INFINITE = true;
|
|
14
|
+
const DEFAULT_PREVIEW_ZOOM_RATE = 1.2;
|
|
15
|
+
const DEFAULT_PREVIEW_SCALE = 1;
|
|
16
|
+
const DEFAULT_PREVIEW_MIN_SCALE = 0.2;
|
|
17
|
+
const DEFAULT_PREVIEW_MAX_SCALE = 7;
|
|
18
|
+
const DEFAULT_PREVIEW_SHOW_PROGRESS = false;
|
|
19
|
+
export {
|
|
20
|
+
DEFAULT_ORIGINAL_TOOLBAR as D,
|
|
21
|
+
DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE as a,
|
|
22
|
+
DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL as b,
|
|
23
|
+
DEFAULT_PREVIEW_INFINITE as c,
|
|
24
|
+
DEFAULT_PREVIEW_MAX_SCALE as d,
|
|
25
|
+
DEFAULT_PREVIEW_MIN_SCALE as e,
|
|
26
|
+
DEFAULT_PREVIEW_SCALE as f,
|
|
27
|
+
DEFAULT_PREVIEW_SHOW_PROGRESS as g,
|
|
28
|
+
DEFAULT_PREVIEW_TELEPORTED as h,
|
|
29
|
+
DEFAULT_PREVIEW_ZOOM_RATE as i,
|
|
30
|
+
DEFAULT_TOOLBAR_BG_COLOR as j,
|
|
31
|
+
DEFAULT_TOOLBAR_ICON_COLOR as k
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fangguo-component",
|
|
3
|
-
"version": "1.
|
|
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
|
-
"scripts": {
|
|
29
|
-
"dev": "vite",
|
|
30
|
-
"preview": "vite preview",
|
|
31
|
-
"fmt": "oxfmt",
|
|
32
|
-
"lint": "oxlint",
|
|
33
|
-
"lint:fix": "oxlint --fix",
|
|
34
|
-
"typecheck": "vue-tsc --noEmit -p tsconfig.check-src.json",
|
|
35
|
-
"build:npm": "vite build --mode npm",
|
|
36
|
-
"docs:gen": "npx tsx scripts/gen-docs.ts",
|
|
37
|
-
"docs:dev": "vitepress dev docs",
|
|
38
|
-
"docs:build": "vitepress build docs",
|
|
39
|
-
"docs:preview": "vitepress preview docs",
|
|
40
|
-
"prepare": "husky"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"ag-psd": "^28.4.1",
|
|
44
|
-
"crypto-js": "^4.2.0",
|
|
45
|
-
"fingerprintjs2": "^2.1.4",
|
|
46
|
-
"js-sha1": "^0.7.0",
|
|
47
|
-
"lodash-unified": "^1.0.3",
|
|
48
|
-
"utif2": "^4.1.0",
|
|
49
|
-
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
50
|
-
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"@element-plus/icons-vue": "^2.3.2",
|
|
53
|
-
"element-plus": "2.13.7",
|
|
54
|
-
"sass": "^1.53.0",
|
|
55
|
-
"tailwindcss": "^3.3.1",
|
|
56
|
-
"vue": "^3.5.3"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@commitlint/cli": "^21.0.0",
|
|
60
|
-
"@commitlint/config-conventional": "^21.0.0",
|
|
61
|
-
"@element-plus/icons-vue": "^2.3.2",
|
|
62
|
-
"@types/node": "^25.6.2",
|
|
63
|
-
"@vitejs/plugin-vue": "^6.0.3",
|
|
64
|
-
"@vue/shared": "^3.5.27",
|
|
65
|
-
"@vue/tsconfig": "^0.8.1",
|
|
66
|
-
"@vueuse/core": "^14.1.0",
|
|
67
|
-
"address-parse": "^1.2.19",
|
|
68
|
-
"element-plus": "2.13.7",
|
|
69
|
-
"husky": "^9.1.7",
|
|
70
|
-
"lint-staged": "^17.0.4",
|
|
71
|
-
"lodash-es": "^4.18.1",
|
|
72
|
-
"oxfmt": "^0.27.0",
|
|
73
|
-
"oxlint": "^1.42.0",
|
|
74
|
-
"sass": "^1.53.0",
|
|
75
|
-
"tailwindcss": "^3.3.1",
|
|
76
|
-
"typescript": "^5.9.3",
|
|
77
|
-
"unplugin-auto-import": "^21.0.0",
|
|
78
|
-
"unplugin-vue-components": "^31.0.0",
|
|
79
|
-
"vite": "^7.3.1",
|
|
80
|
-
"vite-plugin-dts": "4.5.4",
|
|
81
|
-
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
82
|
-
"vite-plugin-node-polyfills": "^0.26.0",
|
|
83
|
-
"vitepress": "^1.6.4",
|
|
84
|
-
"vitepress-demo-plugin": "^1.5.1",
|
|
85
|
-
"vue": "^3.5.3",
|
|
86
|
-
"vue-tsc": "^3.2.4",
|
|
87
|
-
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
88
|
-
"@vitejs/plugin-vue-jsx": "^5.1.1"
|
|
89
|
-
},
|
|
90
|
-
"lint-staged": {
|
|
91
|
-
"*.{ts,vue,js}": "node scripts/lint-staged-oxlint.mjs"
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "fangguo-component",
|
|
3
|
+
"version": "1.2.0",
|
|
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
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"fmt": "oxfmt",
|
|
32
|
+
"lint": "oxlint",
|
|
33
|
+
"lint:fix": "oxlint --fix",
|
|
34
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.check-src.json",
|
|
35
|
+
"build:npm": "vite build --mode npm",
|
|
36
|
+
"docs:gen": "npx tsx scripts/gen-docs.ts",
|
|
37
|
+
"docs:dev": "vitepress dev docs",
|
|
38
|
+
"docs:build": "vitepress build docs",
|
|
39
|
+
"docs:preview": "vitepress preview docs",
|
|
40
|
+
"prepare": "husky"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"ag-psd": "^28.4.1",
|
|
44
|
+
"crypto-js": "^4.2.0",
|
|
45
|
+
"fingerprintjs2": "^2.1.4",
|
|
46
|
+
"js-sha1": "^0.7.0",
|
|
47
|
+
"lodash-unified": "^1.0.3",
|
|
48
|
+
"utif2": "^4.1.0",
|
|
49
|
+
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
53
|
+
"element-plus": "2.13.7",
|
|
54
|
+
"sass": "^1.53.0",
|
|
55
|
+
"tailwindcss": "^3.3.1",
|
|
56
|
+
"vue": "^3.5.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@commitlint/cli": "^21.0.0",
|
|
60
|
+
"@commitlint/config-conventional": "^21.0.0",
|
|
61
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
62
|
+
"@types/node": "^25.6.2",
|
|
63
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
64
|
+
"@vue/shared": "^3.5.27",
|
|
65
|
+
"@vue/tsconfig": "^0.8.1",
|
|
66
|
+
"@vueuse/core": "^14.1.0",
|
|
67
|
+
"address-parse": "^1.2.19",
|
|
68
|
+
"element-plus": "2.13.7",
|
|
69
|
+
"husky": "^9.1.7",
|
|
70
|
+
"lint-staged": "^17.0.4",
|
|
71
|
+
"lodash-es": "^4.18.1",
|
|
72
|
+
"oxfmt": "^0.27.0",
|
|
73
|
+
"oxlint": "^1.42.0",
|
|
74
|
+
"sass": "^1.53.0",
|
|
75
|
+
"tailwindcss": "^3.3.1",
|
|
76
|
+
"typescript": "^5.9.3",
|
|
77
|
+
"unplugin-auto-import": "^21.0.0",
|
|
78
|
+
"unplugin-vue-components": "^31.0.0",
|
|
79
|
+
"vite": "^7.3.1",
|
|
80
|
+
"vite-plugin-dts": "4.5.4",
|
|
81
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
82
|
+
"vite-plugin-node-polyfills": "^0.26.0",
|
|
83
|
+
"vitepress": "^1.6.4",
|
|
84
|
+
"vitepress-demo-plugin": "^1.5.1",
|
|
85
|
+
"vue": "^3.5.3",
|
|
86
|
+
"vue-tsc": "^3.2.4",
|
|
87
|
+
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
88
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1"
|
|
89
|
+
},
|
|
90
|
+
"lint-staged": {
|
|
91
|
+
"*.{ts,vue,js}": "node scripts/lint-staged-oxlint.mjs"
|
|
92
|
+
}
|
|
93
93
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ElPopover } from "element-plus/es";
|
|
2
|
-
import { defineComponent, ref, openBlock, createElementBlock, renderSlot, createBlock, normalizeProps, mergeProps, withCtx } from "vue";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "LazyPopover",
|
|
5
|
-
props: {
|
|
6
|
-
props: {
|
|
7
|
-
type: Object,
|
|
8
|
-
default: () => ({})
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const show = ref(false);
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
const _component_el_popover = ElPopover;
|
|
15
|
-
return !show.value ? (openBlock(), createElementBlock("span", {
|
|
16
|
-
key: 0,
|
|
17
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => show.value = true)
|
|
18
|
-
}, [
|
|
19
|
-
renderSlot(_ctx.$slots, "reference")
|
|
20
|
-
], 32)) : (openBlock(), createBlock(_component_el_popover, normalizeProps(mergeProps({ key: 1 }, __props.props)), {
|
|
21
|
-
reference: withCtx(() => [
|
|
22
|
-
renderSlot(_ctx.$slots, "reference")
|
|
23
|
-
]),
|
|
24
|
-
default: withCtx(() => [
|
|
25
|
-
renderSlot(_ctx.$slots, "default")
|
|
26
|
-
]),
|
|
27
|
-
_: 3
|
|
28
|
-
}, 16));
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
_sfc_main as _
|
|
34
|
-
};
|