@kengic/vue 0.30.1-beta.85 → 0.30.1-beta.87

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.
@@ -1,5 +1,3 @@
1
- @import '@thymine/xunee/dist/xunee.css';
2
-
3
1
  .kg-canvas {
4
2
  display: block;
5
3
  position: relative;
@@ -3,6 +3,7 @@ import { Q } from '@thymine/xunee';
3
3
  import { forEach } from 'lodash-es';
4
4
  import { defineComponent, ExtractPropTypes, onMounted, PropType, provide, ref } from 'vue';
5
5
  import './KgCanvas.css';
6
+ import '@thymine/xunee/dist/xunee.css';
6
7
  import { KG } from '../../model';
7
8
  import { type IKgCanvasContextMenu, KgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvas.ContextMenu';
8
9
  import {
@@ -1,14 +1,14 @@
1
1
  import { Dropdown, Menu } from 'ant-design-vue';
2
2
  import { computed, defineComponent, ExtractPropTypes, ref, unref, watchEffect } from 'vue';
3
3
  import './KgLayoutHeader.less';
4
- import cs_CZ from '../../asset/flag/cs_CZ.png';
5
- import en from '../../asset/flag/en.png';
6
- import es_ES from '../../asset/flag/es_ES.png';
7
- import fr_FR from '../../asset/flag/fr_FR.png';
8
- import km_KH from '../../asset/flag/km_KH.png';
9
- import ko_KR from '../../asset/flag/ko_KR.png';
10
- import vi_VN from '../../asset/flag/vi_VN.png';
11
- import zh_CN from '../../asset/flag/zh_CN.png';
4
+ import cs_CZ from '../../style/flag/cs_CZ.png';
5
+ import en from '../../style/flag/en.png';
6
+ import es_ES from '../../style/flag/es_ES.png';
7
+ import fr_FR from '../../style/flag/fr_FR.png';
8
+ import km_KH from '../../style/flag/km_KH.png';
9
+ import ko_KR from '../../style/flag/ko_KR.png';
10
+ import vi_VN from '../../style/flag/vi_VN.png';
11
+ import zh_CN from '../../style/flag/zh_CN.png';
12
12
  import { localeList } from '../../i18n';
13
13
  import { DropMenu, LocaleType, useLocale } from '../../project';
14
14
 
@@ -5,8 +5,8 @@ import { ColumnsType } from 'ant-design-vue/es/table';
5
5
  import { computed, defineComponent, ExtractPropTypes, onMounted, PropType, reactive, ref, watch } from 'vue';
6
6
  import { API } from '../../api';
7
7
  import { SysUserWarehouseDTO, WarehouseDTO } from '../../api/WMS/models';
8
- import IMG_WAREHOUSE_000000 from '../../asset/images/warehouse.000000.svg';
9
- import IMG_WAREHOUSE_1890ff from '../../asset/images/warehouse.1890ff.svg';
8
+ import IMG_WAREHOUSE_000000 from '../../style/images/warehouse.000000.svg';
9
+ import IMG_WAREHOUSE_1890ff from '../../style/images/warehouse.1890ff.svg';
10
10
  import { pinia, useKg } from '../../config';
11
11
  import { KgUtil } from '../../util';
12
12
  import { KgModal } from '../KgModal';
package/config/index.ts CHANGED
@@ -31,9 +31,9 @@ import viVN from 'vxe-table/lib/locale/lang/vi-VN'; // 越南语
31
31
  import zhHK from 'vxe-table/lib/locale/lang/zh-HK'; // 中文(香港)
32
32
  import zhMO from 'vxe-table/lib/locale/lang/zh-MO'; // 中文(澳门)
33
33
  import zhTW from 'vxe-table/lib/locale/lang/zh-TW'; // 中文(台湾)
34
- import { version } from '../../package.json';
35
- import { KG } from '../model';
36
34
  import { kgConfigLocale } from '../i18n';
35
+ import { KG } from '../model';
36
+ import { version } from '../package.json';
37
37
  import { LocaleType } from '../project/types/config';
38
38
  import { kgConfigHttpClient } from '../service';
39
39
  import { KgUtil } from '../util';
@@ -163,7 +163,7 @@ let isCancelReload = false;
163
163
  setTimeout(() => {
164
164
  const kg = useKg();
165
165
 
166
- window.setInterval(async () => {
166
+ window.setInterval(async () => {
167
167
  if (isCancelReload) {
168
168
  return;
169
169
  }
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import './asset/index.less';
1
+ import './style/index.less';
2
2
 
3
3
  export * from '@kengic/core.react';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.30.1-beta.85",
3
+ "version": "0.30.1-beta.87",
4
4
  "scripts": {
5
5
  "postinstall": "node bin/postinstall.mjs"
6
6
  },
@@ -31,7 +31,6 @@
31
31
  "@types/semver": "7.5.3",
32
32
  "@types/store": "2.0.3",
33
33
  "@types/uuid": "10.0.0",
34
- "@vitejs/plugin-legacy": "2.3.1",
35
34
  "@vitejs/plugin-vue": "3.2.0",
36
35
  "@vitejs/plugin-vue-jsx": "1.3.10",
37
36
  "@vueuse/core": "8.9.4",
@@ -1,4 +1,3 @@
1
- import legacy from '@vitejs/plugin-legacy';
2
1
  import vue from '@vitejs/plugin-vue';
3
2
  import vueJsx from '@vitejs/plugin-vue-jsx';
4
3
  import { PluginOption } from 'vite';
@@ -18,7 +17,7 @@ import { configThemePlugin } from './theme';
18
17
  import { configVisualizerConfig } from './visualizer';
19
18
 
20
19
  export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
21
- const { VITE_USE_IMAGEMIN, VITE_LEGACY, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
20
+ const { VITE_USE_IMAGEMIN, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
22
21
 
23
22
  const vitePlugins: (PluginOption | PluginOption[])[] = [
24
23
  vue({
@@ -47,9 +46,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
47
46
  // vite-plugin-windicss
48
47
  vitePlugins.push(windiCSS());
49
48
 
50
- // @vitejs/plugin-legacy
51
- VITE_LEGACY && isBuild && vitePlugins.push(legacy());
52
-
53
49
  // vite-plugin-html
54
50
  vitePlugins.push(configHtmlPlugin(viteEnv, isBuild));
55
51
 
@@ -51,7 +51,6 @@ declare global {
51
51
  VITE_DROP_CONSOLE: boolean;
52
52
  VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
53
53
  VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
54
- VITE_LEGACY: boolean;
55
54
  VITE_USE_IMAGEMIN: boolean;
56
55
  VITE_GENERATE_UI: string;
57
56
  }
@@ -1,19 +1,19 @@
1
1
  // 覆盖 ant-design 的样式
2
2
 
3
- @import 'ant-design-vue/lib/button/style/index.css';
4
- @import 'ant-design-vue/lib/menu/style/index.css';
5
- @import 'ant-design-vue/lib/pagination/style/index.css';
6
- @import 'ant-design-vue/lib/select/style/index.css';
7
- @import 'ant-design-vue/lib/spin/style/index.css';
8
- @import 'ant-design-vue/lib/form/style/index.css';
9
- @import 'ant-design-vue/lib/input/style/index.css';
10
- @import 'ant-design-vue/lib/input-number/style/index.css';
11
- @import 'ant-design-vue/lib/switch/style/index.css';
12
- @import 'ant-design-vue/lib/checkbox/style/index.css';
13
- @import 'ant-design-vue/lib/tooltip/style/index.css';
14
- @import 'ant-design-vue/lib/notification/style/index.css';
15
- @import 'ant-design-vue/lib/message/style/index.css';
16
- @import 'ant-design-vue/lib/modal/style/index.css';
3
+ @import '../../../ant-design-vue/lib/button/style/index.css';
4
+ @import '../../../ant-design-vue/lib/menu/style/index.css';
5
+ @import '../../../ant-design-vue/lib/pagination/style/index.css';
6
+ @import '../../../ant-design-vue/lib/select/style/index.css';
7
+ @import '../../../ant-design-vue/lib/spin/style/index.css';
8
+ @import '../../../ant-design-vue/lib/form/style/index.css';
9
+ @import '../../../ant-design-vue/lib/input/style/index.css';
10
+ @import '../../../ant-design-vue/lib/input-number/style/index.css';
11
+ @import '../../../ant-design-vue/lib/switch/style/index.css';
12
+ @import '../../../ant-design-vue/lib/checkbox/style/index.css';
13
+ @import '../../../ant-design-vue/lib/tooltip/style/index.css';
14
+ @import '../../../ant-design-vue/lib/notification/style/index.css';
15
+ @import '../../../ant-design-vue/lib/message/style/index.css';
16
+ @import '../../../ant-design-vue/lib/modal/style/index.css';
17
17
  @import 'var.less';
18
18
 
19
19
  .ant-input,
@@ -1,4 +1,4 @@
1
- @import 'element-plus/dist/index.css';
1
+ @import '../../../element-plus/dist/index.css';
2
2
 
3
3
  .el-select__caret,
4
4
  .el-menu-item,
@@ -2,9 +2,9 @@
2
2
 
3
3
  @import 'var.less';
4
4
  @import 'ant.less';
5
- @import 'vxe.less';
6
- @import 'jeecg.less';
7
5
  @import 'element-plus.css';
6
+ @import 'jeecg.less';
7
+ @import 'vxe.less';
8
8
 
9
9
  // 隐藏
10
10
  .kg-invisible {
@@ -1,5 +1,5 @@
1
- @import 'vxe-table/lib/style.css';
2
- @import 'vxe-pc-ui/lib/style.css';
1
+ @import '../../../vxe-table/lib/style.css';
2
+ @import '../../../vxe-pc-ui/lib/style.css';
3
3
 
4
4
  .vxe-loading .vxe-loading--text {
5
5
  display: none;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes