!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var l in n)("object"==typeof exports?exports:e)[l]=n[l]}}(window,(function(){return function(e){var t={};function n(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(l,o,function(t){return e[t]}.bind(null,o));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=107)}({0:function(e,t,n){"use strict";function l(e,t,n,l,o,s,r,i){var a,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),l&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),r?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=a):o&&(a=i?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var p=c.render;c.render=function(e,t){return a.call(t),p(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:c}}n.d(t,"a",(function(){return l}))},107:function(e,t,n){"use strict";n.r(t);var l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"collapse-panel",class:e.collapsePanelCls},[n("div",{staticClass:"collapse-panel__trigger",class:[e.collapseTriggerClass,e.direction],style:e.collapseTriggerStyle,on:{click:e.handleToggleCollapse}},[e._t("trigger",(function(){return[n("i",{staticClass:"el-icon-d-arrow-left collapse-panel__arrow",class:{"is-collapse":e.isCollapse}})]}),{isCollapse:e.isCollapse})],2),e._v(" "),n("transition",{attrs:{name:"collapse-panel__transition"+e.direction}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapse,expression:"!isCollapse"}],staticClass:"collapse-panel__wrap",class:{"is-collapse":e.isCollapse}},[e.title||e.$slots.title?n("div",{staticClass:"collapse-panel__header"},[e._t("title",(function(){return[e._v(e._s(e.title))]}))],2):e._e(),e._v(" "),n("div",{staticClass:"collapse-panel__content"},[e._t("default")],2)])])],1)};l._withStripped=!0;var o={name:"CollapsePanel",props:{collapse:{type:Boolean,default:!1},collapseTriggerClass:{type:String,default:""},collapseTriggerStyle:{type:[Object,String],default:function(){return{}}},title:{type:String,default:""},direction:{type:String,validator:function(e){return!e||["left","right"].includes(e)},default:"left"}},data:function(){return{isCollapse:this.collapse}},computed:{collapsePanelCls:function(){return[{"is-collapse":this.isCollapse}]}},watch:{collapse:function(e){this.isCollapse=e}},methods:{handleToggleCollapse:function(){this.isCollapse=!this.isCollapse}}},s=n(0),r=Object(s.a)(o,l,[],!1,null,"247097dc",null);r.options.__file="CollapsePanel/index.vue";t.default=r.exports}})}));
//# sourceMappingURL=CollapsePanel.js.map