var c=(a,s,l)=>new Promise((p,e)=>{var n=i=>{try{r(l.next(i))}catch(d){e(d)}},_=i=>{try{r(l.throw(i))}catch(d){e(d)}},r=i=>i.done?p(i.value):Promise.resolve(i.value).then(n,_);r((l=l.apply(a,s)).next())});import{B as R,__tla as v}from"./BasicTable-f21ed556.js";import{T as x,__tla as g}from"./componentMap-44c327dc.js";import{__tla as I}from"./TableImg.vue_vue_type_style_index_0_lang-0681b671.js";import{u as k,__tla as P}from"./useTable-b66ba709.js";import{o as f,__tla as T}from"./select-8115d24d.js";import{d as A,__tla as F}from"./table-68e57af6.js";import{t as E,__tla as M}from"./tree-ba7b22bc.js";import{b as Y,_ as S,__tla as D}from"./index-f0df2f76.js";import{A as H}from"./antd-057b41b1.js";import{d as V,k as B,a7 as w,_ as y,$ as G,f as O,a9 as $,a8 as N,ab as j}from"./vue-1631514e.js";import{__tla as q}from"./BasicForm-1f7b4828.js";import{__tla as z}from"./FormItem.vue_vue_type_script_lang-b8ce4930.js";import{__tla as J}from"./index-7a87ec93.js";import{__tla as K}from"./index-a2613349.js";import{__tla as L}from"./helper-01a18f25.js";import{__tla as Q}from"./BasicForm.vue_vue_type_style_index_0_lang-58da98b0.js";import"./uniqBy-58c2f3f0.js";import{__tla as U}from"./index-206406c4.js";import{__tla as W}from"./useWindowSizeFn-53b82e7c.js";import{__tla as X}from"./useForm-2e36096a.js";import{__tla as Z}from"./RadioButtonGroup-3086b2b2.js";import"./useFormItem-d5f46e05.js";import"./onMountedOrActivated-5690e97c.js";import{__tla as tt}from"./download-dc45853f.js";import"./base64Conver-39fc0d26.js";import{__tla as at}from"./index-6f5324ed.js";import{__tla as et}from"./IconPicker.vue_vue_type_style_index_0_lang-ab92f5b0.js";import{__tla as ot}from"./useCopyToClipboard-9d1e4453.js";import{__tla as it}from"./index-79e4735b.js";import"./sortable.esm-f208c0d8.js";let C,nt=Promise.all([(()=>{try{return v}catch(a){}})(),(()=>{try{return g}catch(a){}})(),(()=>{try{return I}catch(a){}})(),(()=>{try{return P}catch(a){}})(),(()=>{try{return T}catch(a){}})(),(()=>{try{return F}catch(a){}})(),(()=>{try{return M}catch(a){}})(),(()=>{try{return D}catch(a){}})(),(()=>{try{return q}catch(a){}})(),(()=>{try{return z}catch(a){}})(),(()=>{try{return J}catch(a){}})(),(()=>{try{return K}catch(a){}})(),(()=>{try{return L}catch(a){}})(),(()=>{try{return Q}catch(a){}})(),(()=>{try{return U}catch(a){}})(),(()=>{try{return W}catch(a){}})(),(()=>{try{return X}catch(a){}})(),(()=>{try{return Z}catch(a){}})(),(()=>{try{return tt}catch(a){}})(),(()=>{try{return at}catch(a){}})(),(()=>{try{return et}catch(a){}})(),(()=>{try{return ot}catch(a){}})(),(()=>{try{return it}catch(a){}})()]).then(()=>c(void 0,null,function*(){const a=[{title:"\u8F93\u5165\u6846",dataIndex:"name-group",editRow:!0,children:[{title:"\u8F93\u5165\u6846",dataIndex:"name",editRow:!0,editComponentProps:{prefix:"$"},width:150},{title:"\u9ED8\u8BA4\u8F93\u5165\u72B6\u6001",dataIndex:"name7",editRow:!0,width:150},{title:"\u8F93\u5165\u6846\u6821\u9A8C",dataIndex:"name1",editRow:!0,align:"left",editRule:!0,width:150},{title:"\u8F93\u5165\u6846\u51FD\u6570\u6821\u9A8C",dataIndex:"name2",editRow:!0,align:"right",editRule:e=>c(void 0,null,function*(){return e==="2"?"\u4E0D\u80FD\u8F93\u5165\u8BE5\u503C":""})},{title:"\u6570\u5B57\u8F93\u5165\u6846",dataIndex:"id",editRow:!0,editRule:!0,editComponent:"InputNumber",width:150}]},{title:"\u4E0B\u62C9\u6846",dataIndex:"name3",editRow:!0,editComponent:"Select",editComponentProps:{options:[{label:"Option1",value:"1"},{label:"Option2",value:"2"},{label:"Option3",value:"3"}]},width:200},{title:"\u8FDC\u7A0B\u4E0B\u62C9",dataIndex:"name4",editRow:!0,editComponent:"ApiSelect",editComponentProps:{api:f,resultField:"list",labelField:"name",valueField:"id"},width:200},{title:"\u8FDC\u7A0B\u4E0B\u62C9\u6811",dataIndex:"name8",editRow:!0,editComponent:"ApiTreeSelect",editRule:!1,editComponentProps:{api:E,resultField:"list"},width:200},{title:"\u65E5\u671F\u9009\u62E9",dataIndex:"date",editRow:!0,editComponent:"DatePicker",editComponentProps:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD"},width:150},{title:"\u65F6\u95F4\u9009\u62E9",dataIndex:"time",editRow:!0,editComponent:"TimePicker",editComponentProps:{valueFormat:"HH:mm",format:"HH:mm"},width:100},{title:"\u52FE\u9009\u6846",dataIndex:"name5",editRow:!0,editComponent:"Checkbox",editValueMap:e=>e?"\u662F":"\u5426",width:100},{title:"\u5F00\u5173",dataIndex:"name6",editRow:!0,editComponent:"Switch",editValueMap:e=>e?"\u5F00":"\u5173",width:100},{title:"\u5355\u9009\u6846",dataIndex:"radio1",editRow:!0,editComponent:"RadioGroup",editComponentProps:{options:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},width:200},{title:"\u5355\u9009\u6309\u94AE\u6846",dataIndex:"radio2",editRow:!0,editComponent:"RadioButtonGroup",editComponentProps:{options:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"}]},width:200},{title:"\u8FDC\u7A0B\u5355\u9009\u6846",dataIndex:"radio3",editRow:!0,editComponent:"ApiRadioGroup",editComponentProps:{api:f,resultField:"list",labelField:"name",valueField:"id"},width:200}],s=V({components:{BasicTable:R,TableAction:x},setup(){const{createMessage:e}=Y(),n=B(""),[_]=k({title:"\u53EF\u7F16\u8F91\u884C\u793A\u4F8B",titleHelpMessage:["\u672C\u4F8B\u4E2D\u4FEE\u6539[\u6570\u5B57\u8F93\u5165\u6846]\u8FD9\u4E00\u5217\u65F6\uFF0C\u540C\u4E00\u884C\u7684[\u8FDC\u7A0B\u4E0B\u62C9]\u5217\u7684\u5F53\u524D\u7F16\u8F91\u6570\u636E\u4E5F\u4F1A\u540C\u6B65\u53D1\u751F\u6539\u53D8"],api:A,columns:a,showIndexColumn:!1,showTableSetting:!0,tableSetting:{fullScreen:!0},actionColumn:{width:160,title:"Action",dataIndex:"action"}});function r(t){var o;n.value=t.key,(o=t.onEdit)==null||o.call(t,!0)}function i(t){var o;n.value="",(o=t.onEdit)==null||o.call(t,!1,!1)}function d(t){return c(this,null,function*(){var o,m;if(e.loading({content:"\u6B63\u5728\u4FDD\u5B58...",duration:0,key:"saving"}),yield(o=t.onValid)==null?void 0:o.call(t))try{const b=H(t.editValueRefs);(yield(m=t.onEdit)==null?void 0:m.call(t,!1,!0))&&(n.value=""),e.success({content:"\u6570\u636E\u5DF2\u4FDD\u5B58",key:"saving"})}catch(b){e.error({content:"\u4FDD\u5B58\u5931\u8D25",key:"saving"})}else e.error({content:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u6570\u636E",key:"saving"})})}function u(t,o){return t.editable?[{label:"\u4FDD\u5B58",onClick:d.bind(null,t,o)},{label:"\u53D6\u6D88",popConfirm:{title:"\u662F\u5426\u53D6\u6D88\u7F16\u8F91",confirm:i.bind(null,t,o)}}]:[{label:"\u7F16\u8F91",disabled:n.value?n.value!==t.key:!1,onClick:r.bind(null,t)}]}function h({column:t,value:o,record:m}){t.dataIndex==="id"&&(m.editValueRefs.name4.value=`${o}`)}return{registerTable:_,handleEdit:r,createActions:u,onEditChange:h}}}),l={class:"p-4"};function p(e,n,_,r,i,d){const u=w("TableAction"),h=w("BasicTable");return y(),G("div",l,[O(h,{onRegister:e.registerTable,onEditChange:e.onEditChange},{bodyCell:$(({column:t,record:o})=>[t.key==="action"?(y(),N(u,{key:0,actions:e.createActions(o,t)},null,8,["actions"])):j("",!0)]),_:1},8,["onRegister","onEditChange"])])}C=S(s,[["render",p]])}));export{nt as __tla,C as default};