feat(TreeSelect): add className option (#4671)

This commit is contained in:
neverland
2019-10-10 09:48:11 +08:00
committed by GitHub
parent 514a27994a
commit cc03640576
4 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ export type TreeSelectItem = {
dot?: boolean;
info?: string | number;
disabled?: boolean;
className?: any;
children: TreeSelectChildren[];
};
@@ -62,7 +63,7 @@ function TreeSelect(
info={item.info}
title={item.text}
disabled={item.disabled}
class={bem('nav-item')}
class={[bem('nav-item'), item.className]}
/>
));