| 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-CbJZxeVh.js";import{u as v}from"./entry/index-BZhB4-OX.js";import"./BasicForm.vue_vue_type_style_index_0_lang-Cia09Vjw.js";import"./antd-JiYGPyT2.js";import"./index-CjVypO95.js";import"./TableImg.vue_vue_type_style_index_0_lang-LtL77lnL.js";import"./uuid-BUBnBT7J.js";import"./sortable.esm-DYEDn-UA.js";import{_ as y}from"./index-B54lSCGj.js";import{P as h}from"./index-D0GRyxgu.js";import{vxeTableColumns as T,vxeTableFormSchema as V}from"./tableData-C-6UAFYN.js";import{V as A}from"./index-Bi_8Hbu2.js";import{d as b}from"./table-CjzMDQW-.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-C6jq28V5.js";import"./index-VSg2hddI.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-BkrNInPo.js";import"./copyTextToClipboard-D4A_TFSu.js";import"./index-B69BEstS.js";import"./base64Conver-DEMZeTZS.js";import"./index-CHh_lU-x.js";import"./onMountedOrActivated-Ckq_czNf.js";import"./index-GD5ittvR.js";import"./UploadPreviewModal-BcO0e7gU.js";import"./download-nyGlGKPz.js";import"./cateApi-CxrmY6TQ.js";import"./resourceApi-CyMk93xV.js";import"./common-B2E24Xwb.js";import"./imageEnum-BRgYKvjO.js";import"./sysOrgApi-65uEoRPa.js";import"./useWindowSizeFn-BgZhXeir.js";import"./componentMap-DfC1RIb-.js";import"./useSortable-B1r9-m0y.js";import"./useContentViewHeight-C70WhqeT.js";import"./select-SfhnPkvp.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};
|