Files
qhmes/web-dist/js/OpenApiAuthModal-Dx8uQqY8.js

2 lines
5.8 KiB
Java
Raw Normal View History

2026-06-16 18:19:57 +08:00
var Q=Object.defineProperty,U=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var D=(e,t,o)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))Y.call(t,o)&&D(e,o,t[o]);if(T)for(var o of T(t))Z.call(t,o)&&D(e,o,t[o]);return e},P=(e,t)=>U(e,X(t));var I=(e,t,o)=>new Promise((f,m)=>{var a=i=>{try{n(o.next(i))}catch(p){m(p)}},c=i=>{try{n(o.throw(i))}catch(p){m(p)}},n=i=>i.done?f(i.value):Promise.resolve(i.value).then(a,c);n((o=o.apply(e,t)).next())});import x from"./OpenApiAuthForm-Bpi2ziO4.js";import{b as ee,e as le,c as te,d as ne,M as oe,F as ae,a as se}from"./ModalHeader-Sr8KwhJJ.js";import{useAppInject as ie}from"./useAppInject-DPZGPcR3.js";import{T as ce,b1 as ue,b2 as B,ad as re,c as de,gC as fe,au as me,M as pe}from"./index-X7Y8jykP.js";import{e as J,r as d,w as S,h as ve,c as _,u as s,g as he,ag as ge,y as $,z as M,I as j,A as r,D as H,C as be,H as ke,f as k,K as C,L as w,M as V,N as A,B as E,n as z}from"./vue-vendor-DNhG1Cve.js";import"./OpenApiAuth.api-28x6ZoAw.js";import"./JFormContainer-LLg2uKhY.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./useTimeout-D5AmIBZw.js";import"./index-BzChaRPg.js";const Ce=J({name:"JModal",methods:{omit:B},components:{CloseOutlined:ue,Tooltip:ce,FullscreenExitOutlined:se,FullscreenOutlined:ae,ModalHeader:oe,ModalClose:ne,ModalFooter:te,Modal:le},props:b({fullscreen:{type:Boolean,default:!1}},ee),emits:["visible-change","open-change","height-change","cancel","ok","register","update:visible","update:open","fullScreen"],setup(e,{emit:t,attrs:o,slots:f}){const{getIsMobile:m}=ie(),a=d(!1),c=d(null),n=d(e.fullscreen),i=d(!1),{t:p}=re(),F=d({height:e.maxHeight?e.maxHeight:"600px","overflow-y":"auto"}),g={setModalProps:G,emitVisible:void 0},v=_(()=>{const l=b(b({},e),s(c));return m.value&&(l.fullscreen=!1),l}),u=_(()=>{const l=P(b(b({},o),s(v)),{open:s(a),wrapClassName:s(h)});return s(n)?B(l,["height","visible"]):B(l,["visible"])}),h=_(()=>{let l=ge(v.value,"wrapClassName").value||"";return l=`${l} jeecg-modal-code-generate`,s(n)?`jeecg-full-screen-modal-code-generate ${l} `:s(l)}),N=_(()=>{const l=P(b({},s(v)),{visible:s(a),okButtonProps:void 0,cancelButtonProps:void 0,title:void 0});return P(b({},l),{wrapClassName:s(h)})}),y=he();y&&t("register",g,y.uid);function L(){return!s(v).title&&!f.title}function R(l){l==null||l.stopPropagation(),l==null||l.preventDefault(),n.value=!s(n)}function K(l){return I(this,null,function*(){if(l==null||l.stopPropagation(),e.closeFunc&&de(e.closeFunc)){const O=yield e.closeFunc();a.value=!O;return}a.value=!1,t("cancel",l)})}function W(l){t("ok",l)}function q(l){e.fullscreen&&(l.stopPropagation(),R(l))}function G(l){c.value=fe(s(c)||{},l),Reflect.has(l,"visible")&&(a.value=!!l.visible),Reflect.has(l,"open")&&(a.value=!!l.open),Reflect.has(l,"defaultFullscreen")&&(n.value=!!l.defaultFullscreen,m.value&&(n.value=!0))}return S(()=>{n.value=e.fullscreen,m.value&&(n.value=!0)}),S(()=>{a.value=!!e.visible}),S(()=>{a.value=!!e.open}),ve(()=>s(a),l=>{var O;t("visible-change",l),t("open-change",l),t("update:visible",l),t("update:open",l),y&&((O=g.emitVisible)==null||O.call(g,l,y.uid))},{immediate:!1}),{isNoTitle:L,getBindValue:u,fullScreenRef:n,handleFullScreen:R,fullScreen:i,t:p,handleCancel:K,handleOk:W,getProps:N,getMergeProps:v,handleTitleDbClick:q,bodyStyle:F}}}),Fe={key:0,class:"jeecg-basic-modal-close"};function Me(e,t,o,f,m,a){const c=C("FullscreenExitOutlined"),n=C("Tooltip"),i=C("FullscreenOutlined"),p=C("CloseOutlined"),F=C("ModalHeader"),g=C("ModalFooter"),v=pe;return M(),$(v,E(e.getBindValue,{onCancel:e.handleCancel,"body-style":e.fullScreenRef?{}:e.bodyStyle}),j({default:r(()=>[w(e.$slots,"default",{},void 0,!0)]),_:2},[e.$slots.closeIcon?void 0:{name:"closeIcon",fn:r(()=>[e.canFullscreen?(M(),be("div",Fe,[e.fullScreenRef?(M(),$(n,{key:0,title:e.t("component.modal.restore"),placement:"bottom"},{default:r(()=>[k(