(window.webpackJsonp=window.webpackJsonp||[]).push([[753],{1479:function(e,t,n){"use strict";n.r(t);var o={name:"SigEstruturaDadosTabelaBancoTabela",props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0},busy:{type:Boolean,default:function(){return!1},required:!0},addCampo:{type:Function,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"nomeCampo",label:"Nome do campo"},{key:"tipoCampo",label:"Tipo do campo"},{key:"tipoBanco",label:"Tipo no banco de dados"},{key:"nullable",label:"Pode ser nulo?"},{key:"tamanhoMaximo",label:"Tamanho máximo"},{key:"precisao",label:"Precisão numérica"}],hover:!0,noCollapse:!0,headVariant:"light",totalRows:1,currentPage:1,perPage:10}},computed:{rows:function(){return this.items.length},edit:{get:function(){return this.editCell},set:function(e){this.$emit("update:edit",e)}},del:{get:function(){return this.deleteCell},set:function(del){this.$emit("update:delete",del)}}}},r=n(42),component=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-card",{staticClass:"mt-3"},[n("b-row",[n("b-col",{staticClass:"d-flex justify-content-end"},[n("b-button",{staticClass:"rounded",attrs:{variant:"outline-primary",size:"sm"},on:{click:e.addCampo}},[n("FaIcon",{attrs:{icon:"plus"}}),e._v(" "),n("span",[e._v("Adicionar campo")])],1)],1)],1),e._v(" "),n("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:e.hover,"no-border-collapse":e.noCollapse,items:e.items,fields:e.fields,"head-variant":e.headVariant,responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:e.busy},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-primary my-2"},[n("b-spinner",{staticClass:"align-middle"}),e._v(" "),n("strong",[e._v("Carregando...")])],1)]},proxy:!0}])}),e._v(" "),e.items.length>0?n("b-row",[n("b-col",{attrs:{"align-self":"end"}},[n("div",{staticClass:"text-right"},[n("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?n("b-pagination",{attrs:{"total-rows":e.rows,"per-page":e.perPage,align:"center",pills:""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=788ba14-1.2.11.js.map