cloud-web-corejs 1.0.310 → 1.0.311

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.310",
4
+ "version": "1.0.311",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "check:package-resources": "node build/check-package-resources.js",
@@ -91,18 +91,10 @@ import ExcelExport from "@base/components/excelExport/index.js";
91
91
 
92
92
  Vue.use(ExcelExport);
93
93
 
94
- // 首屏优化:excelImport 链上有 xlsx(~430KB min),改为首次调用时才加载(utils/lazyPlugin)
95
- import { lazyPrototypePlugin } from "@base/utils/lazyPlugin";
96
-
97
- Vue.use(
98
- lazyPrototypePlugin(
99
- () =>
100
- import(
101
- /* webpackChunkName: "excel-import" */ "@base/components/excelImport/index.js"
102
- ),
103
- [{ name: "$excelImport" }, { name: "$downloadImportTemplate" }]
104
- )
105
- );
94
+ // 暂停 lazyPrototypePlugin,改回启动时同步注册
95
+ import ExcelImport from "@base/components/excelImport/index.js";
96
+
97
+ Vue.use(ExcelImport);
106
98
 
107
99
  import ConfirmDialog from "@base/components/confirmDialog/index.js";
108
100
 
@@ -124,19 +116,9 @@ import permission from "@base/directive/permission";
124
116
 
125
117
  Vue.use(permission);
126
118
 
127
- // 首屏优化:VabUpload 链上有 esdk-obs-browserjs(OBS SDK),改为首次调用时才加载
128
- Vue.use(
129
- lazyPrototypePlugin(
130
- () =>
131
- import(
132
- /* webpackChunkName: "vab-upload" */ "@base/components/VabUpload/index.js"
133
- ),
134
- [
135
- { name: "$baseUpload", methods: ["open", "upload"] },
136
- { name: "$openFileLibraryDialog" },
137
- ]
138
- )
139
- );
119
+ import VabUpload from "@base/components/VabUpload/index.js";
120
+
121
+ Vue.use(VabUpload);
140
122
 
141
123
  Vue.component("baseUpload", () =>
142
124
  import("@base/components/VabUpload/view.vue")
@@ -237,26 +219,13 @@ Vue.component("BaseTextarea", () =>
237
219
  import("@base/components/base-textarea/index.vue")
238
220
  );
239
221
 
240
- // 首屏优化:jsonImport/langImport 链上同样有 xlsx,改为首次调用时才加载
241
- Vue.use(
242
- lazyPrototypePlugin(
243
- () =>
244
- import(
245
- /* webpackChunkName: "json-import" */ "@base/components/jsonImport/index.js"
246
- ),
247
- [{ name: "$jsonImport" }, { name: "$jsonExport" }]
248
- )
249
- );
222
+ import JsonImport from "@base/components/jsonImport/index.js";
250
223
 
251
- Vue.use(
252
- lazyPrototypePlugin(
253
- () =>
254
- import(
255
- /* webpackChunkName: "lang-import" */ "@base/components/langImport/index.js"
256
- ),
257
- [{ name: "$langImport" }]
258
- )
259
- );
224
+ Vue.use(JsonImport);
225
+
226
+ import LangImport from "@base/components/langImport/index.js";
227
+
228
+ Vue.use(LangImport);
260
229
 
261
230
  //vform
262
231
  // import '@base/components/xform/utils/directive'