var c=(u,e,t)=>new Promise((i,l)=>{var F=n=>{try{r(t.next(n))}catch(p){l(p)}},o=n=>{try{r(t.throw(n))}catch(p){l(p)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(F,o);r((t=t.apply(u,e)).next())});import{d as B,f as C,o as E,n as m,U as f,a2 as A,a3 as b,a4 as s,k as y}from"./vue-vendor-CxLCUzY4.js";import{l as d}from"./antd-vue-vendor-CahNzUUa.js";import{bp as a,_ as h}from"./index-CLZzJyTP.js";import"./vxe-table-vendor-Cdi8WfTx.js";const k=B({name:"JVxeDemo5",components:{[d.name]:d},setup(){const u=C(),e=C([{title:"单行文本",key:"input",type:a.input,width:220,defaultValue:"",placeholder:"请输入${title}"},{title:"多行文本",key:"textarea",type:a.textarea,width:240},{title:"数字",key:"number",type:a.inputNumber,width:120,defaultValue:32},{title:"日期时间",key:"datetime",type:a.datetime,width:240,defaultValue:"2019-04-30 14:51:22",placeholder:"请选择"},{title:"时间",key:"time",type:a.time,width:220,defaultValue:"14:52:22",placeholder:"请选择"},{title:"下拉框",key:"select",type:a.select,width:220,options:[{title:"String",value:"string"},{title:"Integer",value:"int"},{title:"Double",value:"double"},{title:"Boolean",value:"boolean"}],allowSearch:!0,placeholder:"请选择"},{title:"复选框",key:"checkbox",type:a.checkbox,customValue:["Y","N"],defaultChecked:!1}]),t=C([]);function i(F){}function l({row:F}){var o;(o=u.value)==null||o.removeRows(F)}return E(()=>c(this,null,function*(){yield m(),u.value.addRows([{input:"input_1"},{input:"input_2"},{input:"input_3"},{input:"input_4"},{input:"input_5"}],{setActive:!1})})),{tableRef:u,columns:e,dataSource:t,handleView:i,handleDelete:l}}});function D(u,e,t,i,l,F){const o=f("JVxeTable");return A(),b("div",null,[e[0]||(e[0]=s("b",null,"键盘操作快捷键：",-1)),e[1]||(e[1]=s("div",{style:{border:"1px solid #cccccc",padding:"8px",width:"740px"}},[s("pre",null,`             F2 | 如果存在，激活单元格为编辑状态
            Esc | 如果存在，取消单元格编辑状态
              ↑ | 如果存在，则移动到上面的单元格
              ↓ | 如果存在，则移动到下面的单元格
              ← | 如果存在，则移动到左边的单元格
              → | 如果存在，则移动到右边的单元格
            Tab | 如果存在，则移动到右边单元格；如果移动到最后一列，则从下一行开始移到，以此循环
    Shift + Tab | 如果存在，则移动到左边单元格，如果移动到第一列，则从上一行开始移到，以此循环
          Enter | 如果存在，取消单元格编辑并移动到下面的单元格
  Shift + Enter | 如果存在，取消单元格编辑并移动到上面的单元格`)],-1)),y(o,{ref:"tableRef",stripe:"",toolbar:"",rowNumber:"",rowSelection:"",keyboardEdit:"",columns:u.columns,dataSource:u.dataSource},null,8,["columns","dataSource"])])}const S=h(k,[["render",D]]);export{S as default};
