From b5541531943c3c9b500e0ecb1979348a4f03b050 Mon Sep 17 00:00:00 2001 From: luckyadam Date: Fri, 24 Nov 2023 20:00:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default-youshu/src/pages/index/index.jsx | 2 +- h5-youshu/src/pages/index/index.jsx | 2 +- harmony/src/pages/index/index.jsx | 2 +- mobx/src/pages/index/index.jsx | 2 +- pwa/src/pages/index/index.jsx | 2 +- react-native/src/pages/index/index.jsx | 3 +-- redux/src/pages/index/index.jsx | 2 +- taro-ui-vue/src/pages/index/index.jsx | 2 +- taro-ui/src/pages/index/index.jsx | 2 +- wxcloud/client/src/components/login/index.weapp.jsx | 2 +- wxcloud/client/src/pages/index/index.jsx | 2 +- wxplugin/src/pages/index/index.jsx | 2 +- wxplugin/src/plugin/pages/list/list.jsx | 2 +- 13 files changed, 13 insertions(+), 14 deletions(-) diff --git a/default-youshu/src/pages/index/index.jsx b/default-youshu/src/pages/index/index.jsx index e0b641a..076806f 100644 --- a/default-youshu/src/pages/index/index.jsx +++ b/default-youshu/src/pages/index/index.jsx @@ -4,7 +4,7 @@ import { Component{{#if typescript }}, PropsWithChildren{{/if}} } from 'react' import { View, Text } from '@tarojs/components' import './index.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/h5-youshu/src/pages/index/index.jsx b/h5-youshu/src/pages/index/index.jsx index 2796320..6e917e1 100644 --- a/h5-youshu/src/pages/index/index.jsx +++ b/h5-youshu/src/pages/index/index.jsx @@ -5,7 +5,7 @@ import { View, Text } from '@tarojs/components' import './index.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/harmony/src/pages/index/index.jsx b/harmony/src/pages/index/index.jsx index 16f2d8a..1c76a92 100644 --- a/harmony/src/pages/index/index.jsx +++ b/harmony/src/pages/index/index.jsx @@ -55,7 +55,7 @@ interface {{ to_pascal_case pageName }} { dispatch(asyncAdd()) } })) -class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentWillReceiveProps (nextProps) { console.log(this.props, nextProps) } diff --git a/mobx/src/pages/index/index.jsx b/mobx/src/pages/index/index.jsx index 8ebe038..91e3fa6 100644 --- a/mobx/src/pages/index/index.jsx +++ b/mobx/src/pages/index/index.jsx @@ -25,7 +25,7 @@ interface {{ to_pascal_case pageName }} { @inject('store') @observer -class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/pwa/src/pages/index/index.jsx b/pwa/src/pages/index/index.jsx index e0b641a..076806f 100644 --- a/pwa/src/pages/index/index.jsx +++ b/pwa/src/pages/index/index.jsx @@ -4,7 +4,7 @@ import { Component{{#if typescript }}, PropsWithChildren{{/if}} } from 'react' import { View, Text } from '@tarojs/components' import './index.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/react-native/src/pages/index/index.jsx b/react-native/src/pages/index/index.jsx index f5e1435..15c536c 100644 --- a/react-native/src/pages/index/index.jsx +++ b/react-native/src/pages/index/index.jsx @@ -2,8 +2,7 @@ import { Component{{#if typescript }}, PropsWithChildren{{/if}} } from 'react' import { View, Text } from '@tarojs/components' import './index.{{ cssExt }}' -export default {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { - +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/redux/src/pages/index/index.jsx b/redux/src/pages/index/index.jsx index 16f2d8a..1c76a92 100644 --- a/redux/src/pages/index/index.jsx +++ b/redux/src/pages/index/index.jsx @@ -55,7 +55,7 @@ interface {{ to_pascal_case pageName }} { dispatch(asyncAdd()) } })) -class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentWillReceiveProps (nextProps) { console.log(this.props, nextProps) } diff --git a/taro-ui-vue/src/pages/index/index.jsx b/taro-ui-vue/src/pages/index/index.jsx index ef354c3..51f4a17 100644 --- a/taro-ui-vue/src/pages/index/index.jsx +++ b/taro-ui-vue/src/pages/index/index.jsx @@ -7,7 +7,7 @@ import { AtButton } from 'taro-ui' import "taro-ui/dist/style/components/button.scss" // 按需引入 import './{{ pageName }}.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/taro-ui/src/pages/index/index.jsx b/taro-ui/src/pages/index/index.jsx index ef354c3..51f4a17 100644 --- a/taro-ui/src/pages/index/index.jsx +++ b/taro-ui/src/pages/index/index.jsx @@ -7,7 +7,7 @@ import { AtButton } from 'taro-ui' import "taro-ui/dist/style/components/button.scss" // 按需引入 import './{{ pageName }}.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/wxcloud/client/src/components/login/index.weapp.jsx b/wxcloud/client/src/components/login/index.weapp.jsx index 6ddd233..4cf4090 100644 --- a/wxcloud/client/src/components/login/index.weapp.jsx +++ b/wxcloud/client/src/components/login/index.weapp.jsx @@ -4,7 +4,7 @@ import { Component{{#if typescript }}, PropsWithChildren{{/if}} } from 'react' import Taro from '@tarojs/taro' import { View, Text, Button } from '@tarojs/components' -export default class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { state = { context: {} } diff --git a/wxcloud/client/src/pages/index/index.jsx b/wxcloud/client/src/pages/index/index.jsx index c9e7661..2a1b037 100644 --- a/wxcloud/client/src/pages/index/index.jsx +++ b/wxcloud/client/src/pages/index/index.jsx @@ -11,7 +11,7 @@ import './{{ pageName }}.{{ cssExt }}' import Login from '../../components/login/index' -export default class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { } componentWillUnmount () { } diff --git a/wxplugin/src/pages/index/index.jsx b/wxplugin/src/pages/index/index.jsx index 0a8c2e6..7d7f09f 100644 --- a/wxplugin/src/pages/index/index.jsx +++ b/wxplugin/src/pages/index/index.jsx @@ -7,7 +7,7 @@ import './{{ pageName }}.{{ cssExt }}' const myPluginInterface = Taro.requirePlugin('myPlugin') -export default class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { componentDidMount () { myPluginInterface.sayHello() const answer = myPluginInterface.answer diff --git a/wxplugin/src/plugin/pages/list/list.jsx b/wxplugin/src/plugin/pages/list/list.jsx index 64c7c29..05b46b0 100644 --- a/wxplugin/src/plugin/pages/list/list.jsx +++ b/wxplugin/src/plugin/pages/list/list.jsx @@ -5,7 +5,7 @@ import { View } from '@tarojs/components' import ListItem from '../../components/listItem/listItem' import './list.{{ cssExt }}' -export default class {{ to_pascal_case pageName }} extends {{#if typescript}}Component {{else}} Component{{/if}} { +export default class {{ to_pascal_case pageName }} extends {{#if typescript }}Component{{else}}Component{{/if}} { state = { list: [{ name: 'A',