ant-design-vue/components/vc-lazy-load/demo/index.jsx

39 lines
1.2 KiB
Vue
Raw Normal View History

2019-01-12 03:33:27 +00:00
import LazyLoad from '../src/LazyLoad';
2018-04-06 16:20:45 +00:00
2019-01-12 03:33:27 +00:00
import './style.less';
2018-04-06 16:20:45 +00:00
const Application = {
2019-01-12 03:33:27 +00:00
render() {
2018-04-06 16:20:45 +00:00
return (
<div>
Scroll to load images.
2019-01-12 03:33:27 +00:00
<div class="filler" />
2018-04-06 16:20:45 +00:00
<LazyLoad height={762} offsetVertical={300}>
2019-01-12 03:33:27 +00:00
<img src="http://apod.nasa.gov/apod/image/1502/HDR_MVMQ20Feb2015ouellet1024.jpg" />
2018-04-06 16:20:45 +00:00
</LazyLoad>
2019-01-12 03:33:27 +00:00
<div class="filler" />
2018-04-06 16:20:45 +00:00
<LazyLoad height={683} offsetVertical={300}>
2019-01-12 03:33:27 +00:00
<img src="http://apod.nasa.gov/apod/image/1502/2015_02_20_conj_bourque1024.jpg" />
<span />
2018-04-06 16:20:45 +00:00
</LazyLoad>
2019-01-12 03:33:27 +00:00
<div class="filler" />
<div class="ScrollableContainer">
<div class="filler" />
<div class="filler" />
<div class="filler" />
2018-04-06 16:20:45 +00:00
<LazyLoad height={480}>
2019-01-12 03:33:27 +00:00
<img src="http://apod.nasa.gov/apod/image/1502/MarsPlume_jaeschke_480.gif" />
2018-04-06 16:20:45 +00:00
</LazyLoad>
</div>
2019-01-12 03:33:27 +00:00
<div class="filler" />
2018-04-06 16:20:45 +00:00
<LazyLoad height={720} offsetVertical={300}>
2019-01-12 03:33:27 +00:00
<img src="http://apod.nasa.gov/apod/image/1502/ToadSky_Lane_1080_annotated.jpg" />
2018-04-06 16:20:45 +00:00
</LazyLoad>
2019-01-12 03:33:27 +00:00
<div class="filler" />
2018-04-06 16:20:45 +00:00
</div>
2019-01-12 03:33:27 +00:00
);
2018-04-06 16:20:45 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-04-06 16:20:45 +00:00
2019-01-12 03:33:27 +00:00
export default Application;