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VIi2OKst2+c5P1QaEEEYuH2V7N4Lqv2msrlCDisa5FrqkEUSwIL7E93sDrPW6vqVCC5AaN0l/kVZ+iBGlxfMR2awOuc6u9lkIJkjvcwXagjuc/YK+hUILkEgnVdxeRDfYaCiVIbvEk2546nHePPbdCCZJ7rMvJORVKkEzwBtuOGp5vhz2nQgnSNMBu6uM1OM84Nedu80qQFscY1SYfx2Z7LoUSpOlwH9ubi/j9m/YcCiWIDth1YK4EaUU8z7Z7Ab/bbX+rUII0PdY36DcKJUgu8R7btnkcv83+RqEEaRncwnZkDscdsccqlCAthQrbDXM47gZ7rEIJ0nJ4lO2VE3z/ij1GoQRpWaxb4HcKJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC"},NHnr:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("/xf8"),n=i("3cXf"),l=i.n(n),a={name:"app",data:function(){return{ids:[4],options:{label:"label",checkbox:!0,checkedOpen:!0,folderBold:!0,idsWithParent:!0,depthOpen:2,openIcon:"fa fa-angle-right",closeIcon:"fa fa-angle-down",halfCheckedIcon:"fa fa-minus-square-o fa-fw text-primary",checkedIcon:"fa fa-check-square-o fa-fw text-danger",uncheckedIcon:"fa fa-square-o fa-fw"},message:[],treeData:[{label:"根目录[1]",id:1,children:[{label:"一级节点[4]",id:4,children:[{label:"二级节点[5]",id:5,children:[{label:"三级节点[6]",id:6},{label:"三级节点[8]",id:8},{label:"三级节点[30]",id:30},{label:"三级节点[31]",id:31,children:[{label:"四级节点[36]",id:36},{label:"四级节点[38]",id:38},{label:"四级节点[39]",id:39},{label:"四级节点[48]",id:48}]}]},{label:"二级节点[9]",id:9},{label:"二级节点[10]",id:10},{label:"二级节点[11]",id:11,children:[{label:"三级节点[12]",id:12},{label:"三级节点[13]",id:13},{label:"三级节点[14]",id:14,children:[{label:"四级节点[15]",id:15},{label:"四级节点[16]",id:16},{label:"四级节点[17]",id:17},{label:"四级节点[18]",id:18},{label:"四级节点[19]",id:19,children:[{label:"五级节点[20]",id:20},{label:"五级节点[21]",id:21},{label:"五级节点[22]",id:22},{label:"五级节点[23]",id:23},{label:"五级节点[24]",id:24}]}]}]}]},{label:"一级节点[2]",id:2},{label:"一级节点[59]",id:59,children:[{label:"二级节点[60]",id:60},{label:"二级节点[61]",id:61},{label:"二级节点[62]",id:62},{label:"二级节点[63]",id:63},{label:"二级节点[64]",id:64}]},{label:"一级节点[3]",id:3}]},{label:"根目录[99]",id:99,children:[{label:"二级节点[70]",id:70},{label:"二级节点[71]",id:71},{label:"二级节点[72]",id:72},{label:"二级节点[73]",id:73},{label:"二级节点[74]",id:74,children:[{label:"三级节点[82]",id:82},{label:"三级节点[83]",id:83}]}]}]}},methods:{handle:function(e){this.message.push("节点 "+l()(e)+" 作为事件参数传递")}}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[i("div",{staticClass:"container"},[i("div",{staticClass:"row"},[e._m(0),e._v(" "),i("div",{staticClass:"col-md-6"},[i("vue-tree",{attrs:{"tree-data":e.treeData,options:e.options},on:{handle:e.handle},model:{value:e.ids,callback:function(t){e.ids=t},expression:"ids"}})],1),e._v(" "),i("div",{staticClass:"col-md-6"},[i("p",{staticClass:"lead"},[e._v("设置")]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"checkbox"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.options.checkbox,expression:"options.checkbox"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.options.checkbox)?e._i(e.options.checkbox,null)>-1:e.options.checkbox},on:{change:function(t){var i=e.options.checkbox,s=t.target,n=!!s.checked;if(Array.isArray(i)){var l=e._i(i,null);s.checked?l<0&&e.$set(e.options,"checkbox",i.concat([null])):l>-1&&e.$set(e.options,"checkbox",i.slice(0,l).concat(i.slice(l+1)))}else e.$set(e.options,"checkbox",n)}}}),e._v(" 显示复选框\n            ")])]),e._v(" "),i("div",{staticClass:"checkbox"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.options.checkedOpen,expression:"options.checkedOpen"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.options.checkedOpen)?e._i(e.options.checkedOpen,null)>-1:e.options.checkedOpen},on:{change:function(t){var i=e.options.checkedOpen,s=t.target,n=!!s.checked;if(Array.isArray(i)){var l=e._i(i,null);s.checked?l<0&&e.$set(e.options,"checkedOpen",i.concat([null])):l>-1&&e.$set(e.options,"checkedOpen",i.slice(0,l).concat(i.slice(l+1)))}else e.$set(e.options,"checkedOpen",n)}}}),e._v(" 已选择是否展开\n            ")])]),e._v(" "),i("div",{staticClass:"checkbox"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.options.folderBold,expression:"options.folderBold"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.options.folderBold)?e._i(e.options.folderBold,null)>-1:e.options.folderBold},on:{change:function(t){var i=e.options.folderBold,s=t.target,n=!!s.checked;if(Array.isArray(i)){var l=e._i(i,null);s.checked?l<0&&e.$set(e.options,"folderBold",i.concat([null])):l>-1&&e.$set(e.options,"folderBold",i.slice(0,l).concat(i.slice(l+1)))}else e.$set(e.options,"folderBold",n)}}}),e._v(" 目录加粗\n            ")])]),e._v(" "),i("div",{staticClass:"checkbox"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.options.idsWithParent,expression:"options.idsWithParent"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.options.idsWithParent)?e._i(e.options.idsWithParent,null)>-1:e.options.idsWithParent},on:{change:function(t){var i=e.options.idsWithParent,s=t.target,n=!!s.checked;if(Array.isArray(i)){var l=e._i(i,null);s.checked?l<0&&e.$set(e.options,"idsWithParent",i.concat([null])):l>-1&&e.$set(e.options,"idsWithParent",i.slice(0,l).concat(i.slice(l+1)))}else e.$set(e.options,"idsWithParent",n)}}}),e._v(" 复选是否包含目录\n            ")])])]),e._v(" "),i("div",{staticClass:"form-group"},[i("label",[e._v("初始展开层级")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.options.depthOpen,expression:"options.depthOpen"}],staticClass:"form-control",attrs:{type:"number",disabled:""},domProps:{value:e.options.depthOpen},on:{input:function(t){t.target.composing||e.$set(e.options,"depthOpen",t.target.value)}}})]),e._v(" "),i("h3",[e._v("Events")]),e._v(" "),e._m(1),e._v(" "),e._l(e.message,function(t){return i("p",[i("pre",{domProps:{innerHTML:e._s(t)}})])}),e._v(" "),i("h3",[e._v("Checked ids")]),e._v(" "),i("p",[e._v(e._s(e.ids))]),e._v(" "),i("h3",[e._v("Options")]),e._v(" "),i("p",[e._v(e._s(e.options))])],2)])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-md-12 text-center"},[t("img",{attrs:{src:i("7Otq")}}),this._v(" "),t("p",{staticClass:"lead"},[this._v("vue-tree 示例 "),t("a",{attrs:{href:"https://github.com/jiaxincui/vue-tree"}},[this._v("github")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v("单击节点名称触发"),t("code",[this._v("handle")]),this._v("事件")])}]},o=i("C7Lr")(a,d,!1,null,null,null).exports,c=i("aA9S"),h=i.n(c),r={name:"tree-item",props:{model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},depth:{type:Number,default:0},ids:{type:Array,default:function(){return[]}},idsWithParent:{type:Array,default:function(){return[]}},half:{type:Array,default:function(){return[]}},state:{type:Number,default:0}},data:function(){return{open:!1,itemState:0}},computed:{toggleIcon:function(){return this.open?this.options.closeIcon:this.options.openIcon},labelIcon:function(){return-1!==this.half.indexOf(this.model.id)?this.options.halfCheckedIcon:-1!==this.idsWithParent.indexOf(this.model.id)?this.options.checkedIcon:this.options.uncheckedIcon},labelStatus:function(){return-1!==this.half.indexOf(this.model.id)?"half-checked":-1!==this.idsWithParent.indexOf(this.model.id)?"checked":"unchecked"},isFolder:function(){return this.model.children&&this.model.children.length},isBold:function(){return{"item-bold":this.isFolder&&this.options.folderBold}},self:function(){var e=h()({},this.model,{children:[]});return delete e.children,e}},created:function(){if(this.isFolder&&this.depth<this.options.depthOpen&&(this.open=!0),this.options.checkbox){if(-1!==this.idsWithParent.indexOf(this.model.id)){if(this.itemState=this.itemState+1,this.isFolder&&!this.options.idsWithParent){var e=this.ids.indexOf(this.model.id);-1!==e&&this.$delete(this.ids,e)}this.$emit("child-change",!0)}this.state>0&&(this.addChecked(),this.itemState=this.itemState+1)}},watch:{state:function(e,t){e>t?(this.addChecked(),this.itemState=this.itemState+1):(this.delChecked(),this.deleteHalfChecked(this.model.id),this.itemState=this.itemState-1)}},methods:{toggle:function(){this.isFolder&&(this.open=!this.open)},handle:function(){this.emitHandle(this.self)},emitHandle:function(e){this.$emit("handle",e)},toggleChecked:function(){this.isFolder&&this.deleteHalfChecked(),-1!==this.idsWithParent.indexOf(this.model.id)?(this.delChecked(),this.$emit("child-change",!1),this.itemState=this.itemState-1):(this.addChecked(),this.$emit("child-change",!0),this.options.checkedOpen&&this.isFolder&&(this.open=!0),this.itemState=this.itemState+1)},addChecked:function(){-1===this.idsWithParent.indexOf(this.model.id)&&this.$set(this.idsWithParent,this.idsWithParent.length,this.model.id),this.isFolder&&!this.options.idsWithParent||-1===this.ids.indexOf(this.model.id)&&this.$set(this.ids,this.ids.length,this.model.id)},delChecked:function(){var e=this.idsWithParent.indexOf(this.model.id),t=this.ids.indexOf(this.model.id);-1!==e&&this.$delete(this.idsWithParent,e),-1!==t&&this.$delete(this.ids,t)},setHalfChecked:function(){-1===this.half.indexOf(this.model.id)&&this.$set(this.half,this.half.length,this.model.id)},deleteHalfChecked:function(){var e=this.half.indexOf(this.model.id);-1!==e&&this.$delete(this.half,e)},childChange:function(e){var t=this;if(this.model.children.some(function(e){return-1!==t.half.indexOf(e.id)}))return this.addChecked(),this.setHalfChecked(),void this.$emit("child-change",!0);e?(this.addChecked(),this.model.children.some(function(e){return-1===t.idsWithParent.indexOf(e.id)})?this.setHalfChecked():this.deleteHalfChecked(),this.$emit("child-change",!0)):(this.model.children.some(function(e){return-1!==t.idsWithParent.indexOf(e.id)})?this.setHalfChecked():(this.deleteHalfChecked(),this.delChecked()),this.$emit("child-change",!1))}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"vue-tree-item"},[i("div",{staticClass:"item-wrapper",attrs:{onselectstart:"return false;"}},[e.isFolder?i("span",{staticClass:"item-toggle",on:{click:e.toggle}},[i("i",{class:[e.toggleIcon]})]):i("span",{staticClass:"item-toggle"}),e._v(" "),e.options.checkbox?i("span",{staticClass:"item-checkbox",class:[e.labelIcon,e.labelStatus],on:{click:e.toggleChecked}}):e._e(),e._v(" "),i("span",{staticClass:"item-label",class:e.isBold,on:{click:e.handle}},[e._v("\n      "+e._s(e.model[e.options.label])+"\n    ")])]),e._v(" "),e.isFolder?i("ul",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],staticClass:"vue-tree-list"},e._l(e.model.children,function(t,s){return i("tree-item",{key:s,attrs:{model:t,options:e.options,ids:e.ids,depth:e.depth+1,"ids-with-parent":e.idsWithParent,half:e.half,state:e.itemState},on:{handle:e.emitHandle,"child-change":e.childChange}})}),1):e._e()])},staticRenderFns:[]},u=i("C7Lr")(r,p,!1,null,null,null).exports,f=(i("ih73"),{components:{"tree-item":u},model:{prop:"ids",event:"change"},props:{treeData:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},ids:{type:Array,default:function(){return[]}}},data:function(){return{defaultOptions:{label:"label",checkbox:!0,checkedOpen:!0,folderBold:!0,idsWithParent:!0,depthOpen:0,openIcon:"fa fa-angle-right",closeIcon:"fa fa-angle-down",halfCheckedIcon:"fa fa-minus-square-o fa-fw",checkedIcon:"fa fa-check-square-o fa-fw",uncheckedIcon:"fa fa-square-o fa-fw"},termOptions:{},idsWithParent:[],state:0}},created:function(){this.initOptions(),this.idsWithParent=this.ids.slice(0)},watch:{options:{handler:function(e){this.initOptions()},deep:!0}},methods:{handle:function(e){this.$emit("handle",e)},initOptions:function(){this.termOptions=h()({},this.defaultOptions,this.options),this.idsWithParent=this.ids.slice(0)}}}),m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"vue-tree-list"},e._l(e.treeData,function(t,s){return i("tree-item",{key:s,attrs:{ids:e.ids,"ids-with-parent":e.idsWithParent,model:t,options:e.termOptions,depth:0,state:e.state},on:{handle:e.handle}})}),1)},staticRenderFns:[]},k=i("C7Lr")(f,m,!1,null,null,null).exports;k.install=function(e){e.component("vue-tree",k)};var b=k;s.a.use(b),s.a.config.productionTip=!1,new s.a({el:"#app",template:"<App/>",components:{App:o}})},ih73:function(e,t){}},["NHnr"]);
  //# sourceMappingURL=app.f4abe41e30afc54006ef.js.map