[new feature] Collapse: add size prop (#2946)

This commit is contained in:
neverland
2019-03-11 20:48:19 +08:00
committed by GitHub
parent e553c6e0dd
commit b971ddfb7b
5 changed files with 4 additions and 3 deletions
-2
View File
@@ -11,7 +11,6 @@ import { Mods } from '../utils/use/bem';
export type CellProps = RouteProps &
SharedCellProps & {
size?: string;
clickable?: boolean;
arrowDirection?: string;
};
@@ -102,7 +101,6 @@ function Cell(
Cell.props = {
...cellProps,
...routeProps,
size: String,
clickable: Boolean,
arrowDirection: String
};
+2
View File
@@ -1,5 +1,6 @@
export type SharedCellProps = {
icon?: string;
size?: string;
border: boolean;
center?: boolean;
isLink?: boolean;
@@ -14,6 +15,7 @@ export type SharedCellProps = {
export const cellProps = {
icon: String,
size: String,
center: Boolean,
isLink: Boolean,
required: Boolean,