-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.jsx
62 lines (55 loc) · 1.37 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { Component } from 'react'
import { View, Navigator, Text } from '@tarojs/components'
import './index.css'
export default class Index extends Component {
constructor(props) {
super(props)
this.state = {
// textvalue: ''
}
}
componentWillMount () { }
componentDidMount () { }
componentWillUnmount () { }
componentDidShow () { }
componentDidHide () { }
render () {
return (
<View className='index'>
<Navigator
openType='navigate'
url='/pages/navigater-goto/index?id=12'
>
<Text>navigate</Text>
</Navigator>
<Navigator
openType='redirect'
url='/pages/navigater-goto/index?id=12'
>
<Text>redirect</Text>
</Navigator>
<Navigator
openType='reLaunch'
url='/pages/navigater-goto/index?id=12'
>
<Text>reLaunch</Text>
</Navigator>
<Navigator
openType='navigate'
url='/pages/navigater-goto/index?id=12'
hoverClass='hoverNaviagter'
>
<Text>hoverClass</Text>
</Navigator>
<Navigator
openType='navigate'
url='/pages/navigater-goto/index?id=12'
hoverStartTime={1000}
hoverStayTime={3000}
>
<Text>StartTime StayTime</Text>
</Navigator>
</View>
)
}
}