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 cover?: any title: any note?: any 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 { title, disabled, note, cover } = this.props const className = `sd-card ${this.props.className || ''} ` return ( {title} { note && {note} } {this.props.children} ) } } export default Index as ComponentClass