import * as React from "react"; import Util from '../../util/utils' type LPData = { cptCode: number, //组件代码 cptType: number, content?: any [propsName: string]: any } interface IPropTypes { data: Array, } class MShop extends React.Component { constructor(props: IPropTypes) { super(props); this.state = { source: [], } } componentDidMount(): void { } onClick() { } render() { let source = this.props.data; return (
{ source && source.length > 0 ? source.map((data: any, index: any) => { return (
{Util.transInReactNode(data)}
) }) : '' }
); } } export default MShop;