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 57620dc2
authored
Nov 06, 2025
by
Li Kui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: apply coderabbitai suggestions
1 parent
b472fbb7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
125 additions
and
4 deletions
apps/web-tdesign/src/adapter/component/index.ts
apps/web-tdesign/src/router/routes/modules/demos.ts
apps/web-tdesign/src/store/auth.ts
apps/web-tdesign/src/views/demos/antd/index.vue → apps/web-tdesign/src/views/demos/tdesign/index.vue
pnpm-lock.yaml
vben-admin.code-workspace
apps/web-tdesign/src/adapter/component/index.ts
View file @
57620dc
...
@@ -187,7 +187,7 @@ async function initComponentAdapter() {
...
@@ -187,7 +187,7 @@ async function initComponentAdapter() {
}
}
return
h
(
return
h
(
Button
,
Button
,
{
...
props
,
ghost
,
variant
,
attrs
,
theme
:
'
default
'
},
{
...
props
,
ghost
,
variant
,
attrs
,
theme
:
'
primary
'
},
slots
,
slots
,
);
);
},
},
...
...
apps/web-tdesign/src/router/routes/modules/demos.ts
View file @
57620dc
...
@@ -19,7 +19,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -19,7 +19,7 @@ const routes: RouteRecordRaw[] = [
},
},
name
:
'AntDesignDemos'
,
name
:
'AntDesignDemos'
,
path
:
'/demos/ant-design'
,
path
:
'/demos/ant-design'
,
component
:
()
=>
import
(
'#/views/demos/
antd
/index.vue'
),
component
:
()
=>
import
(
'#/views/demos/
tdesign
/index.vue'
),
},
},
],
],
},
},
...
...
apps/web-tdesign/src/store/auth.ts
View file @
57620dc
...
@@ -7,9 +7,9 @@ import { LOGIN_PATH } from '@vben/constants';
...
@@ -7,9 +7,9 @@ import { LOGIN_PATH } from '@vben/constants';
import
{
preferences
}
from
'@vben/preferences'
;
import
{
preferences
}
from
'@vben/preferences'
;
import
{
resetAllStores
,
useAccessStore
,
useUserStore
}
from
'@vben/stores'
;
import
{
resetAllStores
,
useAccessStore
,
useUserStore
}
from
'@vben/stores'
;
import
{
notification
}
from
'#/adapter/tdesign'
;
import
{
defineStore
}
from
'pinia'
;
import
{
defineStore
}
from
'pinia'
;
import
{
notification
}
from
'#/adapter/tdesign'
;
import
{
getAccessCodesApi
,
getUserInfoApi
,
loginApi
,
logoutApi
}
from
'#/api'
;
import
{
getAccessCodesApi
,
getUserInfoApi
,
loginApi
,
logoutApi
}
from
'#/api'
;
import
{
$t
}
from
'#/locales'
;
import
{
$t
}
from
'#/locales'
;
...
@@ -30,7 +30,7 @@ export const useAuthStore = defineStore('auth', () => {
...
@@ -30,7 +30,7 @@ export const useAuthStore = defineStore('auth', () => {
onSuccess
?:
()
=>
Promise
<
void
>
|
void
,
onSuccess
?:
()
=>
Promise
<
void
>
|
void
,
)
{
)
{
// 异步处理用户登录操作并获取 accessToken
// 异步处理用户登录操作并获取 accessToken
cons
t
userInfo
:
null
|
UserInfo
=
null
;
le
t
userInfo
:
null
|
UserInfo
=
null
;
try
{
try
{
loginLoading
.
value
=
true
;
loginLoading
.
value
=
true
;
const
{
accessToken
}
=
await
loginApi
(
params
);
const
{
accessToken
}
=
await
loginApi
(
params
);
...
...
apps/web-tdesign/src/views/demos/
antd
/index.vue
→
apps/web-tdesign/src/views/demos/
tdesign
/index.vue
View file @
57620dc
File moved
pnpm-lock.yaml
View file @
57620dc
...
@@ -841,6 +841,69 @@ importers:
...
@@ -841,6 +841,69 @@ importers:
specifier
:
'
catalog:'
specifier
:
'
catalog:'
version
:
4.5.1(vue@3.5.17(typescript@5.8.3))
version
:
4.5.1(vue@3.5.17(typescript@5.8.3))
apps/web-tdesign
:
dependencies
:
'
@vben/access'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/access
'
@vben/common-ui'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/common-ui
'
@vben/constants'
:
specifier
:
workspace:*
version
:
link:../../packages/constants
'
@vben/hooks'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/hooks
'
@vben/icons'
:
specifier
:
workspace:*
version
:
link:../../packages/icons
'
@vben/layouts'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/layouts
'
@vben/locales'
:
specifier
:
workspace:*
version
:
link:../../packages/locales
'
@vben/plugins'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/plugins
'
@vben/preferences'
:
specifier
:
workspace:*
version
:
link:../../packages/preferences
'
@vben/request'
:
specifier
:
workspace:*
version
:
link:../../packages/effects/request
'
@vben/stores'
:
specifier
:
workspace:*
version
:
link:../../packages/stores
'
@vben/styles'
:
specifier
:
workspace:*
version
:
link:../../packages/styles
'
@vben/types'
:
specifier
:
workspace:*
version
:
link:../../packages/types
'
@vben/utils'
:
specifier
:
workspace:*
version
:
link:../../packages/utils
'
@vueuse/core'
:
specifier
:
'
catalog:'
version
:
13.4.0(vue@3.5.17(typescript@5.8.3))
dayjs
:
specifier
:
'
catalog:'
version
:
1.11.13
pinia
:
specifier
:
^3.0.3
version
:
3.0.3(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
tdesign-vue-next
:
specifier
:
^1.17.1
version
:
1.17.2(vue@3.5.17(typescript@5.8.3))
vue
:
specifier
:
^3.5.17
version
:
3.5.17(typescript@5.8.3)
vue-router
:
specifier
:
'
catalog:'
version
:
4.5.1(vue@3.5.17(typescript@5.8.3))
docs
:
docs
:
dependencies
:
dependencies
:
'
@vben-core/shadcn-ui'
:
'
@vben-core/shadcn-ui'
:
...
@@ -4866,6 +4929,9 @@ packages:
...
@@ -4866,6 +4929,9 @@ packages:
'
@types/sortablejs@1.15.8'
:
'
@types/sortablejs@1.15.8'
:
resolution
:
{
integrity
:
sha512-b79830lW+RZfwaztgs1aVPgbasJ8e7AXtZYHTELNXZPsERt4ymJdjV4OccDbHQAvHrCcFpbF78jkm0R6h/pZVg==
}
resolution
:
{
integrity
:
sha512-b79830lW+RZfwaztgs1aVPgbasJ8e7AXtZYHTELNXZPsERt4ymJdjV4OccDbHQAvHrCcFpbF78jkm0R6h/pZVg==
}
'
@types/tinycolor2@1.4.6'
:
resolution
:
{
integrity
:
sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==
}
'
@types/triple-beam@1.3.5'
:
'
@types/triple-beam@1.3.5'
:
resolution
:
{
integrity
:
sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==
}
resolution
:
{
integrity
:
sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==
}
...
@@ -4875,6 +4941,9 @@ packages:
...
@@ -4875,6 +4941,9 @@ packages:
'
@types/unist@3.0.3'
:
'
@types/unist@3.0.3'
:
resolution
:
{
integrity
:
sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==
}
resolution
:
{
integrity
:
sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==
}
'
@types/validator@13.15.4'
:
resolution
:
{
integrity
:
sha512-LSFfpSnJJY9wbC0LQxgvfb+ynbHftFo0tMsFOl/J4wexLnYMmDSPaj2ZyDv3TkfL1UePxPrxOWJfbiRS8mQv7A==
}
'
@types/web-bluetooth@0.0.16'
:
'
@types/web-bluetooth@0.0.16'
:
resolution
:
{
integrity
:
sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==
}
resolution
:
{
integrity
:
sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==
}
...
@@ -10735,6 +10804,17 @@ packages:
...
@@ -10735,6 +10804,17 @@ packages:
resolution
:
{
integrity
:
sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==
}
resolution
:
{
integrity
:
sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==
}
engines
:
{
node
:
'
>=18'
}
engines
:
{
node
:
'
>=18'
}
tdesign-icons-vue-next@0.4.1
:
resolution
:
{
integrity
:
sha512-uDPuTLRORnGcTyVGNoentNaK4V+ZcBmhYwcY3KqDaQQ5rrPeLMxu0ZVmgOEf0JtF2QZiqAxY7vodNEiLUdoRKA==
}
peerDependencies
:
vue
:
^3.5.17
tdesign-vue-next@1.17.2
:
resolution
:
{
integrity
:
sha512-nTofPSKGQguOS+Lb62fDiLS1Rs3Ngzb8rE8sPEjfMdDjdFZ5kEUgvVp+J+8GKfgwVRAZRjv//qSzZVt6cqgXxA==
}
engines
:
{
node
:
'
>=
18'
}
peerDependencies
:
vue
:
^3.5.17
temp-dir@2.0.0
:
temp-dir@2.0.0
:
resolution
:
{
integrity
:
sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==
}
resolution
:
{
integrity
:
sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==
}
engines
:
{
node
:
'
>=8'
}
engines
:
{
node
:
'
>=8'
}
...
@@ -10785,6 +10865,9 @@ packages:
...
@@ -10785,6 +10865,9 @@ packages:
tinybench@2.9.0
:
tinybench@2.9.0
:
resolution
:
{
integrity
:
sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==
}
resolution
:
{
integrity
:
sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==
}
tinycolor2@1.6.0
:
resolution
:
{
integrity
:
sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==
}
tinyexec@0.3.2
:
tinyexec@0.3.2
:
resolution
:
{
integrity
:
sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==
}
resolution
:
{
integrity
:
sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==
}
...
@@ -11196,6 +11279,10 @@ packages:
...
@@ -11196,6 +11279,10 @@ packages:
validate-npm-package-license@3.0.4
:
validate-npm-package-license@3.0.4
:
resolution
:
{
integrity
:
sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==
}
resolution
:
{
integrity
:
sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==
}
validator@13.15.20
:
resolution
:
{
integrity
:
sha512-KxPOq3V2LmfQPP4eqf3Mq/zrT0Dqp2Vmx2Bn285LwVahLc+CsxOM0crBHczm8ijlcjZ0Q5Xd6LW3z3odTPnlrw==
}
engines
:
{
node
:
'
>=
0.10'
}
vdirs@0.1.8
:
vdirs@0.1.8
:
resolution
:
{
integrity
:
sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==
}
resolution
:
{
integrity
:
sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==
}
peerDependencies
:
peerDependencies
:
...
@@ -15070,12 +15157,16 @@ snapshots:
...
@@ -15070,12 +15157,16 @@ snapshots:
'
@types/sortablejs@1.15.8'
:
{}
'
@types/sortablejs@1.15.8'
:
{}
'
@types/tinycolor2@1.4.6'
:
{}
'
@types/triple-beam@1.3.5'
:
{}
'
@types/triple-beam@1.3.5'
:
{}
'
@types/trusted-types@2.0.7'
:
{}
'
@types/trusted-types@2.0.7'
:
{}
'
@types/unist@3.0.3'
:
{}
'
@types/unist@3.0.3'
:
{}
'
@types/validator@13.15.4'
:
{}
'
@types/web-bluetooth@0.0.16'
:
{}
'
@types/web-bluetooth@0.0.16'
:
{}
'
@types/web-bluetooth@0.0.20'
:
{}
'
@types/web-bluetooth@0.0.20'
:
{}
...
@@ -21614,6 +21705,28 @@ snapshots:
...
@@ -21614,6 +21705,28 @@ snapshots:
mkdirp
:
3.0.1
mkdirp
:
3.0.1
yallist
:
5.0.0
yallist
:
5.0.0
tdesign-icons-vue-next@0.4.1(vue@3.5.17(typescript@5.8.3))
:
dependencies
:
'
@babel/runtime'
:
7.27.6
vue
:
3.5.17(typescript@5.8.3)
tdesign-vue-next@1.17.2(vue@3.5.17(typescript@5.8.3))
:
dependencies
:
'
@babel/runtime'
:
7.27.6
'
@popperjs/core'
:
2.11.8
'
@types/lodash-es'
:
4.17.12
'
@types/sortablejs'
:
1.15.8
'
@types/tinycolor2'
:
1.4.6
'
@types/validator'
:
13.15.4
dayjs
:
1.11.13
lodash-es
:
4.17.21
mitt
:
3.0.1
sortablejs
:
1.15.6
tdesign-icons-vue-next
:
0.4.1(vue@3.5.17(typescript@5.8.3))
tinycolor2
:
1.6.0
validator
:
13.15.20
vue
:
3.5.17(typescript@5.8.3)
temp-dir@2.0.0
:
{}
temp-dir@2.0.0
:
{}
tempy@0.6.0
:
tempy@0.6.0
:
...
@@ -21658,6 +21771,8 @@ snapshots:
...
@@ -21658,6 +21771,8 @@ snapshots:
tinybench@2.9.0
:
{}
tinybench@2.9.0
:
{}
tinycolor2@1.6.0
:
{}
tinyexec@0.3.2
:
{}
tinyexec@0.3.2
:
{}
tinyexec@1.0.1
:
{}
tinyexec@1.0.1
:
{}
...
@@ -22101,6 +22216,8 @@ snapshots:
...
@@ -22101,6 +22216,8 @@ snapshots:
spdx-correct
:
3.2.0
spdx-correct
:
3.2.0
spdx-expression-parse
:
3.0.1
spdx-expression-parse
:
3.0.1
validator@13.15.20
:
{}
vdirs@0.1.8(vue@3.5.17(typescript@5.8.3))
:
vdirs@0.1.8(vue@3.5.17(typescript@5.8.3))
:
dependencies
:
dependencies
:
evtd
:
0.2.4
evtd
:
0.2.4
...
...
vben-admin.code-workspace
View file @
57620dc
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
"path": "apps/web-naive",
"path": "apps/web-naive",
},
},
{
{
"name": "@vben/web-tdesign",
"path": "apps/web-tdesign",
},
{
"name": "@vben/docs",
"name": "@vben/docs",
"path": "docs",
"path": "docs",
},
},
...
...
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