Skip to content

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