Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
d9954616
Commit
d9954616
authored
May 30, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unuse code
parent
4bc24ec1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
20 deletions
+14
-20
src/layouts/BasicLayout.tsx
src/layouts/BasicLayout.tsx
+5
-5
src/pages/Welcome.tsx
src/pages/Welcome.tsx
+2
-2
src/typings.d.ts
src/typings.d.ts
+7
-8
typings.d.ts
typings.d.ts
+0
-5
No files found.
src/layouts/BasicLayout.tsx
View file @
d9954616
...
...
@@ -12,13 +12,13 @@ import logo from '../assets/logo.svg';
import
Authorized
from
'
@/utils/Authorized
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
BasicLayout
as
Basic
LayoutComponents
,
BasicLayoutProps
as
Basic
LayoutComponentsProps
,
BasicLayout
as
Pro
LayoutComponents
,
BasicLayoutProps
as
Pro
LayoutComponentsProps
,
MenuDataItem
,
Settings
,
}
from
'
@ant-design/pro-layout
'
;
import
Link
from
'
umi/link
'
;
export
interface
BasicLayoutProps
extends
Basic
LayoutComponentsProps
,
ConnectProps
{
export
interface
BasicLayoutProps
extends
Pro
LayoutComponentsProps
,
ConnectProps
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
;
};
...
...
@@ -68,7 +68,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
});
return
(
<
Basic
LayoutComponents
<
Pro
LayoutComponents
logo
=
{
logo
}
onCollapse
=
{
handleMenuCollapse
}
menuItemRender
=
{
(
menuItemProps
,
defaultDom
)
=>
{
...
...
@@ -93,7 +93,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
{
...
settings
}
>
{
children
}
</
Basic
LayoutComponents
>
</
Pro
LayoutComponents
>
);
};
...
...
src/pages/Welcome.tsx
View file @
d9954616
...
...
@@ -2,9 +2,9 @@ import React from 'react';
export
default
()
=>
(
<
p
style
=
{
{
textAlign
:
'
center
'
}
}
>
想要添加更多页面?请参考
{
'
'
}
Want to add more pages? Please refer to
{
'
'
}
<
a
href
=
"https://umijs.org/guide/block.html"
target
=
"_blank"
rel
=
"noopener noreferrer"
>
umi
区块
umi
block
</
a
>
。
</
p
>
...
...
src/typings.d.ts
View file @
d9954616
declare
module
'
slash2
'
;
declare
module
'
antd-pro-merge-less
'
;
declare
module
'
antd-theme-webpack-plugin
'
;
declare
module
'
*.css
'
;
declare
module
'
*.less
'
;
declare
module
'
*.scss
'
;
...
...
@@ -15,12 +19,7 @@ declare module 'react-copy-to-clipboard';
declare
module
'
react-fittext
'
;
declare
module
'
@antv/data-set
'
;
declare
module
'
nzh/cn
'
;
declare
var
APP_TYPE
:
string
;
declare
module
'
memoize-one
'
{
function
memoizeOne
<
T
extends
(...
args
:
any
[])
=>
any
>
(
resultFn
:
T
,
isEqual
?:
(
a
:
any
,
b
:
any
,
index
:
number
)
=>
boolean
,
):
T
;
export
default
memoizeOne
;
}
// preview.pro.ant.design only do not use in your production ;
// preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
declare
let
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
:
'
site
'
|
undefined
;
typings.d.ts
deleted
100644 → 0
View file @
4bc24ec1
declare
module
'
slash2
'
;
declare
module
'
antd-pro-merge-less
'
;
declare
module
'
antd-theme-webpack-plugin
'
;
declare
let
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
:
'
site
'
|
undefined
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment