2016-05-31 06:07:02 +08:00
|
|
|
import React, { PropTypes } from 'react';
|
|
|
|
|
|
|
|
export default class Slide extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<g>
|
|
|
|
{this.props.current_slide ?
|
|
|
|
<image x="0" y="0"
|
2016-06-03 06:09:28 +08:00
|
|
|
width={this.props.current_slide.slide.width}
|
|
|
|
height={this.props.current_slide.slide.height}
|
2016-05-31 06:07:02 +08:00
|
|
|
xlink="http://www.w3.org/1999/xlink"
|
|
|
|
xlinkHref={this.props.current_slide.slide.img_uri}
|
|
|
|
stroke-width="0.8">
|
|
|
|
</image>
|
2016-06-03 06:09:28 +08:00
|
|
|
: null }
|
2016-05-31 06:07:02 +08:00
|
|
|
</g>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|