Skip to content

Commit b92b8a3

Browse files
committedApr 19, 2021
fix(tabs): fix the problem that other functions are invalid when the tab is closed, close #376
1 parent 4f0c6fb commit b92b8a3

File tree

9 files changed

+28
-16
lines changed

9 files changed

+28
-16
lines changed
 

‎CHANGELOG.zh_CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### 🐛 Bug Fixes
1414

1515
- 修复黑暗主题刷新闪烁的白屏
16+
- 修复标签页关闭其他功能失效问题
1617

1718
## 2.3.0 (2021-04-10)
1819

‎build/vite/plugin/hmr.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ export function configHmrPlugin(): Plugin {
1111
name: 'singleHMR',
1212
handleHotUpdate({ modules, file }) {
1313
if (file.match(/xml$/)) return [];
14+
1415
modules.forEach((m) => {
1516
m.importedModules = new Set();
1617
m.importers = new Set();
1718
});
19+
1820
return modules;
1921
},
2022
};

‎build/vite/plugin/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { configThemePlugin } from './theme';
1616
import { configImageminPlugin } from './imagemin';
1717
import { configWindiCssPlugin } from './windicss';
1818
import { configSvgIconsPlugin } from './svgSprite';
19-
import { configHmrPlugin } from './hmr';
19+
// import { configHmrPlugin } from './hmr';
2020

2121
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
2222
const {
@@ -35,7 +35,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
3535
];
3636

3737
// TODO
38-
!isBuild && vitePlugins.push(configHmrPlugin());
38+
// !isBuild && vitePlugins.push(configHmrPlugin());
3939

4040
// @vitejs/plugin-legacy
4141
VITE_LEGACY && isBuild && vitePlugins.push(legacy());

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
},
3434
"dependencies": {
3535
"@iconify/iconify": "^2.0.0-rc.6",
36-
"@logicflow/core": "^0.3.0",
37-
"@logicflow/extension": "^0.3.0",
36+
"@logicflow/core": "^0.3.1",
37+
"@logicflow/extension": "^0.3.1",
3838
"@vueuse/core": "^4.8.2",
3939
"@zxcvbn-ts/core": "^0.3.0",
4040
"ant-design-vue": "^2.1.2",

‎src/components/ContextMenu/src/index.less

+5
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@
5757

5858
.item-style();
5959
}
60+
61+
.ant-menu-submenu-title,
62+
.ant-menu-item {
63+
padding: 0 !important;
64+
}
6065
}

‎src/components/ContextMenu/src/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const prefixCls = 'context-menu';
1515
const ItemContent: FunctionalComponent<ItemContentProps> = (props) => {
1616
const { item } = props;
1717
return (
18-
<span style="display: inline-block; width: 100%;" onClick={props.handler.bind(null, item)}>
18+
<span
19+
style="display: inline-block; width: 100%; "
20+
class="px-4"
21+
onClick={props.handler.bind(null, item)}
22+
>
1923
{props.showIcon && item.icon && <Icon class="mr-2" icon={item.icon} />}
2024
<span>{item.label}</span>
2125
</span>

‎src/store/modules/multipleTab.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export const useMultipleTabStore = defineStore({
267267
if (path !== route.fullPath) {
268268
const closeItem = this.tabList.find((item) => item.path === path);
269269
if (!closeItem) {
270-
return;
270+
continue;
271271
}
272272
const affix = closeItem?.meta?.affix ?? false;
273273
if (!affix) {

‎src/views/sys/about/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex justify-between items-center">
55
<span class="flex-1">
66
<a :href="GITHUB_URL" target="_blank">{{ name }}</a>
7-
是一个基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript
7+
是一个基于Vue3.01、Vite、 Ant-Design-Vue 、TypeScript
88
的后台解决方案,目标是为中大型项目开发,提供现成的开箱解决方案及丰富的示例,原则上不会限制任何代码用于商用。
99
</span>
1010
</div>

‎yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1151,17 +1151,17 @@
11511151
resolved "https://registry.npmjs.org/@intlify/shared/-/shared-9.0.0.tgz#d85b3b5f9033f377c5cf2202cf2459aa49948f36"
11521152
integrity sha512-0r4v7dnY8g/Jfx2swUWy2GyfH/WvIpWvkU4OIupvxDTWiE8RhcpbOCVvqpVh/xGi0proHQ/r2Dhc0QSItUsfDQ==
11531153

1154-
"@logicflow/core@^0.3.0":
1155-
version "0.3.0"
1156-
resolved "https://registry.yarnpkg.com/@logicflow/core/-/core-0.3.0.tgz#910ca7865487fbe6c45a450d13627875c6965bf4"
1157-
integrity sha512-FPRTuj0y6Yny+YDZ+faTzA8pZyouEWX1Vr6rH91wJR0J3NOHgb7pV/TJoHSosavFuyyw87nLw9UsyUUgHKVV+A==
1154+
"@logicflow/core@^0.3.1":
1155+
version "0.3.1"
1156+
resolved "https://registry.npmjs.org/@logicflow/core/-/core-0.3.1.tgz#183402506c3113f391fb5415d3b3de9093fa843b"
1157+
integrity sha512-PZwwaRGURwOWFf4JVDc6GGfDRZtawvVGY6/3Z4cjulNiEFzxtQnz4RH0Zqzd6qFRxpEctqKnZ+eckLPWX4YFug==
11581158

1159-
"@logicflow/extension@^0.3.0":
1160-
version "0.3.0"
1161-
resolved "https://registry.yarnpkg.com/@logicflow/extension/-/extension-0.3.0.tgz#cea4470de3a8e4b7da69b17d7507b2d8edd76b50"
1162-
integrity sha512-vMmYT8H53oFhOpNftCYQMbNYbTiXqQUxOOKlPcrKkZb0FsXSiEZ/MUKBF3mAarvFlzdMaB5xJjakMfy07/bdvw==
1159+
"@logicflow/extension@^0.3.1":
1160+
version "0.3.1"
1161+
resolved "https://registry.npmjs.org/@logicflow/extension/-/extension-0.3.1.tgz#984ced98df97a3460ee43ac9a513c20511ebe862"
1162+
integrity sha512-WSPVqwmTvI52e2Go6EQeUEoHs+l6o2h4u47iVuwC39A/cIFcc2skefQ9fTzGJHeWIXjPf7Nl/W5ylrmeVsIJ4Q==
11631163
dependencies:
1164-
"@logicflow/core" "^0.3.0"
1164+
"@logicflow/core" "^0.3.1"
11651165
ids "^1.0.0"
11661166

11671167
"@nodelib/fs.scandir@2.1.4":

0 commit comments

Comments
 (0)