feat(TreeSelect): add dot option (#4433)

This commit is contained in:
neverland
2019-09-11 17:55:28 +08:00
committed by GitHub
parent b1f01c2fb7
commit b279408e10
5 changed files with 96 additions and 17 deletions
+2
View File
@@ -10,6 +10,7 @@ import { DefaultSlots, ScopedSlot } from '../utils/types';
export type TreeSelectItem = {
text: string;
dot?: boolean;
info?: string | number;
disabled?: boolean;
children: TreeSelectChildren[];
@@ -57,6 +58,7 @@ function TreeSelect(
const Navs = items.map(item => (
<SidebarItem
dot={item.dot}
info={item.info}
title={item.text}
disabled={item.disabled}