vue3-components-plus 3.0.10

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/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "vue3-components-plus",
3
+ "version": "3.0.10",
4
+ "private": false,
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "vue3-components-plus.d.ts"
9
+ ],
10
+ "main": "./dist/vue3-components-plus.umd.cjs",
11
+ "module": "./dist/vue3-components-plus.js",
12
+ "types": "./vue3-components-plus.d.ts",
13
+ "exports": {
14
+ "./dist/vue3-components-plus.css": "./dist/vue3-components-plus.css",
15
+ "./css": "./dist/vue3-components-plus.css",
16
+ "./types": "./vue3-components-plus.d.ts",
17
+ "./api/types": "./dist/api/types.d.ts",
18
+ ".": {
19
+ "types": "./vue3-components-plus.d.ts",
20
+ "import": "./dist/vue3-components-plus.js",
21
+ "require": "./dist/vue3-components-plus.umd.cjs"
22
+ }
23
+ },
24
+ "publishConfig": {
25
+ "ps": "https://registry.npmjs.org/ 为共享仓库地址; http://[ip]:[port]/repository/npm-hosted/ 为Nexus私仓地址",
26
+ "registry": "https://registry.npmjs.org/",
27
+ "access": "public"
28
+ },
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "vite build",
32
+ "build-project": "vite build --config vite.project.config.ts",
33
+ "preview": "vite preview",
34
+ "build-only": "vite build",
35
+ "type-check": "vue-tsc --build",
36
+ "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
37
+ "lint:eslint": "eslint . --fix",
38
+ "lint": "run-s lint:*",
39
+ "format": "prettier --write src/ packages/",
40
+ "test": "vitest",
41
+ "test:run": "vitest run",
42
+ "test:report": "vitest run --coverage"
43
+ },
44
+ "dependencies": {
45
+ "docx-preview": "^0.3.7",
46
+ "konva": "^10.0.2",
47
+ "vue-konva": "^3.2.6",
48
+ "vue3-markdown": "^1.2.17",
49
+ "vue3-pdf-app": "^1.0.3",
50
+ "x-data-spreadsheet": "^1.1.9",
51
+ "xlsx": "^0.18.5"
52
+ },
53
+ "devDependencies": {
54
+ "@tsconfig/node22": "^22.0.1",
55
+ "@types/node": "^22.14.0",
56
+ "@vitejs/plugin-vue": "^5.2.3",
57
+ "@vitest/coverage-v8": "3.2.4",
58
+ "@vue/eslint-config-prettier": "^10.2.0",
59
+ "@vue/eslint-config-typescript": "^14.5.0",
60
+ "@vue/tsconfig": "^0.7.0",
61
+ "eslint": "^9.22.0",
62
+ "eslint-plugin-oxlint": "^0.16.0",
63
+ "eslint-plugin-vue": "~10.0.0",
64
+ "jiti": "^2.4.2",
65
+ "less": "^4.4.0",
66
+ "npm-run-all2": "^7.0.2",
67
+ "oxlint": "^0.16.0",
68
+ "prettier": "3.5.3",
69
+ "rollup-plugin-copy": "^3.5.0",
70
+ "sass": "^1.87.0",
71
+ "sass-loader": "^16.0.5",
72
+ "terser": "^5.39.0",
73
+ "typescript": "~5.8.0",
74
+ "vite": "^6.2.4",
75
+ "vue-tsc": "^2.2.8"
76
+ },
77
+ "peerDependencies": {
78
+ "@element-plus/icons-vue": "^2.3.1",
79
+ "@types/vue": "^2.0.0",
80
+ "@vue/test-utils": "^2.4.6",
81
+ "axios": "^1.9.0",
82
+ "element-plus": "^2.10.5",
83
+ "jsdom": "^27.0.0",
84
+ "lodash-es": "^4.17.21",
85
+ "pinia": "^3.0.1",
86
+ "qs": "^6.14.0",
87
+ "sm-crypto": "^0.3.13",
88
+ "vitest": "^3.2.4",
89
+ "vue": "^3.5.13",
90
+ "vue-router": "^4.5.0"
91
+ }
92
+ }
@@ -0,0 +1,231 @@
1
+ // 全局类型定义文件,用于ESLint校验,放开所有限制
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
8
+
9
+ declare module '*.css' {
10
+ const content: Record<string, string>
11
+ export default content
12
+ }
13
+
14
+ declare module '*.scss' {
15
+ const content: Record<string, string>
16
+ export default content
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const content: Record<string, string>
21
+ export default content
22
+ }
23
+
24
+ declare module '*.json' {
25
+ const content: Record<string, any>
26
+ export default content
27
+ }
28
+
29
+ declare module '*.png' {
30
+ const content: string
31
+ export default content
32
+ }
33
+
34
+ declare module '*.jpg' {
35
+ const content: string
36
+ export default content
37
+ }
38
+
39
+ declare module '*.jpeg' {
40
+ const content: string
41
+ export default content
42
+ }
43
+
44
+ declare module '*.gif' {
45
+ const content: string
46
+ export default content
47
+ }
48
+
49
+ declare module '*.svg' {
50
+ const content: string
51
+ export default content
52
+ }
53
+
54
+ declare module '*.ico' {
55
+ const content: string
56
+ export default content
57
+ }
58
+
59
+ declare module '*.woff' {
60
+ const content: string
61
+ export default content
62
+ }
63
+
64
+ declare module '*.woff2' {
65
+ const content: string
66
+ export default content
67
+ }
68
+
69
+ declare module '*.ttf' {
70
+ const content: string
71
+ export default content
72
+ }
73
+
74
+ declare module '*.eot' {
75
+ const content: string
76
+ export default content
77
+ }
78
+
79
+ declare module '*.wasm' {
80
+ const content: any
81
+ export default content
82
+ }
83
+
84
+ // 引用HTTP请求相关类型定义
85
+ // 注意:这些类型已在 packages/api/types.d.ts 中详细定义
86
+
87
+ // 矩阵组件库类型声明
88
+ declare module 'vue3-components-plus' {
89
+ import type { App } from 'vue'
90
+
91
+ const components: {
92
+ NsVideo: any
93
+ NsExcel: any
94
+ NsPdf: any
95
+ NsWord: any
96
+ NsOffice: any
97
+ NsForm: any
98
+ NsFormTitle: any
99
+ NsSaturationLine: any
100
+ NsSaturationline: any
101
+ NsImage: any
102
+ NsImg: any
103
+ NsMD: any
104
+ }
105
+
106
+ const install: (app: App, params?: any) => void
107
+
108
+ const NsDialog: any
109
+
110
+ const sacle_x: any
111
+ const sacle_y: any
112
+ const autoScaleInit: any
113
+
114
+ const loadAccess: any
115
+ const removeDynamicAccess: any
116
+
117
+ const getEncryptSm2: any
118
+
119
+ /** GET请求函数 */
120
+ const get: <T = any>(
121
+ url: string,
122
+ params?: Record<string, any>,
123
+ base?: string,
124
+ customConfig?: HttpCustomConfig,
125
+ errorCallback?: ErrorCallback
126
+ ) => Promise<T>
127
+
128
+ /** POST请求函数 */
129
+ const post: <T = any>(
130
+ url: string,
131
+ data?: any,
132
+ base?: string,
133
+ customConfig?: HttpCustomConfig,
134
+ errorCallback?: ErrorCallback
135
+ ) => Promise<T>
136
+
137
+ /** PUT请求函数 */
138
+ const put: <T = any>(
139
+ url: string,
140
+ data?: any,
141
+ base?: string,
142
+ customConfig?: HttpCustomConfig,
143
+ errorCallback?: ErrorCallback
144
+ ) => Promise<T>
145
+
146
+ /** DELETE请求函数 */
147
+ const del: <T = any>(
148
+ url: string,
149
+ data?: any,
150
+ base?: string,
151
+ customConfig?: HttpCustomConfig,
152
+ errorCallback?: ErrorCallback
153
+ ) => Promise<T>
154
+
155
+ /** 下载文件函数 */
156
+ const download: (
157
+ url: string,
158
+ filename?: string,
159
+ method?: string,
160
+ data?: any,
161
+ base?: string,
162
+ customConfig?: HttpCustomConfig,
163
+ errorCallback?: ErrorCallback
164
+ ) => Promise<any>
165
+
166
+ /** 下载本地文件函数 */
167
+ const downLoadLocalFile: (
168
+ path: string,
169
+ name: string,
170
+ errorCallback?: ErrorCallback
171
+ ) => void
172
+
173
+ /** 获取Token信息函数 */
174
+ const getTokenInfo: () => Record<string, string>
175
+
176
+ export default {
177
+ install,
178
+ ...components
179
+ }
180
+
181
+ export {
182
+ install,
183
+ components,
184
+ NsDialog,
185
+ sacle_x,
186
+ sacle_y,
187
+ autoScaleInit,
188
+ loadAccess,
189
+ removeDynamicAccess,
190
+ getEncryptSm2,
191
+ post,
192
+ get,
193
+ put,
194
+ del,
195
+ download,
196
+ downLoadLocalFile,
197
+ getTokenInfo,
198
+ NsVideo,
199
+ NsExcel,
200
+ NsPdf,
201
+ NsWord,
202
+ NsOffice,
203
+ NsForm,
204
+ NsFormTitle,
205
+ NsSaturationLine,
206
+ NsSaturationline,
207
+ NsImage,
208
+ NsImg,
209
+ NsMD
210
+ }
211
+ }
212
+
213
+ // 声明全局变量
214
+ declare global {
215
+ interface Window {
216
+ [key: string]: any
217
+ }
218
+
219
+ interface NodeRequire {
220
+ context: any
221
+ }
222
+
223
+ const process: {
224
+ env: {
225
+ [key: string]: string | undefined
226
+ }
227
+ }
228
+ }
229
+
230
+ // 允许使用任意类型
231
+ declare type AnyType = any