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

79 lines (73 loc) 1.97 kB
import BaseComponent from '@primevue/core/basecomponent'; import SplitterPanelStyle from 'primevue/splitterpanel/style'; import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue'; var script$1 = { name: 'BaseSplitterPanel', "extends": BaseComponent, props: { size: { type: Number, "default": null }, minSize: { type: Number, "default": 0 }, maxSize: { type: Number, "default": 100 }, collapsible: { type: Boolean, "default": false }, collapsedSize: { type: Number, "default": 0 } }, style: SplitterPanelStyle, provide: function provide() { return { $pcSplitterPanel: this, $parentInstance: this }; } }; var script = { name: 'SplitterPanel', "extends": script$1, inheritAttrs: false, data: function data() { return { nestedState: null }; }, computed: { isNested: function isNested() { var _this$$slots$default$, _this$$slots$default, _this$$slots, _this = this; return (_this$$slots$default$ = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots).some(function (child) { _this.nestedState = child.type.name === 'Splitter' ? true : null; return _this.nestedState; })) !== null && _this$$slots$default$ !== void 0 ? _this$$slots$default$ : false; }, getPTOptions: function getPTOptions() { return { context: { nested: this.isNested } }; } } }; function render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", mergeProps({ ref: "container", "class": _ctx.cx('root') }, _ctx.ptmi('root', $options.getPTOptions)), [renderSlot(_ctx.$slots, "default")], 16); } script.render = render; export { script as default };