!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VueElementUiPlus",[],t):"object"==typeof exports?exports.VueElementUiPlus=t():e.VueElementUiPlus=t()}(self,()=>(()=>{"use strict";var n={1900:(e,t,n)=>{n.d(t,{Z:()=>function(e,t,n,o,i,s,a,r){var c,l="function"==typeof e?e.options:e;t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0);o&&(l.functional=!0);s&&(l._scopeId="data-v-"+s);a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=r?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i);{var u;c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c]))}return{exports:e,options:l}}})}},o={};function i(e){var t=o[e];return void 0!==t||(t=o[e]={exports:{}},n[e](t,t.exports,i)),t.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var e={};{function t(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)}i.d(e,{default:()=>r}),t._withStripped=!0;var s={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){var t,n;this.accordion?this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:""):(-1<(n=(t=this.activeNames.slice(0)).indexOf(e.name))?t.splice(n,1):t.push(e.name),this.setActiveNames(t))}},created:function(){this.$on("item-click",this.handleItemClick)}},s;(s=(0,i(1900).Z)(s,t,[],!1,null,null,null)).options.__file="packages/collapse/src/collapse.vue";const a=s.exports,r=(a.install=function(e){e.component(a.name,a)},a)}return e.default})());