UNPKG

jiku-ui

Version:

A Component Library for Vue.js.

2 lines (1 loc) 3.24 kB
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=139)}({0:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,l){var s,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):r&&(s=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(t,e){return s.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,s):[s]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},139:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"hn-partial-collapse"},[n("div",{on:{click:function(e){return t.$emit("update:isActive",!t.isActive)}}},[n("div",{staticClass:"hn-partial-collapse__title"},[t._t("title")],2),n("i",{class:["hn-partial-collapse__arrow","hn-icon-arrow-right",t.isActive&&"is-active"],style:t.collapseArrowStyle})]),t.minHeight?n("div",{staticClass:"hn-partial-collapse__content--height",style:t.collapseContentWrapHeightStyle},[t._t("default")],2):n("hn-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"hn-partial-collapse__content"},[t._t("default")],2)])],1)};i._withStripped=!0;var r=n(21),o={name:"HnPartialCollapse",components:{HNCollapseTransition:n.n(r).a},props:{isActive:{type:Boolean,default:!0},minHeight:{type:Number,default:0},collapseArrowStyle:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{collapseContentWrapHeightStyle:function(){return this.isActive?{"max-height":"800px"}:{"max-height":this.minHeight+"px"}}},watch:{},created:function(){},mounted:function(){},methods:{}},a=n(0),l=Object(a.a)(o,i,[],!1,null,null,null);l.options.__file="packages/partial-collapse/src/partial-collapse.vue";var s=l.exports;s.install=function(t){t.component(s.name,s)};e.default=s},21:function(t,e){t.exports=require("jiku-ui/lib/transitions/collapse-transition")}}).default;