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
a957bffb
Commit
a957bffb
authored
Oct 25, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add favicon and update g2 default theme
parent
85b880cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
public/index.html
public/index.html
+1
-1
src/g2.js
src/g2.js
+18
-0
src/index.js
src/index.js
+1
-3
No files found.
public/index.html
View file @
a957bffb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Ant Design Pro
</title>
<title>
Ant Design Pro
</title>
<link
rel=
"icon"
href=
"https://gw.alipayobjects.com/zos/rmsportal/IOtlElCiWVIOZqgDslYd.png"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"index.css"
/>
<link
rel=
"stylesheet"
href=
"index.css"
/>
</head>
</head>
<body>
<body>
...
...
src/g2.js
0 → 100644
View file @
a957bffb
// 全局 G2 设置
import
G2
from
'
g2
'
;
G2
.
track
(
false
);
const
config
=
{
...
G2
.
Theme
,
defaultColor
:
'
#1089ff
'
,
tooltip
:
{
background
:
{
radius
:
4
,
fill
:
'
#000
'
,
fillOpacity
:
0.75
,
},
},
};
G2
.
Global
.
setTheme
(
config
);
src/index.js
View file @
a957bffb
import
dva
from
'
dva
'
;
import
dva
from
'
dva
'
;
import
G2
from
'
g2
'
;
import
'
moment/locale/zh-cn
'
;
import
'
moment/locale/zh-cn
'
;
import
models
from
'
./models
'
;
import
models
from
'
./models
'
;
import
'
./g2
'
;
// import { browserHistory } from 'dva/router';
// import { browserHistory } from 'dva/router';
import
'
./index.less
'
;
import
'
./index.less
'
;
G2
.
track
(
false
);
// 1. Initialize
// 1. Initialize
const
app
=
dva
({
const
app
=
dva
({
// history: browserHistory,
// history: browserHistory,
...
...
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