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 239f681e
authored
Jul 29, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: The built-in theme does not take effect, fixed #55 [deploy]
1 parent
cd10eb94
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
internal/lint-configs/lint-staged-config/src/index.ts
packages/@core/ui-kit/menu-ui/src/components/menu.vue
packages/effects/layouts/src/basic/tabbar/use-tabbar.ts
packages/stores/src/modules/tabbar.ts
internal/lint-configs/lint-staged-config/src/index.ts
View file @
239f681
...
@@ -5,10 +5,14 @@ export default {
...
@@ -5,10 +5,14 @@ export default {
],
],
'*.{scss,less,styl,html,vue,css}'
:
[
'*.{scss,less,styl,html,vue,css}'
:
[
'prettier --cache --ignore-unknown --write'
,
'prettier --cache --ignore-unknown --write'
,
'stylelint --fix'
,
'stylelint --fix
--allow-empty-input
'
,
],
],
'*.md'
:
[
'prettier --cache --ignore-unknown --write'
],
'*.md'
:
[
'prettier --cache --ignore-unknown --write'
],
'*.vue'
:
[
'prettier --write'
,
'eslint --cache --fix'
,
'stylelint --fix'
],
'*.vue'
:
[
'prettier --write'
,
'eslint --cache --fix'
,
'stylelint --fix --allow-empty-input'
,
],
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}'
:
[
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}'
:
[
'prettier --cache --write--parser json'
,
'prettier --cache --write--parser json'
,
],
],
...
...
packages/@core/ui-kit/menu-ui/src/components/menu.vue
View file @
239f681
...
@@ -443,10 +443,10 @@ $namespace: vben;
...
@@ -443,10 +443,10 @@ $namespace: vben;
//
--menu-submenu-opened-background-color
:
hsl
(
var
(
--menu-opened-dark
));
//
--menu-submenu-opened-background-color
:
hsl
(
var
(
--menu-opened-dark
));
--menu-item-background-color
:
var
(
--menu-background-color
);
--menu-item-background-color
:
var
(
--menu-background-color
);
--menu-item-color
:
hsl
(
var
(
--foreground
)
/
80%
);
--menu-item-color
:
hsl
(
var
(
--foreground
)
/
80%
);
--menu-item-hover-color
:
hsl
(
var
(
--
primary
-foreground
));
--menu-item-hover-color
:
hsl
(
var
(
--
accent
-foreground
));
--menu-item-hover-background-color
:
hsl
(
var
(
--accent
));
--menu-item-hover-background-color
:
hsl
(
var
(
--accent
));
--menu-item-active-color
:
hsl
(
var
(
--foreground
));
--menu-item-active-color
:
hsl
(
var
(
--
primary-
foreground
));
--menu-item-active-background-color
:
hsl
(
var
(
--
accent
));
--menu-item-active-background-color
:
hsl
(
var
(
--
primary
));
--menu-submenu-hover-color
:
hsl
(
var
(
--foreground
));
--menu-submenu-hover-color
:
hsl
(
var
(
--foreground
));
--menu-submenu-hover-background-color
:
hsl
(
var
(
--accent
));
--menu-submenu-hover-background-color
:
hsl
(
var
(
--accent
));
--menu-submenu-active-color
:
hsl
(
var
(
--foreground
));
--menu-submenu-active-color
:
hsl
(
var
(
--foreground
));
...
...
packages/effects/layouts/src/basic/tabbar/use-tabbar.ts
View file @
239f681
...
@@ -49,6 +49,7 @@ export function useTabbar() {
...
@@ -49,6 +49,7 @@ export function useTabbar() {
refreshTab
,
refreshTab
,
toggleTabPin
,
toggleTabPin
,
}
=
useTabs
();
}
=
useTabs
();
const
currentActive
=
computed
(()
=>
{
const
currentActive
=
computed
(()
=>
{
return
route
.
fullPath
;
return
route
.
fullPath
;
});
});
...
...
packages/stores/src/modules/tabbar.ts
View file @
239f681
...
@@ -121,10 +121,11 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
...
@@ -121,10 +121,11 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
}
else
{
}
else
{
// 页面已经存在,不重复添加选项卡,只更新选项卡参数
// 页面已经存在,不重复添加选项卡,只更新选项卡参数
const
currentTab
=
toRaw
(
this
.
tabs
)[
tabIndex
];
const
currentTab
=
toRaw
(
this
.
tabs
)[
tabIndex
];
if
(
!
currentTab
.
meta
.
affixTab
)
{
const
mergedTab
=
{
...
currentTab
,
...
tab
};
const
mergedTab
=
{
...
currentTab
,
...
tab
};
this
.
tabs
.
splice
(
tabIndex
,
1
,
mergedTab
);
if
(
Reflect
.
has
(
currentTab
.
meta
,
'affixTab'
))
{
mergedTab
.
meta
.
affixTab
=
currentTab
.
meta
.
affixTab
;
}
}
this
.
tabs
.
splice
(
tabIndex
,
1
,
mergedTab
);
}
}
this
.
updateCacheTab
();
this
.
updateCacheTab
();
},
},
...
@@ -359,6 +360,7 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
...
@@ -359,6 +360,7 @@ export const useCoreTabbarStore = defineStore('core-tabbar', {
*/
*/
async
toggleTabPin
(
tab
:
TabDefinition
)
{
async
toggleTabPin
(
tab
:
TabDefinition
)
{
const
affixTab
=
tab
?.
meta
?.
affixTab
??
false
;
const
affixTab
=
tab
?.
meta
?.
affixTab
??
false
;
await
(
affixTab
?
this
.
unpinTab
(
tab
)
:
this
.
pinTab
(
tab
));
await
(
affixTab
?
this
.
unpinTab
(
tab
)
:
this
.
pinTab
(
tab
));
},
},
...
...
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