react图片自适应组件

import * as React from 'react';
import 'animate.css/animate.css'
import {AutoImg} from "./style";
import {observer} from "mobx-react";
import {action} from "mobx";
import {IAd} from "../../util/type";

interface IIndexProps {
    url: string;
    row:boolean;
    width:number;
    height:number;
}

@observer
class Index extends React.Component {

    constructor(props) {
        super(props);
    }

    public render() {
        const {url,row,width,height} = this.props;
        return (
            
{ row ? : }
); } } export default Index;

  

你可能感兴趣的:(react图片自适应组件)