format with prettier
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '首页',
|
||||
usingComponents: {}
|
||||
})
|
||||
usingComponents: {},
|
||||
});
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import './index.scss'
|
||||
import { Component, ReactNode } from 'react'
|
||||
import { View, Text } from '@tarojs/components';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import { AtButton } from 'taro-ui';
|
||||
import './index.scss';
|
||||
|
||||
class Index extends Component {
|
||||
state = {
|
||||
msg: "Hello World!"
|
||||
}
|
||||
msg: 'Hello World!',
|
||||
};
|
||||
|
||||
onReady() {
|
||||
console.log("Index is ready");
|
||||
console.log('Index is ready');
|
||||
}
|
||||
|
||||
render(): ReactNode {
|
||||
return (
|
||||
<View>
|
||||
<AtButton type='primary' size='normal'></AtButton>
|
||||
<Text>{this.state.msg}</Text>
|
||||
</View>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Index
|
||||
export default Index;
|
||||
|
||||
Reference in New Issue
Block a user