omi/components/tree
YunYouJun 3a3d695206 refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
..
dist chore(@omiu): lint 2021-08-28 13:21:25 +08:00
scripts publish(@omiu/tree) 2020-05-16 13:10:39 +08:00
src refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
README.md publish(@omiu/tree) 2020-05-17 20:32:41 +08:00
index.html chore(@omiu): lint 2021-08-28 13:21:25 +08:00
package.json chore(@omiu): lint 2021-08-28 13:21:25 +08:00
tsconfig.json chore: remove o- 2020-04-19 22:24:19 +08:00
vite.config.ts chore(@omiu): lint 2021-08-28 13:21:25 +08:00
yarn.lock chore(@omiu): lint 2021-08-28 13:21:25 +08:00

README.md

Tree

Components that show tree nested data structures.

Import

import '@omiu/tree'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/tree"></script>

Usage

<o-tree></o-tree>

API

Props

{
  data?: any[]
  padding: number
}

defaultProps

{
  padding: 10
}

Events

  • node-click
  • node-arrow-click
  • context-menu
  • action-icon-click
  • fold