Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
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
index.html
public/index.html
+1
-1
g2.js
src/g2.js
+18
-0
index.js
src/index.js
+1
-3
No files found.
public/index.html
View file @
a957bffb
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<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"
/>
</head>
<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
G2
from
'g2'
;
import
'moment/locale/zh-cn'
;
import
models
from
'./models'
;
import
'./g2'
;
// import { browserHistory } from 'dva/router';
import
'./index.less'
;
G2
.
track
(
false
);
// 1. Initialize
const
app
=
dva
({
// 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