保存工作区合并前的本地开发现场 ledger-route-sizes-389952f
This commit is contained in:
1 parent
389952f31c
commit
9952128ba4
45 files changed
+356
-321
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{i as t,t as n}from"./react-1o5M9n0k.js";var r=e(t(),1),i=n();function a({label:e,...t}){return(0,i.jsxs)(`label`,{children:[e,(0,i.jsx)(`input`,{type:`text`,...t})]})}function o({label:e,options:t,...n}){return(0,i.jsxs)(`label`,{children:[e,(0,i.jsx)(`select`,{...n,children:t.map(([e,t])=>(0,i.jsx)(`option`,{value:e,children:t},e))})]})}function s({action:e,...t}){return(0,i.jsx)(`button`,{type:`button`,"data-action":e,...t})}function c({id:e,labelledBy:t,close:n,children:a}){let o=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{let e=o.current;return e.showModal(),e.querySelector(`input:not([type=checkbox])`)?.focus(),()=>e.close()},[]),(0,i.jsx)(`dialog`,{ref:o,id:e,"aria-labelledby":t,onCancel:e=>{e.preventDefault(),n()},children:a})}export{a as i,o as n,c as r,s as t};
|
||||
Reference in new issue
Block a user