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 265ab110
authored
Jul 06, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'main' of
https://github.com/vbenjs/vue-vben-admin-pro
2 parents
5976e255
13e01d38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
packages/@core/forward/stores/src/modules/tabbar.test.ts
packages/locales/src/langs/en-US.yaml
packages/@core/forward/stores/src/modules/tabbar.test.ts
View file @
265ab11
...
@@ -71,20 +71,6 @@ describe('useCoreAccessStore', () => {
...
@@ -71,20 +71,6 @@ describe('useCoreAccessStore', () => {
// expect(router.replace).toHaveBeenCalled();
// expect(router.replace).toHaveBeenCalled();
});
});
it
(
'returns all tabs including affix tabs'
,
()
=>
{
const
store
=
useCoreTabbarStore
();
store
.
tabs
=
[
{
fullPath
:
'/home'
,
meta
:
{},
name
:
'Home'
,
path
:
'/home'
},
]
as
any
;
store
.
affixTabs
=
[
{
meta
:
{
hideInTab
:
false
},
path
:
'/dashboard'
},
]
as
any
;
const
result
=
store
.
getTabs
;
expect
(
result
.
length
).
toBe
(
2
);
expect
(
result
.
find
((
tab
)
=>
tab
.
path
===
'/dashboard'
)).
toBeDefined
();
});
it
(
'closes a non-affix tab'
,
()
=>
{
it
(
'closes a non-affix tab'
,
()
=>
{
const
store
=
useCoreTabbarStore
();
const
store
=
useCoreTabbarStore
();
const
tab
:
any
=
{
const
tab
:
any
=
{
...
@@ -135,7 +121,7 @@ describe('useCoreAccessStore', () => {
...
@@ -135,7 +121,7 @@ describe('useCoreAccessStore', () => {
store
.
tabs
.
push
(
normalTab
);
store
.
tabs
.
push
(
normalTab
);
store
.
affixTabs
.
push
(
affixTab
);
store
.
affixTabs
.
push
(
affixTab
);
expect
(
store
.
getTabs
).
toContainEqual
(
normalTab
);
expect
(
store
.
getTabs
).
toContainEqual
(
normalTab
);
// expect(store.get
Tabs).toContainEqual(affixTab);
expect
(
store
.
affix
Tabs
).
toContainEqual
(
affixTab
);
});
});
it
(
'navigates to a specific tab'
,
async
()
=>
{
it
(
'navigates to a specific tab'
,
async
()
=>
{
...
...
packages/locales/src/langs/en-US.yaml
View file @
265ab11
...
@@ -244,8 +244,8 @@ preferences:
...
@@ -244,8 +244,8 @@ preferences:
mode-auto-scroll
:
Scroll hide/display
mode-auto-scroll
:
Scroll hide/display
footer
:
footer
:
title
:
Footer
title
:
Footer
visible
:
Fixed at the bottom
visible
:
Display Footer
fixed
:
Display Footer
fixed
:
Fixed at the bottom
copyright
:
copyright
:
title
:
Copyright
title
:
Copyright
enable
:
Enable copyright
enable
:
Enable copyright
...
...
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