feat: init
This commit is contained in:
3
src/pages/index/index.config.ts
Normal file
3
src/pages/index/index.config.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '首页'
|
||||
})
|
||||
0
src/pages/index/index.less
Normal file
0
src/pages/index/index.less
Normal file
24
src/pages/index/index.tsx
Normal file
24
src/pages/index/index.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Component, PropsWithChildren } from 'react'
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import './index.less'
|
||||
|
||||
export default class Index extends Component<PropsWithChildren> {
|
||||
|
||||
componentWillMount () { }
|
||||
|
||||
componentDidMount () { }
|
||||
|
||||
componentWillUnmount () { }
|
||||
|
||||
componentDidShow () { }
|
||||
|
||||
componentDidHide () { }
|
||||
|
||||
render () {
|
||||
return (
|
||||
<View className='index'>
|
||||
<Text>Hello world!</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user