Skip to content

A tree table component written in React with free downward extension. 使用React编写的自由向下扩展的树状表组件。

License

Notifications You must be signed in to change notification settings

Honghurumeng/treeNBForm

Repository files navigation

treeNBForm

示例

使用方法

function App() {
  // 0: blank, 1: select, 2: input, 3: delete
  var treeInfo = [
    [1, 2, 2, 1, 2, 3],
    [0, 1, 2, 1, 2, 3],
  ]
  return (
    <>
      <Nav />
      <SelectTree treeInfo={treeInfo} />
    </>
  )
}

优化

可以将treeInfo升级为三维数组,增加更多的数据操作,可以复制value和开关option button。

About

A tree table component written in React with free downward extension. 使用React编写的自由向下扩展的树状表组件。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published