(("undefined"!==typeof self?self:this)["webpackJsonpfe_bootstrap_vue"]=("undefined"!==typeof self?self:this)["webpackJsonpfe_bootstrap_vue"]||[]).push([[22],{e96a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-table",{attrs:{striped:"",fields:e.fields,items:e.items,responsive:"sm",busy:e.isBusy},on:{"update:busy":function(t){e.isBusy=t}},scopedSlots:e._u([{key:"cell(index)",fn:function(t){return[n("b-input",{model:{value:t.index,callback:function(n){e.$set(t,"index",n)},expression:"data.index"}})]}},{key:"cell(name)",fn:function(t){return[n("b",{staticClass:"text-info"},[e._v(e._s(t.value.last.toUpperCase()))]),e._v(" , "),n("b",[e._v(e._s(t.value.first))])]}},{key:"cell(age)",fn:function(t){return[n("b-input",{attrs:{type:"number"},model:{value:t.item.age,callback:function(n){e.$set(t.item,"age",n)},expression:"data.item.age"}})]}},{key:"cell(enable)",fn:function(t){return[n("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.item.enable,callback:function(n){e.$set(t.item,"enable",n)},expression:"data.item.enable"}})]}},{key:"cell(nameage)",fn:function(t){return[e._v(e._s(t.item.name.first)+" is "+e._s(t.item.age)+" years old")]}},{key:"cell(action)",fn:function(t){return[n("b-button",{on:{click:function(n){return e.handleClick(t.item)}}},[e._v("更新")]),n("b-button",{staticClass:"mr-1",on:{click:function(n){return e.info(t.item,t.index,n.target)}}},[e._v(" modal ")])]}}])}),n("b-modal",{attrs:{id:e.infoModal.id,title:e.infoModal.title,"ok-only":""},on:{hide:e.resetInfoModal}},[n("pre",[e._v(e._s(e.infoModal.content))])])],1)},a=[],l=n("5530"),s={data:function(){return{isBusy:!1,fields:["index",{key:"name",label:"Full Name"},"age","sex",{key:"nameage",label:"First name and age"},"enable","action"],items:[{name:{first:"John",last:"Doe"},sex:"Male",age:42,enable:!0},{name:{first:"Jane",last:"Doe"},sex:"Female",age:36,enable:!0},{name:{first:"Rubin",last:"Kincade"},sex:"Male",age:73,enable:!0},{name:{first:"Shirley",last:"Partridge"},sex:"Female",age:62,enable:!0}],infoModal:{id:"info-modal",title:"",content:""}}},methods:{handleClick:function(e){var t=this;console.log("update is clicked: ",Object(l["a"])({},e)),this.isBusy=!0,setTimeout((function(){t.isBusy=!1}),1e3)},info:function(e,t,n){this.infoModal.title="Row index: ".concat(t),this.infoModal.content=JSON.stringify(e,null,2),this.$root.$emit("bv::show::modal",this.infoModal.id,n)},resetInfoModal:function(){this.infoModal.title="",this.infoModal.content=""}}},o=s,f=n("2877"),u=Object(f["a"])(o,i,a,!1,null,null,null);t["default"]=u.exports}}]);
//# sourceMappingURL=fe-bootstrap-vue.umd.min.22.js.map