Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a80a9135
authored
Jul 29, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: Fixed tab error,fixex #59 [deploy]
1 parent
239f681e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
6 deletions
internal/lint-configs/eslint-config/package.json
internal/lint-configs/stylelint-config/package.json
package.json
packages/effects/layouts/src/basic/tabbar/tabbar.vue
packages/stores/src/modules/tabbar.ts
pnpm-lock.yaml
internal/lint-configs/eslint-config/package.json
View file @
a80a913
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
"devDependencies"
:
{
"devDependencies"
:
{
"@eslint/js"
:
"^9.8.0"
,
"@eslint/js"
:
"^9.8.0"
,
"@types/eslint"
:
"^9.6.0"
,
"@types/eslint"
:
"^9.6.0"
,
"@typescript-eslint/eslint-plugin"
:
"^7.1
7
.0"
,
"@typescript-eslint/eslint-plugin"
:
"^7.1
8
.0"
,
"@typescript-eslint/parser"
:
"^7.1
7
.0"
,
"@typescript-eslint/parser"
:
"^7.1
8
.0"
,
"eslint"
:
"^9.8.0"
,
"eslint"
:
"^9.8.0"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-config-prettier"
:
"^9.1.0"
,
"eslint-plugin-eslint-comments"
:
"^3.2.0"
,
"eslint-plugin-eslint-comments"
:
"^3.2.0"
,
...
...
internal/lint-configs/stylelint-config/package.json
View file @
a80a913
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
}
}
},
},
"dependencies"
:
{
"dependencies"
:
{
"@stylistic/stylelint-plugin"
:
"^2.1.
2
"
,
"@stylistic/stylelint-plugin"
:
"^2.1.
3
"
,
"stylelint-config-recess-order"
:
"^5.0.1"
,
"stylelint-config-recess-order"
:
"^5.0.1"
,
"stylelint-scss"
:
"^6.4.1"
"stylelint-scss"
:
"^6.4.1"
},
},
...
...
package.json
View file @
a80a913
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
"@vue/test-utils"
:
"^2.4.6"
,
"@vue/test-utils"
:
"^2.4.6"
,
"cross-env"
:
"^7.0.3"
,
"cross-env"
:
"^7.0.3"
,
"cspell"
:
"^8.12.1"
,
"cspell"
:
"^8.12.1"
,
"husky"
:
"^9.1.
3
"
,
"husky"
:
"^9.1.
4
"
,
"is-ci"
:
"^3.0.1"
,
"is-ci"
:
"^3.0.1"
,
"jsdom"
:
"^24.1.1"
,
"jsdom"
:
"^24.1.1"
,
"rimraf"
:
"^6.0.1"
,
"rimraf"
:
"^6.0.1"
,
...
...
packages/effects/layouts/src/basic/tabbar/tabbar.vue
View file @
a80a913
...
@@ -34,7 +34,8 @@ const {
...
@@ -34,7 +34,8 @@ const {
}
=
useTabbar
();
}
=
useTabbar
();
const
menus
=
computed
(()
=>
{
const
menus
=
computed
(()
=>
{
const
menus
=
createContextMenus
(
route
);
const
tab
=
coreTabbarStore
.
getTabByPath
(
currentActive
.
value
);
const
menus
=
createContextMenus
(
tab
);
return
menus
.
map
((
item
)
=>
{
return
menus
.
map
((
item
)
=>
{
return
{
return
{
...
item
,
...
item
,
...
...
packages/stores/src/modules/tabbar.ts
View file @
a80a913
...
@@ -182,7 +182,6 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
...
@@ -182,7 +182,6 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
}
}
await
this
.
_bulkCloseByPaths
(
paths
);
await
this
.
_bulkCloseByPaths
(
paths
);
},
},
/**
/**
* @zh_CN 关闭右侧标签页
* @zh_CN 关闭右侧标签页
* @param tab
* @param tab
...
@@ -251,6 +250,17 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
...
@@ -251,6 +250,17 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
await
this
.
closeTab
(
this
.
tabs
[
index
],
router
);
await
this
.
closeTab
(
this
.
tabs
[
index
],
router
);
},
},
/**
* 根据路径获取标签页
* @param path
* @returns
*/
getTabByPath
(
path
:
string
)
{
return
this
.
getTabs
.
find
(
(
item
)
=>
getTabPath
(
item
)
===
path
,
)
as
TabDefinition
;
},
/**
/**
* @zh_CN 新窗口打开标签页
* @zh_CN 新窗口打开标签页
* @param tab
* @param tab
...
...
pnpm-lock.yaml
View file @
a80a913
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment