mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -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,23 @@
|
|||
import { getDocument } from 'ssr-window';
|
||||
export default function createElementIfNotDefined(swiper, originalParams, params, checkProps) {
|
||||
const document = getDocument();
|
||||
|
||||
if (swiper.params.createElements) {
|
||||
Object.keys(checkProps).forEach(key => {
|
||||
if (!params[key] && params.auto === true) {
|
||||
let element = swiper.$el.children(`.${checkProps[key]}`)[0];
|
||||
|
||||
if (!element) {
|
||||
element = document.createElement('div');
|
||||
element.className = checkProps[key];
|
||||
swiper.$el.append(element);
|
||||
}
|
||||
|
||||
params[key] = element;
|
||||
originalParams[key] = element;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue