format with prettier

This commit is contained in:
2024-03-04 00:00:33 +08:00
parent d15067f2fe
commit 0713644961
10 changed files with 65 additions and 68 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '首页',
usingComponents: {}
})
usingComponents: {},
});
+10 -8
View File
@@ -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;
+2 -2
View File
@@ -1,3 +1,3 @@
export default definePageConfig({
usingComponents: {},
})
usingComponents: {},
});
+10 -10
View File
@@ -1,12 +1,12 @@
import { View, Text } from "@tarojs/components";
import { Component, ReactNode } from "react";
import { View, Text } from '@tarojs/components';
import { Component, ReactNode } from 'react';
export default class RepairPage extends Component {
render(): ReactNode {
return (
<View>
<Text>Repair Page</Text>
</View>
)
}
}
render(): ReactNode {
return (
<View>
<Text>Repair Page</Text>
</View>
);
}
}
+2 -2
View File
@@ -1,3 +1,3 @@
export default definePageConfig({
usingComponents: {},
})
usingComponents: {},
});
+10 -10
View File
@@ -1,12 +1,12 @@
import { View, Text } from "@tarojs/components";
import { Component, ReactNode } from "react";
import { View, Text } from '@tarojs/components';
import { Component, ReactNode } from 'react';
export default class UserPage extends Component {
render(): ReactNode {
return (
<View>
<Text>User Page</Text>
</View>
)
}
}
render(): ReactNode {
return (
<View>
<Text>User Page</Text>
</View>
);
}
}