feat(SubmitBar): add button-color prop (#6757)

This commit is contained in:
neverland
2020-07-11 10:18:30 +08:00
committed by GitHub
parent 16e9829173
commit f1e9ca182e
5 changed files with 24 additions and 0 deletions
+3
View File
@@ -20,6 +20,7 @@ export type SubmitBarProps = {
disabled?: boolean;
buttonType: ButtonType;
buttonText?: string;
buttonColor?: string;
suffixLabel?: string;
decimalLength: number;
safeAreaInsetBottom?: boolean;
@@ -87,6 +88,7 @@ function SubmitBar(
round
class={bem('button', props.buttonType)}
type={props.buttonType}
color={props.buttonColor}
loading={props.loading}
disabled={props.disabled}
text={props.loading ? '' : props.buttonText}
@@ -108,6 +110,7 @@ SubmitBar.props = {
disabled: Boolean,
textAlign: String,
buttonText: String,
buttonColor: String,
suffixLabel: String,
safeAreaInsetBottom: {
type: Boolean,