(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35ab8fb1"],{"517e":function(e,t,n){"use strict";var r=n("632f"),i=n.n(r);i.a},"632f":function(e,t,n){},badd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cl-menu-tree"},[n("el-popover",{ref:"popover",attrs:{placement:"bottom-start",trigger:"click","popper-class":"popper-menu-tree"}},[n("el-input",{attrs:{size:"small"},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),n("el-tree",{ref:"tree",attrs:{"node-key":"menuId",data:e.treeList,props:e.props,"highlight-current":!0,"expand-on-click-node":!1,"default-expanded-keys":e.expandedKeys,"filter-node-method":e.filterNode},on:{"current-change":e.currentChange}})],1),n("el-input",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],attrs:{readonly:"",placeholder:"请选择"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)},i=[],a=(n("0e8d"),n("8759"),n("4945"),n("4303"),n("8bc2")),l={name:"cl-menu-tree",props:{value:String},data:function(){return{filterValue:"",list:[],props:{label:"name",children:"children"},expandedKeys:[]}},watch:{filterValue:function(e){this.$refs.tree.filter(e)}},computed:{name:function(){var e=this,t=this.list.find((function(t){return t.id==e.value}));return t?t.name:"一级菜单"},treeList:function(){return Object(a["deepTree"])(this.list)}},mounted:function(){this.menuList()},methods:{currentChange:function(e){var t=e.id;this.$emit("input",t)},menuList:function(){var e=this;this.$service.system.menu.list().then((function(t){var n=t.filter((function(e){return 2!=e.type}));n.unshift({name:"一级菜单",id:null}),e.list=n}))},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)}}},s=l,o=(n("517e"),n("5511")),u=Object(o["a"])(s,r,i,!1,null,null,null);t["default"]=u.exports}}]);