[new feature] Collapse: add size prop (#2946)
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user