UNPKG

primevue

Version:

PrimeVue is a premium UI library for Vue featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, wh

89 lines (83 loc) 2.18 kB
import { mergeProps, openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeClass } from 'vue'; import BaseComponent from '@primevue/core/basecomponent'; import Carousel from 'primevue/carousel'; import GalleryThumbnailStyle from 'primevue/gallerythumbnail/style'; var script$1 = { name: 'BaseGalleryThumbnail', "extends": BaseComponent, props: { as: { type: [String, Object], "default": function _default() { return Carousel; } }, asChild: { type: Boolean, "default": false }, autoSize: { type: Boolean, "default": true }, loop: { type: Boolean, "default": true }, align: { type: String, "default": 'center' }, spacing: { type: Number, "default": 8 } }, style: GalleryThumbnailStyle, provide: function provide() { return { $pcGalleryThumbnail: this, $parentInstance: this }; } }; var script = { name: 'GalleryThumbnail', "extends": script$1, inheritAttrs: false, inject: ['$pcGallery'], computed: { attrs: function attrs() { return mergeProps(this.a11yAttrs, this.ptmi('root')); }, a11yAttrs: function a11yAttrs() { var _this$$pcGallery; return { 'data-pc-name': 'gallerythumbnail', 'data-pc-section': 'root', autoSize: this.autoSize, loop: this.loop, align: this.align, spacing: this.spacing, slide: (_this$$pcGallery = this.$pcGallery) === null || _this$$pcGallery === void 0 ? void 0 : _this$$pcGallery.d_activeIndex }; } } }; function render(_ctx, _cache, $props, $setup, $data, $options) { return !_ctx.asChild ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps({ key: 0, "class": _ctx.cx('root') }, $options.attrs), { "default": withCtx(function () { return [renderSlot(_ctx.$slots, "default")]; }), _: 3 }, 16, ["class"])) : renderSlot(_ctx.$slots, "default", { key: 1, "class": normalizeClass(_ctx.cx('root')), a11yAttrs: $options.a11yAttrs }); } script.render = render; export { script as default };