Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support lazy expand #1105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CooperHash
Copy link

Ref: #48050

Copy link

vercel bot commented Apr 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2024 3:47am

@CooperHash
Copy link
Author

like

const load = async () => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve("receive data");
    },3000)
  })
}

interface dataType {
  key: number,
  a?: string,
  b?: string,
  c?: string,
  d?: number,
  hasChildren?: boolean,
  load?: () => void
}

const data: dataType[] = [
  { key: 0, a: '123', hasChildren: true, load: load},
  { key: 1, a: 'cdd', b: 'edd' },
  { key: 2, a: '1333', c: 'eee', d: 2 },
];

const columns = [
  { title: 'title 1', dataIndex: 'a', key: 'a', width: 100 },
  { title: 'title 2', dataIndex: 'b', key: 'b', width: 100 },
  { title: 'title 3', dataIndex: 'c', key: 'c', width: 200 },
];
tree-lazy.mov

还没写test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant