import{t as l}from"./data-218ca159.js";const p={style:{"margin-top":"20px"}},f=Vue.defineComponent({__name:"multipleChoice",setup(V){const a=Vue.ref(),r=Vue.ref([]),u=t=>{const{toggleRowSelection:e,clearSelection:n}=a.value.getTableRef();t?t.forEach(o=>{e(o,void 0)}):n()},c=t=>{r.value=t},s=[{type:"selection",align:"left"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(t,e)=>{const n=Vue.resolveComponent("pure-table"),o=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(n,{ref_key:"tableRef",ref:a,data:Vue.unref(l),columns:s,onSelectionChange:c},null,8,["data"]),Vue.createElementVNode("div",p,[Vue.createVNode(o,{onClick:e[0]||(e[0]=i=>u([Vue.unref(l)[1],Vue.unref(l)[2]]))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Toggle selection status of second and third rows ")]),_:1}),Vue.createVNode(o,{onClick:e[1]||(e[1]=i=>u())},{default:Vue.withCtx(()=>[Vue.createTextVNode("Clear selection")]),_:1})])])}}});export{f as _};
