import{t as u}from"./data-218ca159.js";const p={style:{"margin-top":"20px"}},i=Vue.defineComponent({__name:"radio",setup(d){const n=Vue.ref(),a=Vue.ref(),o=t=>{const{setCurrentRow:e}=n.value.getTableRef();e(t)},l=t=>{a.value=t},s=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(t,e)=>{const c=Vue.resolveComponent("pure-table"),r=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(c,{ref_key:"tableRef",ref:n,data:Vue.unref(u),columns:s,"highlight-current-row":"",onPageCurrentChange:l},null,8,["data"]),Vue.createElementVNode("div",p,[Vue.createVNode(r,{onClick:e[0]||(e[0]=V=>o(Vue.unref(u)[1]))},{default:Vue.withCtx(()=>[Vue.createTextVNode("Select second row")]),_:1}),Vue.createVNode(r,{onClick:e[1]||(e[1]=V=>o())},{default:Vue.withCtx(()=>[Vue.createTextVNode("Clear selection")]),_:1})])])}}});export{i as _};
