48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
<div class="do-sliders" :class="{{skin}}">
|
|
|
|
<div class="slider-content" :if="sliderList.length" :mouseenter="$stopSlide()" :mouseleave="$startSlide()">
|
|
<a class="do-ui-font slider-btn" href="javascript:;"
|
|
:click="$go(-1)"></a>
|
|
|
|
<div class="container">
|
|
<div class="box"
|
|
:css="{width: sliderList.length * 100 + '%', transform: transform}">
|
|
<a target="_blank"
|
|
:repeat="sliderList"
|
|
:css="{width: currWidth}"
|
|
:attr="{href: el.link || 'javascript:;'}">
|
|
<img :if="el.src && el.src != ''" :attr-src="el.src">
|
|
<div class="default-elm" :class="{elm: !el.elm && !el.src, 'preview-act': curr === $index || (curr >= maxNum && $index == maxNum - 1)}" :if="!el.src" :html="el.elm ? el.elm : ''"></div>
|
|
<p :if="el.title"
|
|
:html="el.title"
|
|
class="title-class"></p>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<a class="do-ui-font slider-btn" href="javascript:;"
|
|
:click="$go(1)"></a>
|
|
</div>
|
|
|
|
|
|
<div class="slider-preview-btn">
|
|
<span :if="!preview"
|
|
href="javascript:;"
|
|
:class="{'no-preview-act': curr === $index}"
|
|
:repeat="sliderList"
|
|
:click="$jump($index)">
|
|
</span>
|
|
|
|
<a class="btn-img" href="javascript:;"
|
|
:if="preview"
|
|
:class="{act: curr === $index || (curr >= maxNum && $index == maxNum - 1)}"
|
|
:click="$jump($index)"
|
|
:repeat="sliderBtnList">
|
|
<img
|
|
:class="{'preview-act': curr === $index || (curr >= maxNum && $index == maxNum - 1)}"
|
|
:if="el.src && el.src != ''"
|
|
:attr-src="el.src" />
|
|
<div class="btn-background"></div>
|
|
</a>
|
|
</div>
|
|
</div> |
JavaScript
95.2%
CSS
4.8%