import React from "react"
import { storiesOf } from "@storybook/react"
import { action } from "@storybook/addon-actions"
import TreeSelect from "."
const nodes = [
{ id: 1, label: "Business > All" },
{ id: 2, parent: 1, label: "Business > S1" },
{ id: 3, parent: 1, label: "Business > S2" },
{ id: 4, label: "Business > All" },
{ id: 5, parent: 4, label: "Business > S1" },
{ id: 6, parent: 4, label: "Business > S2" }
]
storiesOf("TreeSelect", module).add("with text", () => (
<TreeSelect onChange={action("changed")} nodes={nodes} />
))
|