File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 14
14
}
15
15
16
16
.darkbox {
17
- // background-color: #434242;
18
17
background-color : #23272f ;
19
18
}
20
19
Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ $black-100 : #C0C6CE;
91
91
$black-200 : #96A0AD ;
92
92
$black-300 : #6B798C ;
93
93
$black-400 : #4C5D73 ;
94
- $black-500 : #5a2c36 ;
94
+ $black-500 : #2C405A ; ;
95
95
$black-600 : #273A52 ;
96
96
$black-700 : #213248 ;
97
97
$black-800 : #1B2A3F ;
98
98
$black-900 : #101C2E ;
99
99
100
100
$text-color : #3F536E ;
101
- $title-color : #5a2c45 ;
101
+ $title-color : #2C405A ; ;
102
102
103
103
$border-color-gray : #CCC ;
104
104
$border-color-base : #C5D9E8 ;
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ class Docs extends React.Component {
29
29
}
30
30
31
31
UNSAFE_componentWillReceiveProps ( nextProps ) {
32
- // if (nextProps.location.pathname !== this.props.location.pathname) {
33
- // this.refs.atMarkdown.scrollTo(0, 0)
34
- // }
32
+ if ( nextProps . location . pathname !== this . props . location . pathname ) {
33
+ this . refs . atMarkdown . scrollTo ( 0 , 0 )
34
+ }
35
35
}
36
36
37
37
changeMode ( ) {
@@ -47,8 +47,7 @@ class Docs extends React.Component {
47
47
render ( ) {
48
48
const data = navsConfig . components
49
49
const { fixed, mode } = this . state
50
- // const pathname = this.props.location.pathname
51
- const pathname = '/docs/introduction'
50
+ const pathname = this . props . location . pathname
52
51
const reg = / \/ \S + \/ ( \S + ) /
53
52
const result = pathname . match ( reg )
54
53
const curDemoPath = pathMap [ result [ 1 ] ] || ''
You can’t perform that action at this time.
0 commit comments