25 lines
1 KiB
JavaScript
Executable file
25 lines
1 KiB
JavaScript
Executable file
import { h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
import { b as getIonMode } from './ionic-global.js';
|
|
|
|
const slideCss = "ion-slide{display:block;width:100%;height:100%}.slide-zoom{display:block;width:100%;text-align:center}.swiper-slide{display:-ms-flexbox;display:flex;position:relative;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-size:18px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.swiper-slide img{width:auto;max-width:100%;height:auto;max-height:100%}";
|
|
|
|
const Slide = class extends HTMLElement {
|
|
constructor() {
|
|
super();
|
|
this.__registerHost();
|
|
}
|
|
render() {
|
|
const mode = getIonMode(this);
|
|
return (h(Host, { class: {
|
|
[mode]: true,
|
|
'swiper-slide': true,
|
|
'swiper-zoom-container': true
|
|
} }));
|
|
}
|
|
static get style() { return slideCss; }
|
|
};
|
|
|
|
const IonSlide = /*@__PURE__*/proxyCustomElement(Slide, [0,"ion-slide"]);
|
|
|
|
export { IonSlide };
|