123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { Component } from 'react'
- import Taro from '@tarojs/taro'
- import { connect } from 'react-redux'
- import {View, Map, Button} from '@tarojs/components'
- import { add, minus, asyncAdd } from '../../actions/counter'
- import './index.less'
- @connect(({ counter }) => ({
- counter
- }), (dispatch) => ({
- add () {
- dispatch(add())
- },
- dec () {
- dispatch(minus())
- },
- asyncAdd () {
- dispatch(asyncAdd())
- }
- }))
- class Index extends Component {
- constructor(props) {
- super(props);
- this.state={}
- }
- componentDidShow () {
- }
- componentDidMount() {
- }
- render () {
- return (
- <View>
- </View>
- )
- }
- }
- export default Index
|