"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv"),c=require("lodash-unified");require("../item/index.vue.js");const u=require("../item/index.vue2.js"),d=e.defineComponent({name:"ApActionItemModal",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},icon:{},iconFirst:{type:Boolean},tooltip:{},wrapperTooltip:{},modalProps:{default:()=>({})}},setup(r){const a=e.useSlots(),o=r;async function l(t){s.Modal.confirm({...o.modalProps,zIndex:1060,onOk:async()=>{o.modalProps.onOk?.(),await o.onAction?.(t)}})}return(t,p)=>(e.openBlock(),e.createBlock(u.default,e.mergeProps(e.unref(c.omit)(o,["modalProps","onAction"]),{onAction:l}),e.createSlots({_:2},[e.renderList(a,(f,n)=>({name:n,fn:e.withCtx(i=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(i||{})))])}))]),1040))}});exports.default=d;
