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 dc8573f3
authored
Feb 10, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 组合函数模版
1 parent
9f67fa79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
docs/guide/introduction.md
example/src/layouts/BasicLayout.vue
packages/constants/src/index.ts
docs/guide/introduction.md
View file @
dc8573f
...
@@ -45,12 +45,12 @@ venus/
...
@@ -45,12 +45,12 @@ venus/
│ ├── cli/ # CLI 工具(项目脚手架)
│ ├── cli/ # CLI 工具(项目脚手架)
│ ├── common-ui/ # 通用 UI 组件库
│ ├── common-ui/ # 通用 UI 组件库
│ ├── components/ # 公共组件
│ ├── components/ # 公共组件
│ ├── composables/ # Vue Composables(组合式函数)
│ ├── composables/ # Vue Composables(组合式函数
提供可复用的响应式逻辑
)
│ ├── constants/ # 常量定义(多应用共享)
│ ├── constants/ # 常量定义(多应用共享)
│ ├── stores/ # 状态管理(Pinia stores)
│ ├── stores/ # 状态管理(Pinia stores)
│ ├── tools/ # 工具函数(自动路由生成等)
│ ├── types/ # 类型定义
│ ├── types/ # 类型定义
│ └── utils/ # 工具函数
│ ├── tools/ # 工具函数(自动路由生成等构建工具和 Vite 插件包)
│ └── utils/ # 通用工具函数包(业务上通用的工具函数)
├── internal/ # 内部工具包
├── internal/ # 内部工具包
│ ├── lint-configs/ # 代码规范配置
│ ├── lint-configs/ # 代码规范配置
│ │ ├── commitlint-config/ # Commit 规范配置
│ │ ├── commitlint-config/ # Commit 规范配置
...
...
example/src/layouts/BasicLayout.vue
View file @
dc8573f
...
@@ -15,7 +15,7 @@ const router = useRouter();
...
@@ -15,7 +15,7 @@ const router = useRouter();
const
route
=
useRoute
();
const
route
=
useRoute
();
const
menuStore
=
useMenuStore
();
const
menuStore
=
useMenuStore
();
const
appName
=
"测试
平台系统
"
;
const
appName
=
"测试
验证平台
"
;
const
expandedKeys
=
ref
<
Set
<
string
>>
(
new
Set
());
const
expandedKeys
=
ref
<
Set
<
string
>>
(
new
Set
());
const
activeTopMenuId
=
ref
<
string
>
(
""
);
const
activeTopMenuId
=
ref
<
string
>
(
""
);
...
...
packages/constants/src/index.ts
View file @
dc8573f
export
*
from
"./core"
;
export
*
from
"./core"
;
export
*
from
"@venus/utils"
;
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