mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[breaking change] Button: remove bottom-action prop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user