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 640ad6d9
authored
Jun 09, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: layout error
1 parent
35c3dd78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
58 changed files
with
427 additions
and
438 deletions
apps/web-antd/package.json
internal/lint-configs/commitlint-config/package.json
internal/lint-configs/prettier-config/package.json
internal/vite-config/package.json
packages/@core/forward/helpers/src/find-menu-by-path.test.ts
packages/business/layouts/src/basic/menu/helper.ts → packages/@core/forward/helpers/src/find-menu-by-path.ts
packages/@core/forward/helpers/src/index.ts
packages/@core/forward/preferences/package.json
packages/@core/forward/preferences/src/config.ts
packages/@core/forward/preferences/src/types.ts
packages/@core/forward/preferences/src/use-preferences.ts
packages/@core/shared/typings/src/app.d.ts
packages/@core/uikit/layout-ui/package.json
packages/@core/uikit/layout-ui/src/components/index.ts
packages/@core/uikit/layout-ui/src/components/layout-content.vue
packages/@core/uikit/layout-ui/src/components/layout-footer.vue
packages/@core/uikit/layout-ui/src/components/layout-header.vue
packages/@core/uikit/layout-ui/src/components/layout-side.vue → packages/@core/uikit/layout-ui/src/components/layout-sidebar.vue
packages/@core/uikit/layout-ui/src/components/layout-tabs.vue → packages/@core/uikit/layout-ui/src/components/layout-tabbar.vue
packages/@core/uikit/layout-ui/src/components/widgets/index.ts
packages/@core/uikit/layout-ui/src/components/widgets/side-collapse-button.vue
packages/@core/uikit/layout-ui/src/components/widgets/side-pin-button.vue
packages/@core/uikit/layout-ui/src/components/widgets/sidebar-collapse-button.vue
packages/@core/uikit/layout-ui/src/components/widgets/sidebar-fixed-button.vue
packages/@core/uikit/layout-ui/src/vben-layout.ts
packages/@core/uikit/layout-ui/src/vben-layout.vue
packages/@core/uikit/menu-ui/package.json
packages/@core/uikit/shadcn-ui/package.json
packages/@core/uikit/shadcn-ui/src/components/index.ts
packages/@core/uikit/shadcn-ui/src/components/scrollbar/index.ts
packages/@core/uikit/shadcn-ui/src/components/scrollbar/scrollbar.vue
packages/@core/uikit/shadcn-ui/src/components/sheet/sheet.vue
packages/@core/uikit/tabs-ui/src/components/index.ts
packages/@core/uikit/tabs-ui/src/index.ts
packages/@core/uikit/tabs-ui/src/widgets/index.ts
packages/@core/uikit/tabs-ui/src/components/tabs-more.vue → packages/@core/uikit/tabs-ui/src/widgets/tool-more.vue
packages/@core/uikit/tabs-ui/src/components/tabs-screen.vue → packages/@core/uikit/tabs-ui/src/widgets/tool-screen.vue
packages/business/common-ui/package.json
packages/business/common-ui/src/global-search/search-panel.vue
packages/business/common-ui/src/notification/notification.vue
packages/business/common-ui/src/preferences/blocks/layout/layout.vue
packages/business/common-ui/src/preferences/blocks/layout/sidebar.vue
packages/business/common-ui/src/preferences/icons/index.ts
packages/business/common-ui/src/preferences/icons/side-mixed-nav.vue → packages/business/common-ui/src/preferences/icons/sidebar-mixed-nav.vue
packages/business/common-ui/src/preferences/icons/side-nav.vue → packages/business/common-ui/src/preferences/icons/sidebar-nav.vue
packages/business/common-ui/src/preferences/preferences-widget.vue
packages/business/common-ui/src/preferences/preferences.vue
packages/business/layouts/package.json
packages/business/layouts/src/basic/layout.vue
packages/business/layouts/src/basic/menu/mixed-menu.vue
packages/business/layouts/src/basic/menu/use-extra-menu.ts
packages/business/layouts/src/basic/menu/use-mixed-menu.ts
packages/business/layouts/src/basic/tabbar/index.ts
packages/business/layouts/src/basic/tabs/tabs-toolbar.vue → packages/business/layouts/src/basic/tabbar/tabbar-tools.vue
packages/business/layouts/src/basic/tabs/tabs.vue → packages/business/layouts/src/basic/tabbar/tabbar.vue
packages/business/layouts/src/basic/tabs/use-tabs.ts → packages/business/layouts/src/basic/tabbar/use-tabs.ts
packages/business/layouts/src/basic/tabs/index.ts
pnpm-lock.yaml
apps/web-antd/package.json
View file @
640ad6d
...
...
@@ -35,7 +35,7 @@
"@vben/styles"
:
"workspace:*"
,
"@vben/types"
:
"workspace:*"
,
"@vben/utils"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"ant-design-vue"
:
"^4.2.3"
,
"axios"
:
"^1.7.2"
,
"dayjs"
:
"^1.11.11"
,
...
...
internal/lint-configs/commitlint-config/package.json
View file @
640ad6d
...
...
@@ -34,7 +34,7 @@
"@commitlint/cli"
:
"^19.3.0"
,
"@commitlint/config-conventional"
:
"^19.2.2"
,
"@vben/node-utils"
:
"workspace:*"
,
"cz-git"
:
"^1.9.
2
"
,
"czg"
:
"^1.9.
2
"
"cz-git"
:
"^1.9.
3
"
,
"czg"
:
"^1.9.
3
"
}
}
internal/lint-configs/prettier-config/package.json
View file @
640ad6d
...
...
@@ -32,6 +32,6 @@
},
"dependencies"
:
{
"prettier"
:
"3.3.0"
,
"prettier-plugin-tailwindcss"
:
"^0.6.
2
"
"prettier-plugin-tailwindcss"
:
"^0.6.
3
"
}
}
internal/vite-config/package.json
View file @
640ad6d
...
...
@@ -46,7 +46,7 @@
"dayjs"
:
"^1.11.11"
,
"dotenv"
:
"^16.4.5"
,
"rollup-plugin-visualizer"
:
"^5.12.0"
,
"sass"
:
"^1.77.
4
"
,
"sass"
:
"^1.77.
5
"
,
"unplugin-turbo-console"
:
"^1.8.6"
,
"vite"
:
"6.0.0-alpha.17"
,
"vite-plugin-compression"
:
"^0.5.1"
,
...
...
packages/@core/forward/helpers/src/find-menu-by-path.test.ts
0 → 100644
View file @
640ad6d
import
{
describe
,
expect
,
it
}
from
'vitest'
;
import
{
findMenuByPath
,
findRootMenuByPath
}
from
'./find-menu-by-path'
;
// 示例菜单数据
const
menus
:
any
[]
=
[
{
path
:
'/'
,
children
:
[]
},
{
path
:
'/about'
,
children
:
[]
},
{
path
:
'/contact'
,
children
:
[
{
path
:
'/contact/email'
,
children
:
[]
},
{
path
:
'/contact/phone'
,
children
:
[]
},
],
},
{
path
:
'/services'
,
children
:
[
{
path
:
'/services/design'
,
children
:
[]
},
{
path
:
'/services/development'
,
children
:
[{
path
:
'/services/development/web'
,
children
:
[]
}],
},
],
},
];
describe
(
'menu Finder Tests'
,
()
=>
{
it
(
'finds a top-level menu'
,
()
=>
{
const
menu
=
findMenuByPath
(
menus
,
'/about'
);
expect
(
menu
).
toBeDefined
();
expect
(
menu
?.
path
).
toBe
(
'/about'
);
});
it
(
'finds a nested menu'
,
()
=>
{
const
menu
=
findMenuByPath
(
menus
,
'/services/development/web'
);
expect
(
menu
).
toBeDefined
();
expect
(
menu
?.
path
).
toBe
(
'/services/development/web'
);
});
it
(
'returns null for a non-existent path'
,
()
=>
{
const
menu
=
findMenuByPath
(
menus
,
'/non-existent'
);
expect
(
menu
).
toBeNull
();
});
it
(
'handles empty menus list'
,
()
=>
{
const
menu
=
findMenuByPath
([],
'/about'
);
expect
(
menu
).
toBeNull
();
});
it
(
'handles menu items without children'
,
()
=>
{
const
menu
=
findMenuByPath
(
[{
path
:
'/only'
,
children
:
undefined
}]
as
any
[],
'/only'
,
);
expect
(
menu
).
toBeDefined
();
expect
(
menu
?.
path
).
toBe
(
'/only'
);
});
it
(
'finds root menu by path'
,
()
=>
{
const
{
findMenu
,
rootMenu
,
rootMenuPath
}
=
findRootMenuByPath
(
menus
,
'/services/development/web'
,
);
expect
(
findMenu
).
toBeDefined
();
expect
(
rootMenu
).
toBeUndefined
();
expect
(
rootMenuPath
).
toBeUndefined
();
expect
(
findMenu
?.
path
).
toBe
(
'/services/development/web'
);
});
it
(
'returns null for undefined or empty path'
,
()
=>
{
const
menuUndefinedPath
=
findMenuByPath
(
menus
);
const
menuEmptyPath
=
findMenuByPath
(
menus
,
''
);
expect
(
menuUndefinedPath
).
toBeNull
();
expect
(
menuEmptyPath
).
toBeNull
();
});
it
(
'checks for root menu when path does not exist'
,
()
=>
{
const
{
findMenu
,
rootMenu
,
rootMenuPath
}
=
findRootMenuByPath
(
menus
,
'/non-existent'
,
);
expect
(
findMenu
).
toBeNull
();
expect
(
rootMenu
).
toBeUndefined
();
expect
(
rootMenuPath
).
toBeUndefined
();
});
});
packages/
business/layouts/src/basic/menu/helper
.ts
→
packages/
@core/forward/helpers/src/find-menu-by-path
.ts
View file @
640ad6d
...
...
@@ -8,11 +8,9 @@ function findMenuByPath(
if
(
menu
.
path
===
path
)
{
return
menu
;
}
if
(
menu
?.
children
?.
length
)
{
const
findMenu
=
findMenuByPath
(
menu
.
children
,
path
);
if
(
findMenu
)
{
return
findMenu
;
}
const
findMenu
=
menu
.
children
&&
findMenuByPath
(
menu
.
children
,
path
);
if
(
findMenu
)
{
return
findMenu
;
}
}
return
null
;
...
...
packages/@core/forward/helpers/src/index.ts
View file @
640ad6d
export
*
from
'./find-menu-by-path'
;
export
*
from
'./flatten-object'
;
export
*
from
'./generator-menus'
;
export
*
from
'./generator-routes'
;
...
...
packages/@core/forward/preferences/package.json
View file @
640ad6d
...
...
@@ -36,7 +36,7 @@
"@vben-core/helpers"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"vue"
:
"3.4.27"
}
}
packages/@core/forward/preferences/src/config.ts
View file @
640ad6d
...
...
@@ -12,7 +12,7 @@ const defaultPreferences: Preferences = {
'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.0/source/avatar-v1.webp'
,
dynamicTitle
:
true
,
isMobile
:
false
,
layout
:
'side-nav'
,
layout
:
'side
bar
-nav'
,
locale
:
'zh-CN'
,
name
:
'Vben Admin Pro'
,
semiDarkMenu
:
true
,
...
...
@@ -47,8 +47,8 @@ const defaultPreferences: Preferences = {
},
shortcutKeys
:
{
enable
:
true
},
sidebar
:
{
collapse
:
false
,
collapseShowTitle
:
true
,
collapse
d
:
false
,
collapse
d
ShowTitle
:
true
,
enable
:
true
,
expandOnHover
:
true
,
extraCollapse
:
true
,
...
...
packages/@core/forward/preferences/src/types.ts
View file @
640ad6d
...
...
@@ -94,9 +94,9 @@ interface NavigationPreferences {
interface
SidebarPreferences
{
/** 侧边栏是否折叠 */
collapse
:
boolean
;
collapse
d
:
boolean
;
/** 侧边栏折叠时,是否显示title */
collapseShowTitle
:
boolean
;
collapse
d
ShowTitle
:
boolean
;
/** 侧边栏是否可见 */
enable
:
boolean
;
/** 菜单自动展开状态 */
...
...
packages/@core/forward/preferences/src/use-preferences.ts
View file @
640ad6d
...
...
@@ -33,7 +33,7 @@ function usePreferences() {
* @zh_CN 布局方式
*/
const
layout
=
computed
(()
=>
appPreferences
.
value
.
isMobile
?
'side-nav'
:
appPreferences
.
value
.
layout
,
appPreferences
.
value
.
isMobile
?
'side
bar
-nav'
:
appPreferences
.
value
.
layout
,
);
/**
...
...
@@ -46,13 +46,15 @@ function usePreferences() {
/**
* @zh_CN 是否侧边导航模式
*/
const
isSideNav
=
computed
(()
=>
appPreferences
.
value
.
layout
===
'side-nav'
);
const
isSideNav
=
computed
(
()
=>
appPreferences
.
value
.
layout
===
'sidebar-nav'
,
);
/**
* @zh_CN 是否侧边混合模式
*/
const
isSideMixedNav
=
computed
(
()
=>
appPreferences
.
value
.
layout
===
'side-mixed-nav'
,
()
=>
appPreferences
.
value
.
layout
===
'side
bar
-mixed-nav'
,
);
/**
...
...
packages/@core/shared/typings/src/app.d.ts
View file @
640ad6d
...
...
@@ -4,8 +4,8 @@ type LayoutType =
|
'full-content'
|
'header-nav'
|
'mixed-nav'
|
'side-mixed-nav'
|
'side-nav'
;
|
'side
bar
-mixed-nav'
|
'side
bar
-nav'
;
type
ThemeModeType
=
'auto'
|
'dark'
|
'light'
;
...
...
packages/@core/uikit/layout-ui/package.json
View file @
640ad6d
...
...
@@ -41,12 +41,10 @@
}
},
"dependencies"
:
{
"@vben-core/design"
:
"workspace:*"
,
"@vben-core/iconify"
:
"workspace:*"
,
"@vben-core/shadcn-ui"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"vue"
:
"3.4.27"
}
}
packages/@core/uikit/layout-ui/src/components/index.ts
View file @
640ad6d
export
{
default
as
LayoutContent
}
from
'./layout-content.vue'
;
export
{
default
as
LayoutFooter
}
from
'./layout-footer.vue'
;
export
{
default
as
LayoutHeader
}
from
'./layout-header.vue'
;
export
{
default
as
LayoutSide
}
from
'./layout-side
.vue'
;
export
{
default
as
LayoutTab
s
}
from
'./layout-tabs
.vue'
;
export
{
default
as
LayoutSide
bar
}
from
'./layout-sidebar
.vue'
;
export
{
default
as
LayoutTab
bar
}
from
'./layout-tabbar
.vue'
;
packages/@core/uikit/layout-ui/src/components/layout-content.vue
View file @
640ad6d
...
...
@@ -42,8 +42,6 @@ interface Props {
paddingTop
?:
number
;
}
defineOptions
({
name
:
'LayoutContent'
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
contentCompact
:
'wide'
,
contentCompactWidth
:
1200
,
...
...
@@ -65,7 +63,9 @@ const style = computed((): CSSProperties => {
}
=
props
;
const
compactStyle
:
CSSProperties
=
contentCompact
===
'compact'
?
{
margin
:
'0 auto'
,
width
:
`1200px`
}
:
{};
contentCompact
===
'compact'
?
{
margin
:
'0 auto'
,
width
:
`
${
props
.
contentCompactWidth
}
px`
}
:
{};
return
{
...
compactStyle
,
flex
:
1
,
...
...
packages/@core/uikit/layout-ui/src/components/layout-footer.vue
View file @
640ad6d
...
...
@@ -2,8 +2,6 @@
import
type
{
CSSProperties
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
useNamespace
}
from
'@vben-core/toolkit'
;
interface
Props
{
/**
* 背景颜色
...
...
@@ -36,8 +34,6 @@ interface Props {
zIndex
?:
number
;
}
defineOptions
({
name
:
'LayoutFooter'
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
backgroundColor
:
'hsl(var(--color-background))'
,
fixed
:
true
,
...
...
@@ -47,8 +43,6 @@ const props = withDefaults(defineProps<Props>(), {
zIndex
:
0
,
});
const
{
b
}
=
useNamespace
(
'footer'
);
const
style
=
computed
(():
CSSProperties
=>
{
const
{
backgroundColor
,
fixed
,
height
,
show
,
width
,
zIndex
}
=
props
;
return
{
...
...
@@ -63,11 +57,7 @@ const style = computed((): CSSProperties => {
</
script
>
<
template
>
<footer
:class=
"b()"
:style=
"style"
class=
"bottom-0 w-full transition-all duration-200"
>
<footer
:style=
"style"
class=
"bottom-0 w-full transition-all duration-200"
>
<slot></slot>
</footer>
</
template
>
packages/@core/uikit/layout-ui/src/components/layout-header.vue
View file @
640ad6d
...
...
@@ -41,15 +41,12 @@ interface Props {
* @default true
*/
showToggleBtn
?:
boolean
;
/**
* 侧边是否显示
*/
sideHidden
?:
boolean
;
/**
* 侧边菜单宽度
* @default 0
*/
sideWidth
?:
number
;
side
bar
Width
?:
number
;
/**
* 宽度
* @default 100%
...
...
@@ -62,8 +59,6 @@ interface Props {
zIndex
?:
number
;
}
defineOptions
({
name
:
'LayoutHeader'
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
backgroundColor
:
'hsl(var(--color-background))'
,
// fixed: true,
...
...
@@ -71,12 +66,12 @@ const props = withDefaults(defineProps<Props>(), {
isMixedNav
:
false
,
show
:
true
,
showToggleBtn
:
false
,
sideWidth
:
0
,
side
bar
Width
:
0
,
width
:
'100%'
,
zIndex
:
0
,
});
const
emit
=
defineEmits
<
{
openMenu
:
[];
toggle
Menu
:
[]
}
>
();
const
emit
=
defineEmits
<
{
openMenu
:
[];
toggle
Sidebar
:
[]
}
>
();
const
slots
=
useSlots
();
...
...
@@ -95,16 +90,16 @@ const style = computed((): CSSProperties => {
const
logoStyle
=
computed
(():
CSSProperties
=>
{
return
{
minWidth
:
`
${
props
.
isMobile
?
40
:
props
.
sideWidth
}
px`
,
minWidth
:
`
${
props
.
isMobile
?
40
:
props
.
side
bar
Width
}
px`
,
};
});
function
handleToggleMenu
()
{
emit
(
'toggleMenu'
);
}
function
handleOpenMenu
()
{
emit
(
'openMenu'
);
if
(
props
.
isMobile
)
{
emit
(
'openMenu'
);
}
else
{
emit
(
'toggleSidebar'
);
}
}
</
script
>
...
...
@@ -117,21 +112,12 @@ function handleOpenMenu() {
<slot
name=
"logo"
></slot>
</div>
<VbenIconButton
v-if=
"showToggleBtn"
v-if=
"showToggleBtn
|| isMobile
"
class=
"my-0 ml-2 mr-1 rounded"
@
click=
"handleToggleMenu"
>
<IcRoundMenu
class=
"size-5"
/>
</VbenIconButton>
<VbenIconButton
v-if=
"isMobile"
class=
"my-0 ml-2 mr-1 rounded"
@
click=
"handleOpenMenu"
>
<IcRoundMenu
class=
"size-5"
/>
</VbenIconButton>
<slot></slot>
</header>
</
template
>
packages/@core/uikit/layout-ui/src/components/layout-side.vue
→
packages/@core/uikit/layout-ui/src/components/layout-side
bar
.vue
View file @
640ad6d
<
script
setup
lang=
"ts"
>
import
type
{
CSSProperties
}
from
'vue'
;
// import { onClickOutside } from '@vueuse/core';
import
{
computed
,
ref
,
shallowRef
,
useSlots
,
watchEffect
}
from
'vue'
;
import
{
computed
,
shallowRef
,
useSlots
,
watchEffect
}
from
'vue'
;
import
{
ScrollArea
}
from
'@vben-core/shadcn-ui'
;
import
{
useNamespace
}
from
'@vben-core/toolkit'
;
import
{
VbenScrollbar
}
from
'@vben-core/shadcn-ui'
;
import
{
Side
CollapseButton
,
SidePin
Button
}
from
'./widgets'
;
import
{
Side
barCollapseButton
,
SidebarFixed
Button
}
from
'./widgets'
;
interface
Props
{
/**
...
...
@@ -50,7 +48,7 @@ interface Props {
* 是否侧边混合模式
* @default false
*/
isSideMixed
?:
boolean
;
isSide
bar
Mixed
?:
boolean
;
/**
* 混合菜单宽度
* @default 80
...
...
@@ -88,8 +86,6 @@ interface Props {
zIndex
?:
number
;
}
defineOptions
({
name
:
'LayoutSide'
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
collapseHeight
:
42
,
collapseWidth
:
48
,
...
...
@@ -113,11 +109,9 @@ const expandOnHovering = defineModel<boolean>('expandOnHovering');
const
expandOnHover
=
defineModel
<
boolean
>
(
'expandOnHover'
);
const
extraVisible
=
defineModel
<
boolean
>
(
'extraVisible'
);
const
{
b
,
e
,
is
}
=
useNamespace
(
'side'
);
const
slots
=
useSlots
();
const
asideRef
=
shallowRef
<
HTMLDivElement
|
null
>
();
const
scrolled
=
ref
(
false
);
const
hiddenSideStyle
=
computed
(():
CSSProperties
=>
{
return
calcMenuWidthStyle
(
true
);
...
...
@@ -244,54 +238,51 @@ function handleMouseleave() {
collapse
.
value
=
true
;
extraVisible
.
value
=
false
;
}
function
handleScroll
(
event
:
Event
)
{
const
target
=
event
.
target
as
HTMLElement
;
scrolled
.
value
=
(
target
?.
scrollTop
??
0
)
>
0
;
}
</
script
>
<
template
>
<div
v-if=
"domVisible"
:class=
"e('hide')"
:style=
"hiddenSideStyle"
></div>
<div
v-if=
"domVisible"
:style=
"hiddenSideStyle"
class=
"h-full transition-all duration-200"
></div>
<aside
:class=
"[b(), is(theme, true)]"
:style=
"style"
class=
"fixed left-0 top-0 h-full transition-all duration-200"
@
mouseenter=
"handleMouseenter"
@
mouseleave=
"handleMouseleave"
>
<Side
Pin
Button
v-if=
"!collapse && !isSideMixed"
<Side
barFixed
Button
v-if=
"!collapse && !isSide
bar
Mixed"
v-model:expand-on-hover=
"expandOnHover"
:theme=
"theme"
/>
<div
v-if=
"slots.logo"
:style=
"headerStyle"
>
<slot
name=
"logo"
></slot>
</div>
<ScrollArea
:on-scroll=
"handleScroll"
:style=
"contentStyle"
>
<div
:class=
"[e('shadow'),
{ scrolled }]">
</div>
<VbenScrollbar
:style=
"contentStyle"
>
<slot></slot>
</
ScrollArea
>
</
VbenScrollbar
>
<div
:style=
"collapseStyle"
></div>
<SideCollapseButton
v-if=
"showCollapseButton && !isSideMixed"
v-model:collapse=
"collapse"
<Side
bar
CollapseButton
v-if=
"showCollapseButton && !isSide
bar
Mixed"
v-model:collapse
d
=
"collapse"
:theme=
"theme"
/>
<div
v-if=
"isSideMixed"
v-if=
"isSide
bar
Mixed"
ref=
"asideRef"
:class=
"e('extra')"
:style=
"extraStyle"
class=
"
transition-[width]
duration-200"
class=
"
fixed top-0 h-full overflow-hidden transition-all
duration-200"
>
<SideCollapseButton
v-if=
"isSideMixed && expandOnHover"
v-model:collapse=
"extraCollapse"
<Side
bar
CollapseButton
v-if=
"isSide
bar
Mixed && expandOnHover"
v-model:collapse
d
=
"extraCollapse"
:theme=
"theme"
/>
<Side
Pin
Button
<Side
barFixed
Button
v-if=
"!extraCollapse"
v-model:expand-on-hover=
"expandOnHover"
:theme=
"theme"
...
...
@@ -299,79 +290,49 @@ function handleScroll(event: Event) {
<div
v-if=
"!extraCollapse"
:style=
"extraTitleStyle"
>
<slot
name=
"extra-title"
></slot>
</div>
<ScrollArea
:class=
"e('extra-content')"
:on-scroll=
"handleScroll"
:style=
"extraContentStyle"
>
<div
:class=
"[e('shadow'),
{ scrolled }]">
</div>
<VbenScrollbar
:style=
"extraContentStyle"
class=
"py-4"
>
<slot
name=
"extra"
></slot>
</
ScrollArea
>
</
VbenScrollbar
>
</div>
</aside>
</
template
>
<
style
scoped
lang=
"scss"
>
@import
'@vben-core/design/global'
;
@include
b
(
'side'
)
{
--color-surface
:
var
(
--color-menu
);
position
:
fixed
;
top
:
0
;
left
:
0
;
height
:
100%
;
transition
:
all
0.2s
ease
0s
;
@include
is('dark')
{
--color-surface
:
var
(
--color-menu-dark
);
}
@include
e
(
'shadow'
)
{
position
:
absolute
;
top
:
0
;
z-index
:
1
;
inline-size
:
100%
;
block-size
:
40px
;
height
:
50px
;
pointer-events
:
none
;
background
:
linear-gradient
(
to
bottom
,
hsl
(
var
(
--color-surface
)),
transparent
);
opacity
:
0
;
transition
:
opacity
0.15s
ease-in-out
;
will-change
:
opacity
;
&.scrolled
{
opacity
:
1
;
}
}
@include
is
(
'dark'
)
{
.
#
{
$namespace
}
-side__extra
{
&-content
{
border-color
:
hsl
(
var
(
--color-dark-border
))
!important
;
}
}
}
@include
e
(
'hide'
)
{
height
:
100%
;
transition
:
all
0.2s
ease
0s
;
}
@include
e
(
'extra'
)
{
position
:
fixed
;
top
:
0
;
height
:
100%
;
overflow
:
hidden
;
transition
:
all
0.2s
ease
0s
;
&-content
{
padding
:
4px
0
;
}
}
}
//
@include
b
(
'sidebar'
)
{
//
--color-surface
:
var
(
--color-menu
);
//
@include
is
(
'dark'
)
{
//
--color-surface
:
var
(
--color-menu-dark
);
//
}
//
@include
e
(
'shadow'
)
{
//
position
:
absolute
;
//
top
:
0
;
//
z-index
:
1
;
//
inline-size
:
100
%;
//
block-size
:
40px
;
//
height
:
50px
;
//
pointer-events
:
none
;
//
background
:
linear-gradient
(
//
to
bottom
,
//
hsl
(
var
(
--color-surface
)),
//
transparent
//
);
//
opacity
:
0
;
//
transition
:
opacity
0
.15s
ease-in-out
;
//
will-change
:
opacity
;
//
&
.scrolled
{
//
opacity
:
1
;
//
}
//
}
//
@include
is
(
'dark'
)
{
//
.
#
{
$namespace
}
-side__extra
{
//
&-content
{
//
border-color
:
hsl
(
var
(
--color-dark-border
))
!important
;
//
}
//
}
//
}
//
}
</
style
>
packages/@core/uikit/layout-ui/src/components/layout-tab
s
.vue
→
packages/@core/uikit/layout-ui/src/components/layout-tab
bar
.vue
View file @
640ad6d
...
...
@@ -14,8 +14,6 @@ interface Props {
height
?:
number
;
}
defineOptions
({
name
:
'LayoutTabs'
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
backgroundColor
:
'hsl(var(--color-background))'
,
fixed
:
true
,
...
...
@@ -34,7 +32,6 @@ const style = computed((): CSSProperties => {
return
{
...
hiddenStyle
.
value
,
backgroundColor
,
display
:
'flex'
,
};
});
</
script
>
...
...
packages/@core/uikit/layout-ui/src/components/widgets/index.ts
View file @
640ad6d
export
{
default
as
Side
CollapseButton
}
from
'./side
-collapse-button.vue'
;
export
{
default
as
Side
PinButton
}
from
'./side-pin
-button.vue'
;
export
{
default
as
Side
barCollapseButton
}
from
'./sidebar
-collapse-button.vue'
;
export
{
default
as
Side
barFixedButton
}
from
'./sidebar-fixed
-button.vue'
;
packages/@core/uikit/layout-ui/src/components/widgets/side-collapse-button.vue
deleted
100644 → 0
View file @
35c3dd7
<
script
setup
lang=
"ts"
>
import
{
MdiMenuClose
,
MdiMenuOpen
}
from
'@vben-core/iconify'
;
import
{
useNamespace
}
from
'@vben-core/toolkit'
;
interface
Props
{
theme
:
string
;
}
defineOptions
({
name
:
'SideCollapseButton'
});
withDefaults
(
defineProps
<
Props
>
(),
{});
const
collapse
=
defineModel
<
boolean
>
(
'collapse'
);
const
{
b
,
is
}
=
useNamespace
(
'side-collapse'
);
function
handleCollapse
()
{
collapse
.
value
=
!
collapse
.
value
;
}
</
script
>
<
template
>
<div
:class=
"[b(), is(theme, true)]"
@
click
.
stop=
"handleCollapse"
>
<MdiMenuClose
v-if=
"collapse"
/>
<MdiMenuOpen
v-else
/>
</div>
</
template
>
<
style
scoped
lang=
"scss"
>
@import
'@vben-core/design/global'
;
@include
b
(
'side-collapse'
)
{
position
:
absolute
;
bottom
:
6px
;
left
:
10px
;
z-index
:
1
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
5px
;
color
:
hsl
(
var
(
--color-foreground
)
/
60%
);
cursor
:
pointer
;
background
:
hsl
(
var
(
--color-accent
))
!important
;
border-radius
:
4px
;
opacity
:
1
;
transition
:
all
0.3s
ease
;
@include
is('dark')
{
color
:
hsl
(
var
(
--color-dark-foreground
)
/
60%
)
!important
;
background
:
hsl
(
var
(
--color-dark-accent
))
!important
;
&:hover
{
color
:
hsl
(
var
(
--color-dark-foreground
))
!important
;
background
:
hsl
(
var
(
--color-dark-accent-hover
))
!important
;
}
}
&
:hover
{
color
:
hsl
(
var
(
--color-foreground
));
background
:
hsl
(
var
(
--color-accent-hover
));
}
}
</
style
>
packages/@core/uikit/layout-ui/src/components/widgets/side-pin-button.vue
deleted
100644 → 0
View file @
35c3dd7
<
script
setup
lang=
"ts"
>
import
{
MdiPin
,
MdiPinOff
}
from
'@vben-core/iconify'
;
import
{
useNamespace
}
from
'@vben-core/toolkit'
;
interface
Props
{
theme
:
string
;
}
defineOptions
({
name
:
'SidePinButton'
});
withDefaults
(
defineProps
<
Props
>
(),
{});
const
expandOnHover
=
defineModel
<
boolean
>
(
'expandOnHover'
);
const
{
b
,
is
}
=
useNamespace
(
'side-pin'
);
function
togglePined
()
{
expandOnHover
.
value
=
!
expandOnHover
.
value
;
}
</
script
>
<
template
>
<div
:class=
"[b(), is(theme, true)]"
@
click=
"togglePined"
>
<MdiPinOff
v-if=
"!expandOnHover"
/>
<MdiPin
v-else
/>
</div>
</
template
>
<
style
scoped
lang=
"scss"
>
@import
'@vben-core/design/global'
;
@include
b
(
'side-pin'
)
{
position
:
absolute
;
right
:
10px
;
bottom
:
6px
;
z-index
:
1
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
5px
;
color
:
hsl
(
var
(
--color-foreground
)
/
60%
);
cursor
:
pointer
;
background
:
hsl
(
var
(
--color-accent
))
!important
;
border-radius
:
4px
;
opacity
:
1
;
transition
:
all
0.3s
ease
;
@include
is('dark')
{
color
:
hsl
(
var
(
--color-dark-foreground
)
/
60%
)
!important
;
background
:
unset
;
background
:
hsl
(
var
(
--color-dark-accent
))
!important
;
&:hover
{
color
:
hsl
(
var
(
--color-dark-foreground
))
!important
;
background
:
hsl
(
var
(
--color-dark-accent-hover
))
!important
;
}
}
&
:hover
{
color
:
hsl
(
var
(
--color-foreground
));
background
:
hsl
(
var
(
--color-accent-hover
));
}
}
</
style
>
packages/@core/uikit/layout-ui/src/components/widgets/sidebar-collapse-button.vue
0 → 100644
View file @
640ad6d
<
script
setup
lang=
"ts"
>
import
{
MdiMenuClose
,
MdiMenuOpen
}
from
'@vben-core/iconify'
;
interface
Props
{
theme
:
string
;
}
withDefaults
(
defineProps
<
Props
>
(),
{});
const
collapsed
=
defineModel
<
boolean
>
(
'collapsed'
);
function
handleCollapsed
()
{
collapsed
.
value
=
!
collapsed
.
value
;
}
</
script
>
<
template
>
<div
:data-theme=
"theme"
class=
"flex-center hover:text-foreground text-foreground/60 hover:bg-accent-hover bg-accent absolute bottom-2 left-3 z-10 cursor-pointer rounded-sm p-1 transition-all duration-300 data-[theme=dark]:bg-[hsl(var(--color-dark-accent))] data-[theme=dark]:text-[hsl(var(--color-dark-foreground)/60%)] data-[theme=dark]:hover:bg-[hsl(var(--color-dark-accent-hover))] data-[theme=dark]:hover:text-[hsl(var(--color-dark-foreground))]"
@
click
.
stop=
"handleCollapsed"
>
<MdiMenuClose
v-if=
"collapsed"
/>
<MdiMenuOpen
v-else
/>
</div>
</
template
>
packages/@core/uikit/layout-ui/src/components/widgets/sidebar-fixed-button.vue
0 → 100644
View file @
640ad6d
<
script
setup
lang=
"ts"
>
import
{
MdiPin
,
MdiPinOff
}
from
'@vben-core/iconify'
;
interface
Props
{
theme
:
string
;
}
withDefaults
(
defineProps
<
Props
>
(),
{});
const
expandOnHover
=
defineModel
<
boolean
>
(
'expandOnHover'
);
function
toggleFixed
()
{
expandOnHover
.
value
=
!
expandOnHover
.
value
;
}
</
script
>
<
template
>
<div
:data-theme=
"theme"
class=
"flex-center hover:text-foreground text-foreground/60 hover:bg-accent-hover bg-accent absolute bottom-2 right-3 z-10 cursor-pointer rounded-sm p-1 transition-all duration-300 data-[theme=dark]:bg-[hsl(var(--color-dark-accent))] data-[theme=dark]:text-[hsl(var(--color-dark-foreground)/60%)] data-[theme=dark]:hover:bg-[hsl(var(--color-dark-accent-hover))] data-[theme=dark]:hover:text-[hsl(var(--color-dark-foreground))]"
@
click=
"toggleFixed"
>
<MdiPinOff
v-if=
"!expandOnHover"
/>
<MdiPin
v-else
/>
</div>
</
template
>
packages/@core/uikit/layout-ui/src/vben-layout.ts
View file @
640ad6d
...
...
@@ -99,64 +99,64 @@ interface VbenLayoutProps {
isMobile
?:
boolean
;
/**
* 布局方式
* side-nav 侧边菜单布局
* side
bar
-nav 侧边菜单布局
* header-nav 顶部菜单布局
* mixed-nav 侧边&顶部菜单布局
* side-mixed-nav 侧边混合菜单布局
* side
bar
-mixed-nav 侧边混合菜单布局
* full-content 全屏内容布局
* @default side-nav
* @default side
bar
-nav
*/
layout
?:
LayoutType
;
/**
* 侧边菜单折叠宽度
* @default 48
*/
sideCollapseWidth
?:
number
;
/**
* 侧边菜单折叠状态
* @default false
*/
sideCollapse
?:
boolean
;
side
bar
Collapse
?:
boolean
;
/**
* 侧边菜单是否折叠时,是否显示title
* @default true
*/
sideCollapseShowTitle
?:
boolean
;
side
bar
CollapseShowTitle
?:
boolean
;
/**
*
侧边菜单折叠宽度
* @default
48
*
侧边栏是否可见
* @default
true
*/
side
CollapseWidth
?:
number
;
side
barEnable
?:
boolean
;
/**
* 侧边栏是否隐藏
* @default false
*/
sideHidden
?:
boolean
;
/**
* 混合侧边扩展区域是否可见
* @default false
*/
sideMixedExtraVisible
?:
boolean
;
sidebarHidden
?:
boolean
;
/**
* 混合侧边栏宽度
* @default 80
*/
sideMixedWidth
?:
number
;
side
bar
MixedWidth
?:
number
;
/**
* 侧边栏是否半深色
* @default false
*/
sideSemiDark
?:
boolean
;
side
bar
SemiDark
?:
boolean
;
/**
* 侧边栏
* @default dark
*/
sideTheme
?:
ThemeModeType
;
/**
* 侧边栏是否可见
* @default true
*/
sideVisible
?:
boolean
;
sidebarTheme
?:
ThemeModeType
;
/**
* 侧边栏宽度
* @default 210
*/
sideWidth
?:
number
;
sidebarWidth
?:
number
;
/**
* tab是否可见
* @default true
*/
tabbarEnable
?:
boolean
;
/**
* footer背景颜色
* @default #fff
...
...
@@ -168,11 +168,6 @@ interface VbenLayoutProps {
*/
tabsHeight
?:
number
;
/**
* tab是否可见
* @default true
*/
tabsVisible
?:
boolean
;
/**
* zIndex
* @default 100
*/
...
...
packages/@core/uikit/layout-ui/src/vben-layout.vue
View file @
640ad6d
This diff is collapsed.
Click to expand it.
packages/@core/uikit/menu-ui/package.json
View file @
640ad6d
...
...
@@ -46,7 +46,7 @@
"@vben-core/shadcn-ui"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"vue"
:
"3.4.27"
}
}
packages/@core/uikit/shadcn-ui/package.json
View file @
640ad6d
...
...
@@ -50,7 +50,7 @@
"@vben-core/iconify"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben-core/typings"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"class-variance-authority"
:
"^0.7.0"
,
"clsx"
:
"2.1.1"
,
"radix-vue"
:
"^1.8.3"
,
...
...
packages/@core/uikit/shadcn-ui/src/components/index.ts
View file @
640ad6d
...
...
@@ -17,6 +17,7 @@ export * from './logo';
export
*
from
'./menu-badge'
;
export
*
from
'./pin-input'
;
export
*
from
'./popover'
;
export
*
from
'./scrollbar'
;
export
*
from
'./segmented'
;
export
*
from
'./sheet'
;
export
*
from
'./spinner'
;
...
...
packages/@core/uikit/shadcn-ui/src/components/scrollbar/index.ts
0 → 100644
View file @
640ad6d
export
{
default
as
VbenScrollbar
}
from
'./scrollbar.vue'
;
packages/@core/uikit/shadcn-ui/src/components/scrollbar/scrollbar.vue
0 → 100644
View file @
640ad6d
<
script
setup
lang=
"ts"
>
import
type
{
HTMLAttributes
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
ScrollArea
}
from
'#/components/ui/scroll-area'
;
import
{
cn
}
from
'#/lib/utils'
;
interface
Props
{
class
?:
HTMLAttributes
[
'class'
];
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
class
:
''
,
});
const
isAtTop
=
ref
(
true
);
const
isAtBottom
=
ref
(
false
);
function
handleScroll
(
event
:
Event
)
{
const
target
=
event
.
target
as
HTMLElement
;
const
scrollTop
=
target
?.
scrollTop
??
0
;
const
offsetHeight
=
target
?.
offsetHeight
??
0
;
const
scrollHeight
=
target
?.
scrollHeight
??
0
;
isAtTop
.
value
=
scrollTop
<=
0
;
isAtBottom
.
value
=
scrollTop
+
offsetHeight
>=
scrollHeight
;
}
</
script
>
<
template
>
<ScrollArea
:class=
"[
cn(props.class),
{
// 'shadow-none': isAtTop
&&
isAtBottom,
// shadow: !isAtTop || !isAtBottom,
// 'dark:shadow-white/20': !isAtTop || !isAtBottom,
// 'shadow-inner': !isAtBottom,
// 'dark:shadow-inner-white/20': !isAtBottom,
},
]"
:on-scroll="handleScroll"
>
<slot></slot>
</ScrollArea>
</
template
>
packages/@core/uikit/shadcn-ui/src/components/sheet/sheet.vue
View file @
640ad6d
...
...
@@ -4,7 +4,7 @@ import { computed, useSlots } from 'vue';
import
{
Cross2Icon
}
from
'@radix-icons/vue'
;
import
{
VbenButton
,
VbenIconButton
}
from
'#/components/button'
;
import
{
ScrollArea
}
from
'#/components/ui/scroll-area
'
;
import
{
VbenScrollbar
}
from
'#/components/scrollbar
'
;
import
{
Sheet
,
SheetClose
,
...
...
@@ -89,9 +89,9 @@ function handlerSubmit() {
</SheetClose>
</SheetHeader>
<div
class=
"h-full pb-16"
>
<
ScrollArea
class=
"h-full"
>
<
VbenScrollbar
class=
"h-full"
>
<slot></slot>
</
ScrollArea
>
</
VbenScrollbar
>
</div>
<SheetFooter
v-if=
"showFooter || slots.footer"
as-child
>
<div
...
...
packages/@core/uikit/tabs-ui/src/components/index.ts
View file @
640ad6d
export
{
default
as
ChromeTabs
}
from
'./chrome-tabs/tabs.vue'
;
export
{
default
as
TabsMore
}
from
'./tabs-more.vue'
;
export
{
default
as
TabsScreen
}
from
'./tabs-screen.vue'
;
packages/@core/uikit/tabs-ui/src/index.ts
View file @
640ad6d
export
{
TabsMore
,
TabsScreen
}
from
'./components'
;
export
{
default
as
TabsView
}
from
'./tabs-view.vue'
;
export
*
from
'./widgets'
;
export
type
{
IContextMenuItem
}
from
'@vben-core/shadcn-ui'
;
packages/@core/uikit/tabs-ui/src/widgets/index.ts
0 → 100644
View file @
640ad6d
export
{
default
as
TabsToolMore
}
from
'./tool-more.vue'
;
export
{
default
as
TabsToolScreen
}
from
'./tool-screen.vue'
;
packages/@core/uikit/tabs-ui/src/
components/tabs
-more.vue
→
packages/@core/uikit/tabs-ui/src/
widgets/tool
-more.vue
View file @
640ad6d
File moved
packages/@core/uikit/tabs-ui/src/
components/tabs
-screen.vue
→
packages/@core/uikit/tabs-ui/src/
widgets/tool
-screen.vue
View file @
640ad6d
File moved
packages/business/common-ui/package.json
View file @
640ad6d
...
...
@@ -50,8 +50,8 @@
"@vben-core/shadcn-ui"
:
"workspace:*"
,
"@vben-core/toolkit"
:
"workspace:*"
,
"@vben/locales"
:
"workspace:*"
,
"@vueuse/core"
:
"^10.10.
0
"
,
"@vueuse/integrations"
:
"^10.10.
0
"
,
"@vueuse/core"
:
"^10.10.
1
"
,
"@vueuse/integrations"
:
"^10.10.
1
"
,
"qrcode"
:
"^1.5.3"
,
"vue"
:
"3.4.27"
,
"vue-router"
:
"^4.3.3"
...
...
packages/business/common-ui/src/global-search/search-panel.vue
View file @
640ad6d
...
...
@@ -6,7 +6,7 @@ import { useRouter } from 'vue-router';
import
{
$t
}
from
'@vben/locales'
;
import
{
IcRoundClose
,
IcRoundSearchOff
}
from
'@vben-core/iconify'
;
import
{
ScrollArea
,
VbenIcon
}
from
'@vben-core/shadcn-ui'
;
import
{
VbenIcon
,
VbenScrollbar
}
from
'@vben-core/shadcn-ui'
;
import
{
mapTree
,
traverseTreeValues
}
from
'@vben-core/toolkit'
;
import
{
onKeyStroke
,
useLocalStorage
,
useThrottleFn
}
from
'@vueuse/core'
;
...
...
@@ -214,7 +214,7 @@ onMounted(() => {
</
script
>
<
template
>
<
ScrollArea
>
<
VbenScrollbar
>
<div
class=
"!flex h-full justify-center px-4 sm:max-h-[450px]"
>
<!-- 无搜索结果 -->
<div
...
...
@@ -275,5 +275,5 @@ onMounted(() => {
</li>
</ul>
</div>
</
ScrollArea
>
</
VbenScrollbar
>
</
template
>
packages/business/common-ui/src/notification/notification.vue
View file @
640ad6d
...
...
@@ -7,10 +7,10 @@ import {
IcRoundNotificationsNone
,
}
from
'@vben-core/iconify'
;
import
{
ScrollArea
,
VbenButton
,
VbenIconButton
,
VbenPopover
,
VbenScrollbar
,
}
from
'@vben-core/shadcn-ui'
;
import
{
useToggle
}
from
'@vueuse/core'
;
...
...
@@ -81,7 +81,7 @@ function handleClick(item: NotificationItem) {
</
template
>
<div
class=
"relative"
>
<div
class=
"flex items-center justify-between
border-b
p-4 py-3"
>
<div
class=
"flex items-center justify-between p-4 py-3"
>
<div
class=
"text-foreground"
>
{{ $t('widgets.notifications') }}
</div>
<VbenIconButton
:tooltip=
"$t('widgets.make-all-as-read')"
...
...
@@ -90,11 +90,11 @@ function handleClick(item: NotificationItem) {
<IcRoundMarkEmailRead
/>
</VbenIconButton>
</div>
<
ScrollArea
v-if=
"notifications.length > 0"
>
<
VbenScrollbar
v-if=
"notifications.length > 0"
>
<ul
class=
"!flex max-h-[360px] w-full flex-col"
>
<
template
v-for=
"item in notifications"
:key=
"item.title"
>
<li
class=
"hover:bg-accent relative flex w-full cursor-pointer items-start gap-5 border-t px-3 py-3"
class=
"hover:bg-accent
border-border
relative flex w-full cursor-pointer items-start gap-5 border-t px-3 py-3"
@
click=
"handleClick(item)"
>
<span
...
...
@@ -123,7 +123,7 @@ function handleClick(item: NotificationItem) {
</li>
</
template
>
</ul>
</
ScrollArea
>
</
VbenScrollbar
>
<
template
v-else
>
<div
class=
"flex-center text-muted-foreground min-h-[150px] w-full"
>
...
...
@@ -131,7 +131,9 @@ function handleClick(item: NotificationItem) {
</div>
</
template
>
<div
class=
"flex items-center justify-between border-t px-4 py-3"
>
<div
class=
"border-border flex items-center justify-between border-t px-4 py-3"
>
<VbenButton
size=
"sm"
variant=
"ghost"
@
click=
"handleClear"
>
{{ $t('widgets.clear-notifications') }}
</VbenButton>
...
...
packages/business/common-ui/src/preferences/blocks/layout/layout.vue
View file @
640ad6d
...
...
@@ -11,8 +11,8 @@ import {
FullContent
,
HeaderNav
,
MixedNav
,
SideMixedNav
,
SideNav
,
Side
bar
MixedNav
,
Side
bar
Nav
,
}
from
'../../icons'
;
interface
PresetItem
{
...
...
@@ -25,26 +25,26 @@ defineOptions({
name
:
'PreferenceLayout'
,
});
const
modelValue
=
defineModel
<
LayoutType
>
({
default
:
'side-nav'
});
const
modelValue
=
defineModel
<
LayoutType
>
({
default
:
'side
bar
-nav'
});
const
components
:
Record
<
LayoutType
,
Component
>
=
{
'full-content'
:
FullContent
,
'header-nav'
:
HeaderNav
,
'mixed-nav'
:
MixedNav
,
'side
-mixed-nav'
:
Side
MixedNav
,
'side
-nav'
:
Side
Nav
,
'side
bar-mixed-nav'
:
Sidebar
MixedNav
,
'side
bar-nav'
:
Sidebar
Nav
,
};
const
PRESET
=
computed
(():
PresetItem
[]
=>
[
{
name
:
$t
(
'preference.vertical'
),
tip
:
$t
(
'preference.vertical-tip'
),
type
:
'side-nav'
,
type
:
'side
bar
-nav'
,
},
{
name
:
$t
(
'preference.two-column'
),
tip
:
$t
(
'preference.two-column-tip'
),
type
:
'side-mixed-nav'
,
type
:
'side
bar
-mixed-nav'
,
},
{
name
:
$t
(
'preference.horizontal'
),
...
...
packages/business/common-ui/src/preferences/blocks/layout/sidebar.vue
View file @
640ad6d
...
...
@@ -10,21 +10,21 @@ defineOptions({
defineProps
<
{
disabled
:
boolean
}
>
();
const
sidebarEnable
=
defineModel
<
boolean
>
(
'sidebarEnable'
);
const
sidebarCollapseShowTitle
=
defineModel
<
boolean
>
(
'sidebarCollapseShowTitle'
,
const
sidebarCollapse
d
ShowTitle
=
defineModel
<
boolean
>
(
'sidebarCollapse
d
ShowTitle'
,
);
const
sidebarCollapse
=
defineModel
<
boolean
>
(
'sidebarCollapse
'
);
const
sidebarCollapse
d
=
defineModel
<
boolean
>
(
'sidebarCollapsed
'
);
</
script
>
<
template
>
<SwitchItem
v-model=
"sidebarEnable"
:disabled=
"disabled"
>
{{
$t
(
'preference.side-visible'
)
}}
</SwitchItem>
<SwitchItem
v-model=
"sidebarCollapse"
:disabled=
"!sidebarEnable || disabled"
>
<SwitchItem
v-model=
"sidebarCollapse
d
"
:disabled=
"!sidebarEnable || disabled"
>
{{
$t
(
'preference.collapse'
)
}}
</SwitchItem>
<SwitchItem
v-model=
"sidebarCollapseShowTitle"
v-model=
"sidebarCollapse
d
ShowTitle"
:disabled=
"!sidebarEnable || disabled"
>
{{
$t
(
'preference.collapse-show-title'
)
}}
...
...
packages/business/common-ui/src/preferences/icons/index.ts
View file @
640ad6d
...
...
@@ -3,8 +3,8 @@ import HeaderNav from './header-nav.vue';
export
{
default
as
ContentCompact
}
from
'./content-compact.vue'
;
export
{
default
as
FullContent
}
from
'./full-content.vue'
;
export
{
default
as
MixedNav
}
from
'./mixed-nav.vue'
;
export
{
default
as
Side
MixedNav
}
from
'./side
-mixed-nav.vue'
;
export
{
default
as
Side
Nav
}
from
'./side
-nav.vue'
;
export
{
default
as
Side
barMixedNav
}
from
'./sidebar
-mixed-nav.vue'
;
export
{
default
as
Side
barNav
}
from
'./sidebar
-nav.vue'
;
const
ContentWide
=
HeaderNav
;
export
{
ContentWide
,
HeaderNav
};
packages/business/common-ui/src/preferences/icons/side-mixed-nav.vue
→
packages/business/common-ui/src/preferences/icons/side
bar
-mixed-nav.vue
View file @
640ad6d
File moved
packages/business/common-ui/src/preferences/icons/side-nav.vue
→
packages/business/common-ui/src/preferences/icons/side
bar
-nav.vue
View file @
640ad6d
File moved
packages/business/common-ui/src/preferences/preferences-widget.vue
View file @
640ad6d
...
...
@@ -22,7 +22,7 @@ import Preferences from './preferences.vue';
:breadcrumb-hide-only-one=
"preferences.breadcrumb.hideOnlyOne"
:breadcrumb-home=
"preferences.breadcrumb.showHome"
:breadcrumb-icon=
"preferences.breadcrumb.showIcon"
:breadcrumb-style=
"preferences.breadcrumb.styleType"
:breadcrumb-style
-type
=
"preferences.breadcrumb.styleType"
:color-primary-presets=
"COLOR_PRIMARY_RESETS"
:footer-enable=
"preferences.footer.enable"
:footer-fixed=
"preferences.footer.fixed"
...
...
@@ -32,8 +32,8 @@ import Preferences from './preferences.vue';
:navigation-split=
"preferences.navigation.split"
:navigation-style-type=
"preferences.navigation.styleType"
:shortcut-keys-enable=
"preferences.shortcutKeys.enable"
:sidebar-collapse
=
"preferences.sidebar.collapse
"
:sidebar-collapse
-show-title=
"preferences.sidebar.collapse
ShowTitle"
:sidebar-collapse
d=
"preferences.sidebar.collapsed
"
:sidebar-collapse
d-show-title=
"preferences.sidebar.collapsed
ShowTitle"
:sidebar-enable=
"preferences.sidebar.enable"
:tabbar-enable=
"preferences.tabbar.enable"
:tabbar-show-icon=
"preferences.tabbar.showIcon"
...
...
@@ -103,11 +103,11 @@ import Preferences from './preferences.vue';
@update:shortcut-keys-enable="
(val) => updatePreferences({ shortcutKeys: { enable: val } })
"
@update:sidebar-collapse="
(val) => updatePreferences({ sidebar: { collapse: val } })
@update:sidebar-collapse
d
="
(val) => updatePreferences({ sidebar: { collapse
d
: val } })
"
@update:sidebar-collapse-show-title="
(val) => updatePreferences({ sidebar: { collapseShowTitle: val } })
@update:sidebar-collapse
d
-show-title="
(val) => updatePreferences({ sidebar: { collapse
d
ShowTitle: val } })
"
@update:sidebar-enable="
(val) => updatePreferences({ sidebar: { enable: val } })
...
...
packages/business/common-ui/src/preferences/preferences.vue
View file @
640ad6d
...
...
@@ -70,9 +70,9 @@ const transitionEnable = defineModel<boolean>('transitionEnable');
const
themeColorPrimary
=
defineModel
<
string
>
(
'themeColorPrimary'
);
const
sidebarEnable
=
defineModel
<
boolean
>
(
'sidebarEnable'
);
const
sidebarCollapse
=
defineModel
<
boolean
>
(
'sidebarCollapse
'
);
const
sidebarCollapseShowTitle
=
defineModel
<
boolean
>
(
'sidebarCollapseShowTitle'
,
const
sidebarCollapse
d
=
defineModel
<
boolean
>
(
'sidebarCollapsed
'
);
const
sidebarCollapse
d
ShowTitle
=
defineModel
<
boolean
>
(
'sidebarCollapse
d
ShowTitle'
,
);
const
headerEnable
=
defineModel
<
boolean
>
(
'headerEnable'
);
...
...
@@ -216,8 +216,8 @@ function handleReset() {
<Block
:title=
"$t('preference.sidebar')"
>
<Sidebar
v-model:side
-collapse-show-title=
"sidebarCollapseShowTitle
"
v-model:sidebar-collapse
=
"sidebarCollaps
e"
v-model:side
bar-collapsed=
"sidebarCollapsed
"
v-model:sidebar-collapse
d-show-title=
"sidebarCollapsedShowTitl
e"
v-model:sidebar-enable=
"sidebarEnable"
:disabled=
"!isSideMode"
/>
...
...
packages/business/layouts/package.json
View file @
640ad6d
...
...
@@ -41,6 +41,7 @@
}
},
"dependencies"
:
{
"@vben-core/helpers"
:
"workspace:*"
,
"@vben-core/iconify"
:
"workspace:*"
,
"@vben-core/layout-ui"
:
"workspace:*"
,
"@vben-core/menu-ui"
:
"workspace:*"
,
...
...
packages/business/layouts/src/basic/layout.vue
View file @
640ad6d
...
...
@@ -9,11 +9,7 @@ import {
updatePreferences
,
usePreferences
,
}
from
'@vben-core/preferences'
;
import
{
VbenBackTop
,
// VbenFloatingButtonGroup,
VbenLogo
,
}
from
'@vben-core/shadcn-ui'
;
import
{
VbenBackTop
,
VbenLogo
}
from
'@vben-core/shadcn-ui'
;
import
{
mapTree
}
from
'@vben-core/toolkit'
;
import
{
MenuRecordRaw
}
from
'@vben-core/typings'
;
...
...
@@ -27,7 +23,7 @@ import {
useExtraMenu
,
useMixedMenu
,
}
from
'./menu'
;
import
{
LayoutTab
s
,
LayoutTabsToolbar
}
from
'./tabs
'
;
import
{
LayoutTab
bar
,
LayoutTabbarTools
}
from
'./tabbar
'
;
import
{
Breadcrumb
}
from
'./widgets'
;
defineOptions
({
name
:
'BasicLayout'
});
...
...
@@ -45,8 +41,8 @@ const theme = computed(() => {
});
const
logoClass
=
computed
(()
=>
{
const
{
collapse
,
collapse
ShowTitle
}
=
preferences
.
sidebar
;
return
collapse
ShowTitle
&&
collapse
&&
!
isMixedNav
.
value
?
'mx-auto'
:
''
;
const
{
collapse
d
,
collapsed
ShowTitle
}
=
preferences
.
sidebar
;
return
collapse
dShowTitle
&&
collapsed
&&
!
isMixedNav
.
value
?
'mx-auto'
:
''
;
});
const
isMenuRounded
=
computed
(()
=>
{
...
...
@@ -59,12 +55,12 @@ const logoCollapse = computed(() => {
}
const
{
isMobile
}
=
preferences
.
app
;
const
{
collapse
}
=
preferences
.
sidebar
;
const
{
collapse
d
}
=
preferences
.
sidebar
;
if
(
!
collapse
&&
isMobile
)
{
if
(
!
collapse
d
&&
isMobile
)
{
return
false
;
}
return
collapse
||
isSideMixedNav
.
value
;
return
collapse
d
||
isSideMixedNav
.
value
;
});
const
showHeaderNav
=
computed
(()
=>
{
...
...
@@ -74,11 +70,11 @@ const showHeaderNav = computed(() => {
const
{
extraActiveMenu
,
extraMenus
,
extraVisible
,
handleDefaultSelect
,
handleMenuMouseEnter
,
handleMixedMenuSelect
,
handleSideMouseLeave
,
sidebarExtraVisible
,
}
=
useExtraMenu
();
const
{
...
...
@@ -92,17 +88,22 @@ const {
function
wrapperMenus
(
menus
:
MenuRecordRaw
[])
{
return
mapTree
(
menus
,
(
item
)
=>
{
return
{
...
item
,
name
:
$t
(
item
.
name
),
};
return
{
...
item
,
name
:
$t
(
item
.
name
)
};
});
}
function
toggleSidebar
()
{
updatePreferences
({
sidebar
:
{
hidden
:
!
preferences
.
sidebar
.
hidden
,
},
});
}
</
script
>
<
template
>
<VbenAdminLayout
v-model:side
-extra-visible=
"e
xtraVisible"
v-model:side
bar-extra-visible=
"sidebarE
xtraVisible"
:content-compact=
"preferences.app.contentCompact"
:footer-enable=
"preferences.footer.enable"
:footer-fixed=
"preferences.footer.fixed"
...
...
@@ -111,37 +112,38 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
:header-visible=
"preferences.header.enable"
:is-mobile=
"preferences.app.isMobile"
:layout=
"layout"
:side
-collapse=
"preferences.sidebar.collapse
"
:side
-collapse-show-title=
"preferences.sidebar.collapse
ShowTitle"
:side
-expand-on-hover=
"preferences.sidebar.expandOnHover
"
:side
-extra-collapse=
"preferences.sidebar.extraCollapse
"
:side
-hidden=
"preferences.sidebar.hidden
"
:side
-semi-dark=
"preferences.app.semiDarkMenu
"
:side
-theme=
"theme
"
:side
-visible=
"sideVisibl
e"
:side-width=
"preferences.sidebar.width"
:tab
s-visi
ble=
"preferences.tabbar.enable"
:side
bar-collapse=
"preferences.sidebar.collapsed
"
:side
bar-collapse-show-title=
"preferences.sidebar.collapsed
ShowTitle"
:side
bar-enable=
"sideVisible
"
:side
bar-expand-on-hover=
"preferences.sidebar.expandOnHover
"
:side
bar-extra-collapse=
"preferences.sidebar.extraCollapse
"
:side
bar-hidden=
"preferences.sidebar.hidden
"
:side
bar-semi-dark=
"preferences.app.semiDarkMenu
"
:side
bar-theme=
"them
e"
:side
bar
-width=
"preferences.sidebar.width"
:tab
bar-ena
ble=
"preferences.tabbar.enable"
@
side-mouse-leave=
"handleSideMouseLeave"
@
update:side-collapse=
"
(value: boolean) => updatePreferences(
{ sidebar: { collapse: value } })
@
toggle-sidebar=
"toggleSidebar"
@
update:sidebar-collapse=
"
(value: boolean) => updatePreferences(
{ sidebar: { collapsed: value } })
"
@update:side-expand-on-hover="
@update:sidebar-enable="
(value: boolean) => updatePreferences({ sidebar: { enable: value } })
"
@update:sidebar-expand-on-hover="
(value: boolean) =>
updatePreferences({ sidebar: { expandOnHover: value } })
"
@update:side-extra-collapse="
@update:side
bar
-extra-collapse="
(value: boolean) =>
updatePreferences({ sidebar: { extraCollapse: value } })
"
@update:side-visible="
(value: boolean) => updatePreferences({ sidebar: { enable: value } })
"
>
<template
v-if=
"preferences.app.showPreference"
#
preferences
>
<PreferencesWidget
/>
</
template
>
<
template
#
floating-
button-group
>
<
template
#
floating-
groups
>
<VbenBackTop
/>
<!--
<VbenFloatingButtonGroup
/>
-->
</
template
>
...
...
@@ -194,8 +196,8 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
<
template
#
menu
>
<LayoutMenu
:accordion=
"preferences.navigation.accordion"
:collapse=
"preferences.sidebar.collapse"
:collapse-show-title=
"preferences.sidebar.collapseShowTitle"
:collapse=
"preferences.sidebar.collapse
d
"
:collapse-show-title=
"preferences.sidebar.collapse
d
ShowTitle"
:default-active=
"sideActive"
:menus=
"wrapperMenus(sideMenus)"
:rounded=
"isMenuRounded"
...
...
@@ -207,7 +209,8 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
<
template
#
mixed-menu
>
<LayoutMixedMenu
:active-path=
"extraActiveMenu"
:collapse=
"!preferences.sidebar.collapseShowTitle"
:collapse=
"!preferences.sidebar.collapsedShowTitle"
:menus=
"wrapperMenus(headerMenus)"
:rounded=
"isMenuRounded"
:theme=
"theme"
@
default-select=
"handleDefaultSelect"
...
...
@@ -234,14 +237,14 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
/>
</
template
>
<
template
#
tab
s
>
<LayoutTab
s
<
template
#
tab
bar
>
<LayoutTab
bar
v-if=
"preferences.tabbar.enable"
:show-icon=
"preferences.tabbar.showIcon"
/>
</
template
>
<
template
#
tab
s-toolbar
>
<LayoutTab
sToolbar
v-if=
"preferences.tabbar.enable"
/>
<
template
#
tab
bar-tools
>
<LayoutTab
barTools
v-if=
"preferences.tabbar.enable"
/>
</
template
>
<!-- 主体内容 -->
...
...
packages/business/layouts/src/basic/menu/mixed-menu.vue
View file @
640ad6d
...
...
@@ -2,17 +2,15 @@
import
type
{
NormalMenuProps
}
from
'@vben-core/menu-ui'
;
import
type
{
MenuRecordRaw
}
from
'@vben-core/typings'
;
import
{
computed
,
onBeforeMount
}
from
'vue'
;
import
{
onBeforeMount
}
from
'vue'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
findMenuByPath
}
from
'@vben-core/helpers'
;
import
{
NormalMenu
}
from
'@vben-core/menu-ui'
;
import
{
useAccessStore
}
from
'@vben-core/stores'
;
import
{
findMenuByPath
}
from
'./helper'
;
interface
Props
extends
NormalMenuProps
{}
defineProps
<
Props
>
();
const
props
=
defineProps
<
Props
>
();
const
emit
=
defineEmits
<
{
defaultSelect
:
[
MenuRecordRaw
,
MenuRecordRaw
?];
...
...
@@ -20,19 +18,16 @@ const emit = defineEmits<{
select
:
[
MenuRecordRaw
];
}
>
();
const
accessStore
=
useAccessStore
();
const
route
=
useRoute
();
const
menus
=
computed
(()
=>
accessStore
.
getAccessMenus
);
function
handleSelect
(
menu
:
MenuRecordRaw
)
{
emit
(
'select'
,
menu
);
}
onBeforeMount
(()
=>
{
const
menu
=
findMenuByPath
(
menus
.
value
,
route
.
path
);
const
menu
=
findMenuByPath
(
props
.
menus
||
[]
,
route
.
path
);
if
(
menu
)
{
const
rootMenu
=
menus
.
value
.
find
(
const
rootMenu
=
(
props
.
menus
||
[])
.
find
(
(
item
)
=>
item
.
path
===
menu
.
parents
?.[
0
],
);
emit
(
'defaultSelect'
,
menu
,
rootMenu
);
...
...
packages/business/layouts/src/basic/menu/use-extra-menu.ts
View file @
640ad6d
...
...
@@ -3,10 +3,10 @@ import type { MenuRecordRaw } from '@vben-core/typings';
import
{
computed
,
ref
}
from
'vue'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
findRootMenuByPath
}
from
'@vben-core/helpers'
;
import
{
preferences
}
from
'@vben-core/preferences'
;
import
{
useAccessStore
}
from
'@vben-core/stores'
;
import
{
findRootMenuByPath
}
from
'./helper'
;
import
{
useNavigation
}
from
'./use-navigation'
;
function
useExtraMenu
()
{
...
...
@@ -17,7 +17,7 @@ function useExtraMenu() {
const
route
=
useRoute
();
const
extraMenus
=
ref
<
MenuRecordRaw
[]
>
([]);
const
e
xtraVisible
=
ref
<
boolean
>
(
false
);
const
sidebarE
xtraVisible
=
ref
<
boolean
>
(
false
);
const
extraActiveMenu
=
ref
(
''
);
/**
...
...
@@ -29,7 +29,7 @@ function useExtraMenu() {
extraActiveMenu
.
value
=
menu
.
parents
?.[
0
]
??
menu
.
path
;
const
hasChildren
=
extraMenus
.
value
.
length
>
0
;
e
xtraVisible
.
value
=
hasChildren
;
sidebarE
xtraVisible
.
value
=
hasChildren
;
if
(
!
hasChildren
)
{
await
navigation
(
menu
.
path
);
}
...
...
@@ -48,7 +48,7 @@ function useExtraMenu() {
extraActiveMenu
.
value
=
menu
.
parents
?.[
0
]
??
menu
.
path
;
if
(
preferences
.
sidebar
.
expandOnHover
)
{
e
xtraVisible
.
value
=
extraMenus
.
value
.
length
>
0
;
sidebarE
xtraVisible
.
value
=
extraMenus
.
value
.
length
>
0
;
}
};
...
...
@@ -59,7 +59,7 @@ function useExtraMenu() {
if
(
preferences
.
sidebar
.
expandOnHover
)
{
return
;
}
e
xtraVisible
.
value
=
false
;
sidebarE
xtraVisible
.
value
=
false
;
const
{
findMenu
,
rootMenu
,
rootMenuPath
}
=
findRootMenuByPath
(
menus
.
value
,
...
...
@@ -74,18 +74,18 @@ function useExtraMenu() {
const
{
findMenu
}
=
findRootMenuByPath
(
menus
.
value
,
menu
.
path
);
extraMenus
.
value
=
findMenu
?.
children
??
[];
extraActiveMenu
.
value
=
menu
.
parents
?.[
0
]
??
menu
.
path
;
e
xtraVisible
.
value
=
extraMenus
.
value
.
length
>
0
;
sidebarE
xtraVisible
.
value
=
extraMenus
.
value
.
length
>
0
;
}
};
return
{
extraActiveMenu
,
extraMenus
,
extraVisible
,
handleDefaultSelect
,
handleMenuMouseEnter
,
handleMixedMenuSelect
,
handleSideMouseLeave
,
sidebarExtraVisible
,
};
}
...
...
packages/business/layouts/src/basic/menu/use-mixed-menu.ts
View file @
640ad6d
...
...
@@ -3,10 +3,10 @@ import type { MenuRecordRaw } from '@vben-core/typings';
import
{
computed
,
onBeforeMount
,
ref
}
from
'vue'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
findRootMenuByPath
}
from
'@vben-core/helpers'
;
import
{
preferences
,
usePreferences
}
from
'@vben-core/preferences'
;
import
{
useAccessStore
}
from
'@vben-core/stores'
;
import
{
findRootMenuByPath
}
from
'./helper'
;
import
{
useNavigation
}
from
'./use-navigation'
;
function
useMixedMenu
()
{
...
...
packages/business/layouts/src/basic/tabbar/index.ts
0 → 100644
View file @
640ad6d
export
{
default
as
LayoutTabbar
}
from
'./tabbar.vue'
;
export
{
default
as
LayoutTabbarTools
}
from
'./tabbar-tools.vue'
;
export
*
from
'./use-tabs'
;
packages/business/layouts/src/basic/tab
s/tabs-toolbar
.vue
→
packages/business/layouts/src/basic/tab
bar/tabbar-tools
.vue
View file @
640ad6d
...
...
@@ -3,7 +3,7 @@ import { computed } from 'vue';
import
{
useRoute
}
from
'vue-router'
;
import
{
preferences
,
updatePreferences
}
from
'@vben-core/preferences'
;
import
{
Tabs
More
,
Tabs
Screen
}
from
'@vben-core/tabs-ui'
;
import
{
Tabs
ToolMore
,
TabsTool
Screen
}
from
'@vben-core/tabs-ui'
;
import
{
useTabs
}
from
'./use-tabs'
;
...
...
@@ -29,8 +29,8 @@ function handleScreenChange(screen: boolean) {
<
template
>
<div
class=
"flex-center h-full"
>
<TabsMore
:menus=
"menus"
/>
<TabsScreen
<Tabs
Tool
More
:menus=
"menus"
/>
<Tabs
Tool
Screen
:screen=
"preferences.sidebar.hidden"
@
change=
"handleScreenChange"
@
update:screen=
"handleScreenChange"
...
...
packages/business/layouts/src/basic/tab
s/tabs
.vue
→
packages/business/layouts/src/basic/tab
bar/tabbar
.vue
View file @
640ad6d
...
...
@@ -4,7 +4,7 @@ import { TabsView } from '@vben-core/tabs-ui';
import
{
useTabs
}
from
'./use-tabs'
;
defineOptions
({
name
:
'LayoutTab
s
'
,
name
:
'LayoutTab
bar
'
,
});
defineProps
<
{
showIcon
?:
boolean
}
>
();
...
...
packages/business/layouts/src/basic/tab
s
/use-tabs.ts
→
packages/business/layouts/src/basic/tab
bar
/use-tabs.ts
View file @
640ad6d
File moved
packages/business/layouts/src/basic/tabs/index.ts
deleted
100644 → 0
View file @
35c3dd7
export
{
default
as
LayoutTabs
}
from
'./tabs.vue'
;
export
{
default
as
LayoutTabsToolbar
}
from
'./tabs-toolbar.vue'
;
export
*
from
'./use-tabs'
;
pnpm-lock.yaml
View file @
640ad6d
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