@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.
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-P4CX6I4J.js";
7
7
 
8
8
  // package.json
9
- var version = "0.0.12";
9
+ var version = "0.0.14";
10
10
 
11
11
  // src/main/banner/banner-abstract.ts
12
12
  var BannerAbstract = class {
@@ -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-K6EBDSD5.js";
47
+ } from "../../chunk-files/chunk-IHTLOOPM.js";
48
48
  import "../../chunk-files/chunk-YLZRRUY7.js";
49
49
  import {
50
50
  defineAppConfig,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BannerAbstract,
3
3
  BannerManager
4
- } from "../../chunk-files/chunk-K6EBDSD5.js";
4
+ } from "../../chunk-files/chunk-IHTLOOPM.js";
5
5
  import "../../chunk-files/chunk-YLZRRUY7.js";
6
6
  import "../../chunk-files/chunk-P4CX6I4J.js";
7
7
  export {
@@ -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 { provideGlobalConfig } from "element-plus";
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
- provideGlobalConfig({ locale: zhCn }, app, true);
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-xi/xion",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "description": "Electron Vite Vue3 TypeScript framework.",
6
6
  "exports": {