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 1c9525a0
authored
Jul 31, 2024
by
Li Kui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore(@vben/web-naive): Import on demand
1 parent
082847c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
apps/web-naive/src/app.vue
apps/web-naive/src/bootstrap.ts
apps/web-naive/src/router/routes/modules/demos.ts
website/src/guide/essentials/development.md
apps/web-naive/src/app.vue
View file @
1c9525a
...
@@ -11,6 +11,9 @@ import {
...
@@ -11,6 +11,9 @@ import {
enUS
,
enUS
,
GlobalThemeOverrides
,
GlobalThemeOverrides
,
lightTheme
,
lightTheme
,
NConfigProvider
,
NMessageProvider
,
NNotificationProvider
,
zhCN
,
zhCN
,
}
from
'naive-ui'
;
}
from
'naive-ui'
;
...
...
apps/web-naive/src/bootstrap.ts
View file @
1c9525a
...
@@ -5,8 +5,6 @@ import { initStores } from '@vben/stores';
...
@@ -5,8 +5,6 @@ import { initStores } from '@vben/stores';
import
'@vben/styles'
;
import
'@vben/styles'
;
import
'@vben/styles/antd'
;
import
'@vben/styles/antd'
;
import
naive
from
'naive-ui'
;
import
{
setupI18n
}
from
'#/locales'
;
import
{
setupI18n
}
from
'#/locales'
;
import
App
from
'./app.vue'
;
import
App
from
'./app.vue'
;
...
@@ -27,8 +25,6 @@ async function bootstrap(namespace: string) {
...
@@ -27,8 +25,6 @@ async function bootstrap(namespace: string) {
// 配置路由及路由守卫
// 配置路由及路由守卫
app
.
use
(
router
);
app
.
use
(
router
);
app
.
use
(
naive
);
app
.
mount
(
'#app'
);
app
.
mount
(
'#app'
);
}
}
...
...
apps/web-naive/src/router/routes/modules/demos.ts
View file @
1c9525a
...
@@ -15,14 +15,13 @@ const routes: RouteRecordRaw[] = [
...
@@ -15,14 +15,13 @@ const routes: RouteRecordRaw[] = [
name
:
'Demos'
,
name
:
'Demos'
,
path
:
'/demos'
,
path
:
'/demos'
,
children
:
[
children
:
[
// 权限控制
{
{
meta
:
{
meta
:
{
icon
:
'mdi:shield-key-outline'
,
icon
:
'mdi:shield-key-outline'
,
title
:
$t
(
'page.demos.naive'
),
title
:
$t
(
'page.demos.naive'
),
},
},
name
:
'NaiveDemos'
,
name
:
'NaiveDemos'
,
path
:
'/demos/
access
'
,
path
:
'/demos/
naive
'
,
component
:
()
=>
import
(
'#/views/demos/naive/index.vue'
),
component
:
()
=>
import
(
'#/views/demos/naive/index.vue'
),
},
},
],
],
...
...
website/src/guide/essentials/development.md
View file @
1c9525a
...
@@ -129,6 +129,12 @@ pnpm dev:antd
...
@@ -129,6 +129,12 @@ pnpm dev:antd
pnpm dev:naive
pnpm dev:naive
```
```
运行
`web-ele`
应用:
```
bash
pnpm dev:ele
```
运行
`website`
应用:
运行
`website`
应用:
```
bash
```
bash
...
...
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