"use strict";(self.webpackChunkmy_package_ext=self.webpackChunkmy_package_ext||[]).push([[1182],{31182:function(t,e,s){s.r(e),s.d(e,{default:function(){return i}}),s(13974),e={name:"breadcrumb",props:{value:"",mode:{default:"edit"},settings:{type:Object,default:function(){}},separator:{type:String,default:"/"},isRouterMode:{type:Boolean,default:!1}},data:function(){return{demoList:[{value:"a",label:"首页"},{value:"b",label:"活动管理"},{value:"c",label:"活动列表"},{value:"d",label:"活动详情"}]}},computed:{activities:function(){return this.settings.breadcrumbList},active:{get:function(){var t,e=this;return(this.value||0==this.value)&&-1<(t=this.activities&&this.activities.findIndex((function(t){return t.value==e.value})))?t+1:1},set:function(t){}},changeActivities:function(){return this.activities.slice(0,+this.active)}},created:function(){},watch:{},methods:{clickItem:function(t){this.$emit("clickBreadcrumbItem",t)}},mounted:function(){!this.value&&this.settings&&this.settings.breadcrumbList&&this.settings.breadcrumbList instanceof Array&&0<this.settings.breadcrumbList.length&&this.$emit("input",this.settings.breadcrumbList[0].value)}};var i=(0,s(51900).Z)(e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"breadcrumb",staticStyle:{width:"100%"}},["edit"===t.mode?e("div",[t.isRouterMode?t._e():[t.settings&&t.settings.breadcrumbList&&t.settings.breadcrumbList instanceof Array&&0<t.settings.breadcrumbList.length?t._l(t.changeActivities,(function(s,i){return e("span",{key:i,staticClass:"breadcrumb__item"},[e("span",{class:["label",i+1==t.active?"active":""]},[t._v(t._s(s.label))]),t._v(" "),e("span",{class:["breadcrumb__separator",i+1==t.active?"last":""]},[t._v(t._s(t.separator))])])})):t._l(t.demoList,(function(s,i){return e("span",{key:i,staticClass:"breadcrumb__item"},[e("span",{class:["label",i+1==t.active?"active":""]},[t._v(t._s(s.label))]),t._v(" "),e("span",{class:["breadcrumb__separator",i+1==t.demoList.length?"last":""]},[t._v(t._s(t.separator))])])}))]],2):e("div",[t._v("\n    "+t._s(t.value)+"\n  ")])])}),[],!1,null,"49a1de98",null).exports},51900:function(t,e,s){function i(t,e,s,i,n,a,r,c){var u,o,l="function"==typeof t?t.options:t;return e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),r?(u=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=u):n&&(u=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),u&&(l.functional?(l._injectStyles=u,o=l.render,l.render=function(t,e){return u.call(e),o(t,e)}):(e=l.beforeCreate,l.beforeCreate=e?[].concat(e,u):[u])),{exports:t,options:l}}s.d(e,{Z:function(){return i}})}}]);