vue-antd-ui
Version:
An enterprise-class UI design language and Vue-based implementation
49 lines (45 loc) • 1.44 kB
JavaScript
import LazyLoad from '../src/LazyLoad';
import './style.less';
var Application = {
render: function render() {
var h = arguments[0];
return h('div', ['Scroll to load images.', h('div', { 'class': 'filler' }), h(
LazyLoad,
{
attrs: { height: 762, offsetVertical: 300 }
},
[h('img', {
attrs: { src: 'http://apod.nasa.gov/apod/image/1502/HDR_MVMQ20Feb2015ouellet1024.jpg' }
})]
), h('div', { 'class': 'filler' }), h(
LazyLoad,
{
attrs: { height: 683, offsetVertical: 300 }
},
[h('img', {
attrs: { src: 'http://apod.nasa.gov/apod/image/1502/2015_02_20_conj_bourque1024.jpg' }
}), h('span')]
), h('div', { 'class': 'filler' }), h(
'div',
{ 'class': 'ScrollableContainer' },
[h('div', { 'class': 'filler' }), h('div', { 'class': 'filler' }), h('div', { 'class': 'filler' }), h(
LazyLoad,
{
attrs: { height: 480 }
},
[h('img', {
attrs: { src: 'http://apod.nasa.gov/apod/image/1502/MarsPlume_jaeschke_480.gif' }
})]
)]
), h('div', { 'class': 'filler' }), h(
LazyLoad,
{
attrs: { height: 720, offsetVertical: 300 }
},
[h('img', {
attrs: { src: 'http://apod.nasa.gov/apod/image/1502/ToadSky_Lane_1080_annotated.jpg' }
})]
), h('div', { 'class': 'filler' })]);
}
};
export default Application;