yk-element-components-v2
Version:
2 lines (1 loc) • 1.58 kB
JavaScript
(function(a,s){typeof exports=="object"&&typeof module<"u"?module.exports=s():typeof define=="function"&&define.amd?define(s):(a=typeof globalThis<"u"?globalThis:a||self,a.index=s())})(this,function(){"use strict";const a="";function s(n,t,f,g,r,d,_,y){var e=typeof n=="function"?n.options:n;t&&(e.render=t,e.staticRenderFns=f,e._compiled=!0),g&&(e.functional=!0),d&&(e._scopeId="data-v-"+d);var o;if(_?(o=function(i){i=i||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!i&&typeof __VUE_SSR_CONTEXT__<"u"&&(i=__VUE_SSR_CONTEXT__),r&&r.call(this,i),i&&i._registeredComponents&&i._registeredComponents.add(_)},e._ssrRegister=o):r&&(o=y?function(){r.call(this,(e.functional?this.parent:this).$root.$options.shadowRoot)}:r),o)if(e.functional){e._injectStyles=o;var C=e.render;e.render=function($,u){return o.call(u),C($,u)}}else{var c=e.beforeCreate;e.beforeCreate=c?[].concat(c,o):[o]}return{exports:n,options:e}}const h={name:"yk-container",props:{height:{type:String,default:""},direction:String},computed:{isVertical(){return this.direction==="vertical"?!0:this.direction==="horizontal"?!1:this.$slots&&this.$slots.default?this.$slots.default.some(n=>{const t=n.componentOptions&&n.componentOptions.tag;return t==="yk-header"||t==="yk-footer"}):!1}}};var p=function(){var t=this,f=t._self._c;return f("section",{staticClass:"yk-container",class:{"is-vertical":t.isVertical},style:{height:t.height}},[t._t("default")],2)},m=[],v=s(h,p,m,!1,null,"af91ac28",null,null);const l=v.exports;return{install(n){n.component(l.name,l)}}});