@e-xi/xion 0.0.12 → 0.0.14
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/dist/main/app/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import "../../chunk-files/chunk-J34MOWJP.js";
|
|
|
44
44
|
import "../../chunk-files/chunk-B7DTBTWQ.js";
|
|
45
45
|
import {
|
|
46
46
|
BannerManager
|
|
47
|
-
} from "../../chunk-files/chunk-
|
|
47
|
+
} from "../../chunk-files/chunk-IHTLOOPM.js";
|
|
48
48
|
import "../../chunk-files/chunk-YLZRRUY7.js";
|
|
49
49
|
import {
|
|
50
50
|
defineAppConfig,
|
|
@@ -42,7 +42,7 @@ function isIpcInvokeError(error) {
|
|
|
42
42
|
import dayjs from "dayjs";
|
|
43
43
|
import timezone from "dayjs/plugin/timezone";
|
|
44
44
|
import utc from "dayjs/plugin/utc";
|
|
45
|
-
import
|
|
45
|
+
import ElementPlus from "element-plus";
|
|
46
46
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
47
47
|
import { createPinia } from "pinia";
|
|
48
48
|
import { createApp, nextTick } from "vue";
|
|
@@ -125,7 +125,7 @@ async function BootstrapRenderer(options) {
|
|
|
125
125
|
installIpcErrorHandler(app);
|
|
126
126
|
const pinia = createPinia();
|
|
127
127
|
app.use(pinia);
|
|
128
|
-
|
|
128
|
+
app.use(ElementPlus, { locale: zhCn });
|
|
129
129
|
if (mergedOptions.contextMenuOptions !== false) {
|
|
130
130
|
app.use(XoContextMenuPlugin, mergedOptions.contextMenuOptions);
|
|
131
131
|
}
|
|
@@ -2163,18 +2163,22 @@ var defaultConfig3 = (options) => {
|
|
|
2163
2163
|
renderer: {
|
|
2164
2164
|
root: path3.resolve(options.rootDir, "renderer"),
|
|
2165
2165
|
optimizeDeps: {
|
|
2166
|
+
// Xion 渲染入口必须共享业务项目的 Vue 和 Pinia 运行时
|
|
2167
|
+
exclude: [
|
|
2168
|
+
"@e-xi/xion"
|
|
2169
|
+
],
|
|
2166
2170
|
include: [
|
|
2167
2171
|
"dayjs",
|
|
2168
|
-
"dayjs/plugin/advancedFormat",
|
|
2169
|
-
"dayjs/plugin/customParseFormat",
|
|
2170
|
-
"dayjs/plugin/dayOfYear",
|
|
2171
|
-
"dayjs/plugin/isSameOrAfter",
|
|
2172
|
-
"dayjs/plugin/isSameOrBefore",
|
|
2173
|
-
"dayjs/plugin/localeData",
|
|
2174
|
-
"dayjs/plugin/timezone",
|
|
2175
|
-
"dayjs/plugin/utc",
|
|
2176
|
-
"dayjs/plugin/weekOfYear",
|
|
2177
|
-
"dayjs/plugin/weekYear"
|
|
2172
|
+
"dayjs/plugin/advancedFormat.js",
|
|
2173
|
+
"dayjs/plugin/customParseFormat.js",
|
|
2174
|
+
"dayjs/plugin/dayOfYear.js",
|
|
2175
|
+
"dayjs/plugin/isSameOrAfter.js",
|
|
2176
|
+
"dayjs/plugin/isSameOrBefore.js",
|
|
2177
|
+
"dayjs/plugin/localeData.js",
|
|
2178
|
+
"dayjs/plugin/timezone.js",
|
|
2179
|
+
"dayjs/plugin/utc.js",
|
|
2180
|
+
"dayjs/plugin/weekOfYear.js",
|
|
2181
|
+
"dayjs/plugin/weekYear.js"
|
|
2178
2182
|
]
|
|
2179
2183
|
},
|
|
2180
2184
|
resolve: {
|