[new feature] Field: add clearable prop
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user