import{B as w}from"./Table-0PViRYCf.js";import{_ as C}from"./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";import{g as y}from"./list-I2I5D8gr.js";import{c as T}from"./basicColumns-TMDwil-f.js";import{d as x,u as v,ar as B,r as N,a,Z as R,c as D,o as S,w as e,j as r,l as s,B as A,p as V,W as $}from"./index-9PRMimni.js";import"./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./componentMap-CElCaWis.js";import"./propTypes-CebMRUpe.js";import"./format-DgF6KtHk.js";import"./omit-B2_8Y6O_.js";import"./_flatRest-DBrd2CHT.js";import"./flatten-DeoUZLdb.js";import"./print-CT_2hrjP.js";import"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import"./useModal-CO65vga3.js";import"./componentSetting-DVhNDBTO.js";import"./useTimeout-BxFilWvD.js";import"./usePageCache-DluHn7Yy.js";import"./tabsView-BXskTdVh.js";import"./Flex-CTSf12gq.js";import"./index-C-XHZLOy.js";const at=x({__name:"basic",setup(j){const o=v(),c=B(),n=N(),l=a({pageSize:5,name:"NaiveAdmin"}),m=a({width:150,title:"操作",key:"action",fixed:"right",align:"center",render(t){return R(C,{style:"button",actions:p(t)})}});function p(t){return[{label:"删除",onClick:_.bind(null,t),ifShow:()=>!0,auth:["basic_list"]},{label:"编辑",onClick:b.bind(null,t),ifShow:()=>!0,auth:["basic_list"]}]}const u=async t=>await y({...l,...t});function d(t){console.log(t)}function f(){n.value.reload()}function _(t){console.log(t),c.info({title:"提示",content:`您想删除${t.name}`,positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{o.success("删除成功")},onNegativeClick:()=>{}})}function b(t){console.log(t),o.success("您点击了编辑按钮")}return(t,i)=>{const g=A,k=$;return S(),D(k,{bordered:!1,class:"proCard"},{default:e(()=>[r(s(w),{title:"表格列表",titleTooltip:"这是一个提示",columns:s(T),request:u,"row-key":h=>h.id,ref_key:"actionRef",ref:n,actionColumn:m,"scroll-x":1360,"table-setting":{width:252},"onUpdate:checkedRowKeys":d},{tableTitle:e(()=>[r(g,{type:"primary",onClick:f},{default:e(()=>i[0]||(i[0]=[V("刷新数据")])),_:1})]),_:1},8,["columns","row-key","actionColumn"])]),_:1})}}});export{at as default};
