| 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-BhqxyLmO.js";import{u as v}from"./entry/index-4XNSgt5c.js";import"./BasicForm.vue_vue_type_style_index_0_lang-BVWU-rWE.js";import"./antd-BfqWtMX3.js";import"./index-Dl4GtDev.js";import"./TableImg.vue_vue_type_style_index_0_lang-BkssKoGN.js";import"./uuid-BUBnBT7J.js";import"./sortable.esm-DYEDn-UA.js";import{_ as y}from"./index-B_mnQPUN.js";import{P as h}from"./index-DRDE9pS0.js";import{vxeTableColumns as T,vxeTableFormSchema as V}from"./tableData-E1fCwqqT.js";import{V as A}from"./index-CscyJPpa.js";import{d as b}from"./table-Dpfi1A1c.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-Dtv0YQRN.js";import"./index-DxnXgBLu.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-Bq0CH8Dl.js";import"./copyTextToClipboard-B8vsl9wq.js";import"./index-C2u98gRL.js";import"./base64Conver-DEMZeTZS.js";import"./index-Ci1ux3rO.js";import"./onMountedOrActivated-Ckq_czNf.js";import"./index-CCW50nzN.js";import"./download-D-M4qjhg.js";import"./cateApi-nuiBgRcX.js";import"./resourceApi-DG2FY_VE.js";import"./common-DlO4dbu_.js";import"./imageEnum-BRgYKvjO.js";import"./sysOrgApi-Dfx4pCiQ.js";import"./useWindowSizeFn-DxBDwLJC.js";import"./componentMap-CMo-DyMk.js";import"./useSortable-Cydyjtko.js";import"./useContentViewHeight-BkCg6P78.js";import"./select-GWEtrSoV.js";const ge=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{ge as default};
|