mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
982 B
JavaScript
1 line
982 B
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["14040e15"],{"14040e15":function(e,t,l){"use strict";l.d(t,"__esModule",{value:!0}),l.d(t,"default",{enumerable:!0,get:function(){return s;}});var n=l("f19d2b93");l("2c027fa2");var r=l("5b220c3d"),u=l("a9d1a279"),s=()=>{let e=(0,r.useRef)(null);return(0,n.jsxs)(u.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsxs)(u.Space,{wrap:!0,children:[(0,n.jsx)(u.Button,{onClick:()=>{e.current.focus({cursor:"start"});},children:"Focus at first"}),(0,n.jsx)(u.Button,{onClick:()=>{e.current.focus({cursor:"end"});},children:"Focus at last"}),(0,n.jsx)(u.Button,{onClick:()=>{e.current.focus({cursor:"all"});},children:"Focus to select all"}),(0,n.jsx)(u.Button,{onClick:()=>{e.current.focus({preventScroll:!0});},children:"Focus prevent scroll"})]}),(0,n.jsx)(u.InputNumber,{style:{width:"100%"},defaultValue:999,ref:e})]});};}}]); |