AdaptiveHeight.js 684 Bytes
import '../assets/index.less';
import Slider from '../src/slider';

export default {
  render: function render() {
    var h = arguments[0];

    var settings = {
      'class': '',
      props: {
        dots: true,
        infinite: true,
        slidesToShow: 1,
        slidesToScroll: 1,
        adaptiveHeight: true
      }
    };
    return h('div', [h('h2', ['Adaptive height']), h(
      Slider,
      settings,
      [h('div', [h('h3', ['1'])]), h('div', [h('h3', ['2']), h('p', ['Hello'])]), h('div', [h('h3', ['3']), h('p', ['See ....']), h('p', ['Height is adaptive'])]), h('div', [h('h3', ['4'])]), h('div', [h('h3', ['5'])]), h('div', [h('h3', ['6'])])]
    )]);
  }
};