apeman-react-image

NO IMAGE
f
NO IMAGE
f
NO IMAGE
f
NO IMAGE
f
"use strict";
 
import React, {PropTypes as types} from 'react';
import ApImage from '../../lib/ap_image';
 
 
let Demo = React.createClass({
    render: function () {
        let width = 204,
            height = 204,
            style = {margin: '16px'};
        return (
            <div>
                <ApImage src="./images/01.jpg"
                         width={width}
                         height={height}
                         scale="fit"
                         style={style}
                />
                <ApImage src="./images/01.jpg"
                         width={width}
                         height={height}
                         scale="fill"
                         style={style}
                />
                <ApImage src="./images/01.jpg"
                         width={width}
                         height={height}
                         scale="none"
                         style={style}
                />
                <ApImage src="./images/__not_found__"
                         width={width}
                         height={height}
                         scale="none"
                         style={style}
                />
            </div>
        );
    }
});
 
module.exports = Demo;