(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[13],{f22d:function(t,n,e){"use strict";e.r(n);var s=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._l(t.visibleButtons,(function(n,s){return[e("el-button",{key:s,attrs:{size:"mini",disabled:!n.isShow},on:{click:n.click}},[t._v(t._s(n.text))])]})),t.showMore?e("el-dropdown",{staticClass:"ml-10px"},[e("el-button",{attrs:{size:"mini"}},[t._v("更多"),e("i",{staticClass:"el-icon-arrow-right el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t._l(t.hiddenButtons,(function(n,s){return[e("el-dropdown-item",{key:s,attrs:{disabled:!n.isShow},nativeOn:{click:function(t){return n.click(t)}}},[t._v(t._s(n.text))])]}))],2)],1):t._e()],2)},o=[],i=(e("fb6a"),{name:"table-operate-button",props:{buttons:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{visibleButtons:function(){return this.buttons.length<4?this.buttons:this.buttons.slice(0,3)},hiddenButtons:function(){return this.buttons.length<4?[]:this.buttons.slice(3)},showMore:function(){return this.buttons.length>=4}}}),r=i,u=e("2877"),l=Object(u["a"])(r,s,o,!1,null,null,null);n["default"]=l.exports}}]);