import { ComponentClass } from 'react' import Taro, { Component } from '@tarojs/taro' import { View, Image, Text } from '@tarojs/components' import './index.scss' import SdFormid from '../sdFormid'; type PageOwnProps = { children?: any // 替换note className?: string onClick?: any thumb?: any extThumb?: any extraText?: any note?: string title: any topLine?: boolean noBorder?: boolean disabled?: boolean } type IProps = PageOwnProps interface Index { props: IProps; } class Index extends Component { static options = { addGlobalClass: true } handleClick = (...args) => { this.props.onClick(...args) } render() { const { thumb, extThumb, title, topLine, extraText, note, className, noBorder, disabled } = this.props return ( { thumb && < Image mode='aspectFill' className='sd-item-thumb' src={thumb} /> } {title} { note && {note} } {this.props.children} { extraText && {extraText} } { extThumb && } ) } } export default Index as ComponentClass