Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 42b990a

Browse files
feat: 增加拖拽页面
1 parent 2e7aea7 commit 42b990a

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

‎src/mock/modules/user.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export const userMock: Record<string, templateOrFn> = {
5252
{
5353
path: '/common/tour',
5454
title: '漫游式引导'
55+
},
56+
{
57+
path: '/common/drag',
58+
title: '拖拽组件'
5559
}
5660
]
5761
},
@@ -122,6 +126,7 @@ export const userMock: Record<string, templateOrFn> = {
122126
'bing',
123127
'commonTour',
124128
'commonIcons',
129+
'commonDrag',
125130
'test',
126131
'drawSvg',
127132
'drawCanvas'

‎src/router/modules/common.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ const commonRoutes: Array<RouteObject> = [
2828
code: 'commonIcons'
2929
}
3030
)
31+
},
32+
{
33+
path: '/common/drag',
34+
element: lazyLoad(
35+
lazy(() => import('@/views/common/drag/index')),
36+
{
37+
requiredAuth: true,
38+
title: '拖拽组件',
39+
code: 'commonDrag'
40+
}
41+
)
3142
}
3243
]
3344
}

‎src/views/common/drag/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react'
2+
3+
const CommonDrag = () => {
4+
return <div>CommonDrag</div>
5+
}
6+
7+
export default CommonDrag

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /