ant-design/54205e4f-async.e0378a3b.js

1 line
2.2 KiB
JavaScript
Raw Permalink Normal View History

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["54205e4f"],{"9f7dadbc":function(e,t,d){"use strict";d.d(t,"__esModule",{value:!0}),d.d(t,"default",{enumerable:!0,get:function(){return f;}});var n=d("f19d2b93");d("699a661e");var r=d("5b220c3d"),l=d("a9d1a279"),f=()=>{let[e,t]=(0,r.useState)(10);return(0,n.jsxs)("div",{style:{height:1e4},children:[(0,n.jsx)("div",{children:"Top"}),(0,n.jsx)(l.Affix,{offsetTop:e,children:(0,n.jsx)("div",{style:{background:"red"},children:(0,n.jsx)(l.Button,{type:"primary",onClick:()=>t(e+10),children:"Affix top"})})}),(0,n.jsx)("div",{children:"Bottom"})]});};},eb5ddb39:function(e,t,d){"use strict";d.d(t,"__esModule",{value:!0}),d.d(t,"default",{enumerable:!0,get:function(){return i;}});var n=d("777fffbe"),r=d("f19d2b93");d("d2ee8272");var l=n._(d("5b220c3d")),f=d("a9d1a279"),i=()=>{let[e,t]=l.default.useState(100),[d,n]=l.default.useState(100);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Affix,{offsetTop:e,children:(0,r.jsx)(f.Button,{type:"primary",onClick:()=>t(e+10),children:"Affix top"})}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Affix,{offsetBottom:d,children:(0,r.jsx)(f.Button,{type:"primary",onClick:()=>n(d+10),children:"Affix bottom"})})]});};},ed90217c:function(e,t,d){"use strict";d.d(t,"__esModule",{value:!0}),d.d(t,"default",{enumerable:!0,get:function(){return l;}});var n=d("f19d2b93");d("dcaca8e4");var r=d("a9d1a279"),l=()=>(0,n.jsx)(r.Affix,{offsetTop:120,onChange:e=>console.log(e),children:(0,n.jsx)(r.Button,{children:"120px to affix top"})});},ee2e5fe7:function(e,t,d){"use strict";d.d(t,"__esModule",{value:!0}),d.d(t,"default",{enumerable:!0,get:function(){return o;}});var n=d("777fffbe"),r=d("f19d2b93");d("3f00d914");var l=n._(d("5b220c3d")),f=d("a9d1a279");let i={width:"100%",height:100,overflow:"auto",boxShadow:"0 0 0 1px #1677ff",scrollbarWidth:"thin",scrollbarGutter:"stable"},a={width:"100%",height:1e3};var o=()=>{let[e,t]=l.default.useState(null);return(0,r.jsx)("div",{style:i,ref:t,children:(0,r.jsx)("div",{style:a,children:(0,r.jsx)(f.Affix,{target:()=>e,children:(0,r.jsx)(f.Button,{type:"primary",children:"Fixed at the top of container"})})})});};}}]);