mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -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
|
@ -0,0 +1,27 @@
|
|||
export default function appendSlide(slides) {
|
||||
const swiper = this;
|
||||
const {
|
||||
$wrapperEl,
|
||||
params
|
||||
} = swiper;
|
||||
|
||||
if (params.loop) {
|
||||
swiper.loopDestroy();
|
||||
}
|
||||
|
||||
if (typeof slides === 'object' && 'length' in slides) {
|
||||
for (let i = 0; i < slides.length; i += 1) {
|
||||
if (slides[i]) $wrapperEl.append(slides[i]);
|
||||
}
|
||||
} else {
|
||||
$wrapperEl.append(slides);
|
||||
}
|
||||
|
||||
if (params.loop) {
|
||||
swiper.loopCreate();
|
||||
}
|
||||
|
||||
if (!params.observer) {
|
||||
swiper.update();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue