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>
|
2016-06-27 22:48:17 +08:00
|
|
|
{this.props.currentSlide ?
|
2016-05-31 06:07:02 +08:00
|
|
|
<image x="0" y="0"
|
2016-06-27 22:48:17 +08:00
|
|
|
width={this.props.currentSlide.slide.width}
|
|
|
|
height={this.props.currentSlide.slide.height}
|
2016-05-31 06:07:02 +08:00
|
|
|
xlink="http://www.w3.org/1999/xlink"
|
2016-06-27 22:48:17 +08:00
|
|
|
xlinkHref={this.props.currentSlide.slide.img_uri}
|
2016-05-31 06:07:02 +08:00
|
|
|
stroke-width="0.8">
|
|
|
|
</image>
|
2016-06-03 06:09:28 +08:00
|
|
|
: null }
|
2016-05-31 06:07:02 +08:00
|
|
|
</g>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|