mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 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