ant-design/1624edaf-async.917e9881.js
2024-11-20 18:30:54 +00:00

1 line
886 B
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["1624edaf"],{"1624edaf":function(e,t,l){"use strict";l.d(t,"__esModule",{value:!0}),l.d(t,"default",{enumerable:!0,get:function(){return u;}});var o=l("f19d2b93");l("5255c953");var a=l("5b220c3d"),n=l("a9d1a279");let s=(e,t=1)=>({value:e.repeat(t)});var u=()=>{let[e,t]=(0,a.useState)(""),[l,u]=(0,a.useState)([]),[d,r]=(0,a.useState)([]),h=e=>e?[s(e),s(e,2),s(e,3)]:[],c=e=>{console.log("onSelect",e);};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.AutoComplete,{options:l,style:{width:200},onSelect:c,onSearch:e=>u(h(e)),placeholder:"input here"}),(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)(n.AutoComplete,{value:e,options:d,style:{width:200},onSelect:c,onSearch:e=>r(h(e)),onChange:e=>{t(e);},placeholder:"control mode"})]});};}}]);