Files
Nexus/web/app/assets/VDialog-CedSVCX4.js
T
Nexus Agent 27da842a20 fix: Telegram 开关多 worker 同步与服务器行内详情展开
关闭 notify_* 后通过 Redis 广播同步各 worker 内存设置;修复 expanded id 类型不匹配导致点击名称无法展开详情。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 13:05:22 +08:00

1 line
1.5 KiB
JavaScript

import{Cr as e,M as t,Q as n,Rr as r,Yn as i,a,gn as o,i as s,o as c,qr as l,r as u,sn as d,un as f,vr as p,wr as m,xn as h}from"./index-BDmfR_V6.js";var g=h({fullscreen:Boolean,scrollable:Boolean,...i(a({captureFocus:!0,origin:`center center`,scrollStrategy:`block`,transition:{component:t},zIndex:2400,retainFocus:!0}),[`disableInitialFocus`])},`VDialog`),_=o()({name:`VDialog`,props:g(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,{emit:i,slots:a}){let o=d(t,`modelValue`),{scopeId:h}=c(),g=l();function _(){i(`afterEnter`),(t.scrim||t.retainFocus)&&g.value?.contentEl&&!g.value.contentEl.contains(document.activeElement)&&g.value.contentEl.focus({preventScroll:!0})}function v(){i(`afterLeave`)}return r(o,async e=>{e||(await m(),g.value.activatorEl?.focus({preventScroll:!0}))}),f(()=>{let r=s.filterProps(t),i=e({"aria-haspopup":`dialog`},t.activatorProps),c=e({tabindex:-1},t.contentProps);return p(s,e({ref:g,class:[`v-dialog`,{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},r,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,"aria-modal":`true`,activatorProps:i,contentProps:c,height:t.fullscreen?void 0:t.height,width:t.fullscreen?void 0:t.width,maxHeight:t.fullscreen?void 0:t.maxHeight,maxWidth:t.fullscreen?void 0:t.maxWidth,role:`dialog`,onAfterEnter:_,onAfterLeave:v},h),{activator:a.activator,default:(...e)=>p(n,{root:`VDialog`},{default:()=>[a.default?.(...e)]})})}),u({},g)}});export{_ as t};