Files
Nexus/web/app/assets/VDialog-BTw0ubZ5.js
T
Nexus Agent 0b2d7ac50d feat(scripts): 异步执行、全局进度看板与完成提示音设置
脚本 exec 立即返回 running 并在后台跑批次;/ws/alerts 推送 script_progress/complete;
新增 ScriptRunsPage、Telegram 汇总通知与可配置的浏览器完成提示音。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 07:07:02 +08:00

1 line
1.5 KiB
JavaScript

import{Er as e,Fr as t,S as n,Vn as r,X as i,b as a,cr as o,dn as s,ft as c,hn as l,mr as u,on as d,pr as f,rn as p,x as m,y as h}from"./index-DbSyD28P.js";var g=l({fullscreen:Boolean,scrollable:Boolean,...r(m({captureFocus:!0,origin:`center center`,scrollStrategy:`block`,transition:{component:i},zIndex:2400,retainFocus:!0}),[`disableInitialFocus`])},`VDialog`),_=s()({name:`VDialog`,props:g(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(r,{emit:i,slots:s}){let l=p(r,`modelValue`),{scopeId:m}=n(),g=t();function _(){i(`afterEnter`),(r.scrim||r.retainFocus)&&g.value?.contentEl&&!g.value.contentEl.contains(document.activeElement)&&g.value.contentEl.focus({preventScroll:!0})}function v(){i(`afterLeave`)}return e(l,async e=>{e||(await u(),g.value.activatorEl?.focus({preventScroll:!0}))}),d(()=>{let e=a.filterProps(r),t=f({"aria-haspopup":`dialog`},r.activatorProps),n=f({tabindex:-1},r.contentProps);return o(a,f({ref:g,class:[`v-dialog`,{"v-dialog--fullscreen":r.fullscreen,"v-dialog--scrollable":r.scrollable},r.class],style:r.style},e,{modelValue:l.value,"onUpdate:modelValue":e=>l.value=e,"aria-modal":`true`,activatorProps:t,contentProps:n,height:r.fullscreen?void 0:r.height,width:r.fullscreen?void 0:r.width,maxHeight:r.fullscreen?void 0:r.maxHeight,maxWidth:r.fullscreen?void 0:r.maxWidth,role:`dialog`,onAfterEnter:_,onAfterLeave:v},m),{activator:s.activator,default:(...e)=>o(c,{root:`VDialog`},{default:()=>[s.default?.(...e)]})})}),h({},g)}});export{_ as t};