detect/detect.gui/Embedded/dist/assets/index-82593f0d.js

2 lines
7.9 KiB
JavaScript
Raw Normal View History

2024-11-19 12:32:08 +08:00
var de=Object.defineProperty,fe=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var J=(e,s,o)=>s in e?de(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o,D=(e,s)=>{for(var o in s||(s={}))we.call(s,o)&&J(e,o,s[o]);if(G)for(var o of G(s))he.call(s,o)&&J(e,o,s[o]);return e},L=(e,s)=>fe(e,ge(s));var K=(e,s,o)=>new Promise((c,l)=>{var p=i=>{try{n(o.next(i))}catch(u){l(u)}},t=i=>{try{n(o.throw(i))}catch(u){l(u)}},n=i=>i.done?c(i.value):Promise.resolve(i.value).then(p,t);n((o=o.apply(e,s)).next())});import{t as Y,u as z,_ as A,az as ye,p as N,a3 as me,d as De,aO as U,c as Ce,f as x,ao as ee,h as ke,aD as te,w as $e}from"./index.js";import{d as E,c as w,a6 as C,Z as f,_ as b,F as Be,ab as g,a4 as O,a5 as h,G as R,a0 as P,a9 as T,a8 as S,a1 as $,ad as oe,$ as Z,k as V,f as k,g as _,u as a,J as v,w as Q,y as se,n as ve,aa as W,m as be,a7 as Se,ag as Oe,ah as Pe,r as ne,h as Te}from"./vue-08ef39cb.js";import{aK as _e,a0 as Fe,b as He}from"./antd-86d2ef3c.js";const{t:X}=Y(),re={confirmLoading:{type:Boolean},showCancelBtn:{type:Boolean,default:!0},cancelButtonProps:Object,cancelText:{type:String,default:X("common.cancelText")},showOkBtn:{type:Boolean,default:!0},okButtonProps:Object,okText:{type:String,default:X("common.okText")},okType:{type:String,default:"primary"},showFooter:{type:Boolean},footerHeight:{type:[String,Number],default:60}},Le=D({isDetail:{type:Boolean},title:{type:String,default:""},loadingText:{type:String},showDetailBack:{type:Boolean,default:!0},open:{type:Boolean},loading:{type:Boolean},maskClosable:{type:Boolean,default:!0},getContainer:{type:[Object,String]},closeFunc:{type:[Function,Object],default:null},destroyOnClose:{type:Boolean}},re),Ne=E({name:"BasicDrawerFooter",props:L(D({},re),{height:{type:String,default:"60px"}}),emits:["ok","close"],setup(e,{emit:s}){const{prefixCls:o}=z("basic-drawer-footer"),c=w(()=>{const t=`${e.height}`;return{height:t,lineHeight:`calc(${t} - 1px)`}});function l(){s("ok")}function p(){s("close")}return{handleOk:l,prefixCls:o,handleClose:p,getStyle:c}}});function Re(e,s,o,c,l,p){const t=C("a-button");return e.showFooter||e.$slots.footer?(f(),b("div",{key:0,class:$(e.prefixCls),style:oe([e.getStyle,{background:"#13265a"}])},[e.$slots.footer?g(e.$slots,"footer",{key:1}):(f(),b(Be,{key:0},[g(e.$slots,"insertFooter"),e.showCancelBtn?(f(),O(t,T({key:0},e.cancelButtonProps,{onClick:e.handleClose,class:"mr-2 form-cancel"}),{default:h(()=>[R(P(e.cancelText),1)]),_:1},16,["onClick"])):S("",!0),g(e.$slots,"centerFooter"),e.showOkBtn?(f(),O(t,T({key:1,type:e.okType,onClick:e.handleOk},e.okButtonProps,{class:"mr-2 form-ok",loading:e.confirmLoading}),{default:h(()=>[R(P(e.okText),1)]),_:1},16,["type","onClick","loading"])):S("",!0),g(e.$slots,"appendFooter")],64))],6)):S("",!0)}const Ve=A(Ne,[["render",Re]]),je=E({name:"BasicDrawerHeader",components:{BasicTitle:ye,ArrowLeftOutlined:_e},props:{isDetail:N.bool,showDetailBack:N.bool,title:N.string},emits:["close"],setup(e,{emit:s}){const{prefixCls:o}=z("basic-drawer-header");function c(){s("close")}return{prefixCls:o,handleClose:c}}});const ze={key:1};function Ae(e,s,o,c,l,p){const t=C("BasicTitle"),n=C("ArrowLeftOutlined");return e.isDetail?(f(),b("div",{key:1,class:$([e.prefixCls,`${e.prefixCls}--detail`])},[Z("span",{class:$(`${e.prefixCls}__twrap`)},[e.showDetailBack?(f(),b("span",{key:0,onClick:s[0]||(s[0]=(...i)=>e.handleClose&&e.handleClose(...i))},[V(n,{class:$(`${e.prefixCls}__back`)},null,8,["class"])])):S("",!0),e.title?(f(),b("span",ze,P(e.title),1)):S("",!0)],2),Z("span",{class:$(`${e.prefixCls}__toolbar`)},[g(e.$slots,"titleToolbar")],2)],2)):(f(),O(t,{key:0,class:$(e.prefixCls),style:{"font-family":'"Noto Sans SC", serif',"font-size":"16px",color:"#ffffff"}},{default:h(()=>[g(e.$slots,"title"),R(" "+P(e.$slots.title?"":e.title),1)]),_:3},8,["class"]))}const Ee=A(je,[["render",Ae]]),Ie=E({components:{Drawer:Fe,ScrollContainer:me,DrawerFooter:Ve,DrawerHeader:Ee},inheritAttrs:!1,props:Le