[breaking change] Button: remove bottom-action prop

This commit is contained in:
陈嘉涵
2019-04-29 14:31:13 +08:00
parent b8424f8de9
commit 0392db1817
9 changed files with 58 additions and 35 deletions

View File

@@ -131,21 +131,6 @@
display: block;
}
&--bottom-action {
border: 0;
width: 100%;
height: 50px;
font-size: 16px;
line-height: 50px;
border-radius: 0;
color: @button-bottom-action-default-color;
background-color: @button-bottom-action-default-background-color;
&.van-button--primary {
background-color: @button-bottom-action-primary-background-color;
}
}
&--disabled {
opacity: @button-disabled-opacity;
}

View File

@@ -26,7 +26,6 @@ export type ButtonProps = RouteProps & {
nativeType?: string;
loadingSize: string;
loadingText?: string;
bottomAction?: boolean;
};
export type ButtonEvents = {
@@ -65,8 +64,7 @@ function Button(
block: props.block,
plain: props.plain,
round: props.round,
square: props.square,
'bottom-action': props.bottomAction
square: props.square
}
]),
{ 'van-hairline--surround': hairline }
@@ -108,7 +106,6 @@ Button.props = {
disabled: Boolean,
nativeType: String,
loadingText: String,
bottomAction: Boolean,
tag: {
type: String,
default: 'button'