Initial release
Some checks failed
My Build All / build_windows (push) Has been cancelled
My Build All / build_linux_portable (push) Has been cancelled
My Build All / build_linux_appimage (push) Has been cancelled
My Build All / build_macos (push) Has been cancelled
My Build All / Publish release assets (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
Some checks failed
My Build All / build_windows (push) Has been cancelled
My Build All / build_linux_portable (push) Has been cancelled
My Build All / build_linux_appimage (push) Has been cancelled
My Build All / build_macos (push) Has been cancelled
My Build All / Publish release assets (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
This commit is contained in:
commit
c661ddc2eb
16967 changed files with 4075897 additions and 0 deletions
13
resources/web/guide/swiper/shared/create-shadow.js
Normal file
13
resources/web/guide/swiper/shared/create-shadow.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import $ from './dom.js';
|
||||
export default function createShadow(params, $slideEl, side) {
|
||||
const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}`;
|
||||
const $shadowContainer = params.transformEl ? $slideEl.find(params.transformEl) : $slideEl;
|
||||
let $shadowEl = $shadowContainer.children(`.${shadowClass}`);
|
||||
|
||||
if (!$shadowEl.length) {
|
||||
$shadowEl = $(`<div class="swiper-slide-shadow${side ? `-${side}` : ''}"></div>`);
|
||||
$shadowContainer.append($shadowEl);
|
||||
}
|
||||
|
||||
return $shadowEl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue