diff --git a/components/cascader/demo/lazy.tsx b/components/cascader/demo/lazy.tsx index 49f3c91d63..3df1184666 100644 --- a/components/cascader/demo/lazy.tsx +++ b/components/cascader/demo/lazy.tsx @@ -1,12 +1,11 @@ -import React, { useState } from 'react'; import { Cascader } from 'antd'; +import React, { useState } from 'react'; interface Option { value?: string | number | null; label: React.ReactNode; children?: Option[]; isLeaf?: boolean; - loading?: boolean; } const optionLists: Option[] = [ @@ -31,11 +30,9 @@ const App: React.FC = () => { const loadData = (selectedOptions: Option[]) => { const targetOption = selectedOptions[selectedOptions.length - 1]; - targetOption.loading = true; // load options lazily setTimeout(() => { - targetOption.loading = false; targetOption.children = [ { label: `${targetOption.label} Dynamic 1`,