/**
 * 块标题
 */

import Taro, { Component, Config } from '@tarojs/taro';
import { ComponentClass } from 'react';
import { View } from '@tarojs/components';

import BlockTitle from './../../components/blockTitle/index'
import { IPageState, IProps, IPageOwnProps } from './blockTitle.itf'
import './blockTitle.scss';

/**
 * 类的属性
 */
interface Index {
  props: IProps;
  // this的属性可以在这里定义
}

class Index extends Component {
  config: Config = {
    navigationBarTitleText: '块标题'
  };

  state: IPageState = {};

  componentDidMount() { }

  componentDidShow() { }

  render() {
    return (
      <View className='blockTitle-page'>
        <BlockTitle title='这是块标题' />
      </View>
    );
  }
}
export default Index as ComponentClass<IPageOwnProps, IPageState>;

