Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 341 Bytes

input-complete.md

File metadata and controls

19 lines (18 loc) · 341 Bytes
const [showLoading, setLoading] = useState(true);

<ClInput
  defaultValue="自动补全"
  style={{
    zIndex: 1
  }}
  autoComplete
  completes={["补全内容 1", "补全内容 2"]}
  completeLoading={showLoading}
  onChange={() => {
    setLoading(true);
    setTimeout(() => {
      setLoading(false);
    }, 1000);
  }}
/>