| 1 |
- var _=Object.defineProperty;var u=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(r,o,e)=>o in r?_(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,g=(r,o)=>{for(var e in o||(o={}))k.call(o,e)&&f(r,e,o[e]);if(u)for(var e of u(o))C.call(o,e)&&f(r,e,o[e]);return r};var c=(r,o,e)=>new Promise((p,m)=>{var t=a=>{try{i(e.next(a))}catch(s){m(s)}},n=a=>{try{i(e.throw(a))}catch(s){m(s)}},i=a=>a.done?p(a.value):Promise.resolve(a.value).then(t,n);i((e=e.apply(r,o)).next())});import"./helper-B0yEaptj.js";import{u as v}from"./entry/index-CRWhxBeP.js";import"./BasicForm.vue_vue_type_style_index_0_lang-wVUE9AOT.js";import"./antd-BfqWtMX3.js";import"./index-CD5zFmZN.js";import"./TableImg.vue_vue_type_style_index_0_lang-CQNR6Cbs.js";import"./uuid-BUBnBT7J.js";import"./sortable.esm-DYEDn-UA.js";import{_ as y}from"./index-BGDG2Aiy.js";import{P as h}from"./index-C0mnMlct.js";import{vxeTableColumns as T,vxeTableFormSchema as V}from"./tableData-CDO3JsyS.js";import{V as A}from"./index-BJUkcCht.js";import{d as b}from"./table-BYicEzJW.js";import{d as B,f as S,r as w,Z as P,a4 as R,a5 as d,k as x,u as l,a9 as q}from"./vue-DM5HGU8Z.js";import"./index-BshNMORD.js";import"./index-BZ4uXGij.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-BMkV6zCu.js";import"./copyTextToClipboard-B8vsl9wq.js";import"./index-CIEo7xez.js";import"./base64Conver-DEMZeTZS.js";import"./index-DOkdpLQv.js";import"./onMountedOrActivated-Ckq_czNf.js";import"./index-lE2idd8k.js";import"./UploadPreviewModal-BZsd-hmR.js";import"./download-DbzL13NI.js";import"./cateApi-BE6kfD5q.js";import"./resourceApi-CKj0y817.js";import"./common-DpkSdXuu.js";import"./imageEnum-BRgYKvjO.js";import"./sysOrgApi-tY_yXKfV.js";import"./useWindowSizeFn-CEueHQop.js";import"./componentMap-DvvMrh5V.js";import"./useSortable-BUyXn7hO.js";import"./useContentViewHeight-D9So7_ch.js";import"./select-DBHENJrd.js";const be=B({__name:"VxeTable",setup(r){const{createMessage:o}=v(),e=S(),p=w({id:"VxeTable",keepSource:!0,editConfig:{trigger:"click",mode:"cell",showStatus:!0},columns:T,toolbarConfig:{buttons:[{content:"在第一行新增",buttonRender:{name:"AButton",props:{type:"primary",preIcon:"mdi:page-next-outline"},events:{click:()=>{var t;(t=e.value)==null||t.insert({name:"新增的"}),o.success("新增成功")}}}},{content:"在最后一行新增",buttonRender:{name:"AButton",props:{type:"warning"},events:{click:()=>{var t;(t=e.value)==null||t.insertAt({name:"新增的"},-1)}}}}]},formConfig:{enabled:!0,items:V},height:"auto",proxyConfig:{ajax:{query:i=>c(this,[i],function*({page:t,form:n}){return b(g({page:t.currentPage,pageSize:t.pageSize},n))}),queryAll:n=>c(this,[n],function*({form:t}){return yield b(t)})}}}),m=t=>[{label:"详情",onClick:()=>{}},{label:"编辑",onClick:()=>{}},{label:"删除",color:"error",popConfirm:{title:"是否确认删除",confirm:()=>{var i;(i=e.value)==null||i.remove(t)}}}];return(t,n)=>(P(),R(l(h),{title:"VxeTable表格",content:"只展示部分操作,详细功能请查看VxeTable官网事例",contentFullHeight:"",fixedHeight:""},{default:d(()=>[x(l(A),q({ref_key:"tableRef",ref:e},p),{action:d(({row:i})=>[x(l(y),{outside:"",actions:m(i)},null,8,["actions"])]),_:1},16)]),_:1}))}});export{be as default};
|