[new feature] Field: add clearable prop

This commit is contained in:
陈嘉涵
2019-05-31 19:09:19 +08:00
parent d8803abf9f
commit a8a18505a6
6 changed files with 11 additions and 4 deletions
-2
View File
@@ -11,7 +11,6 @@ import { Mods } from '../utils/use/bem';
export type CellProps = RouteProps &
SharedCellProps & {
clickable?: boolean;
arrowDirection?: string;
};
@@ -104,7 +103,6 @@ function Cell(
Cell.props = {
...cellProps,
...routeProps,
clickable: Boolean,
arrowDirection: String
};
+2
View File
@@ -5,6 +5,7 @@ export type SharedCellProps = {
center?: boolean;
isLink?: boolean;
required?: boolean;
clickable?: boolean;
titleStyle?: any;
titleClass?: any;
valueClass?: any;
@@ -20,6 +21,7 @@ export const cellProps = {
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleStyle: null as any,
titleClass: null as any,
valueClass: null as any,