style(ContactEdit): add button class (#9112)

This commit is contained in:
neverland 2021-07-24 20:18:32 +08:00 committed by GitHub
parent 5a9b7d3aec
commit 0d6d7ce38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -67,6 +67,7 @@ export default defineComponent({
round
type="danger"
text={t('save')}
class={bem('button')}
loading={props.isSaving}
nativeType="submit"
/>
@ -75,6 +76,7 @@ export default defineComponent({
block
round
text={t('delete')}
class={bem('button')}
loading={props.isDeleting}
onClick={onDelete}
/>

View File

@ -32,7 +32,7 @@
padding: var(--van-contact-edit-buttons-padding);
}
.van-button {
&__button {
margin-bottom: var(--van-contact-edit-button-margin-bottom);
font-size: var(--van-contact-edit-button-font-size);
}

View File

@ -52,7 +52,7 @@ exports[`should render demo and match snapshot 1`] = `
</div>
<div class="van-contact-edit__buttons">
<button type="submit"
class="van-button van-button--danger van-button--normal van-button--block van-button--round"
class="van-button van-button--danger van-button--normal van-button--block van-button--round van-contact-edit__button"
>
<div class="van-button__content">
<span class="van-button__text">
@ -61,7 +61,7 @@ exports[`should render demo and match snapshot 1`] = `
</div>
</button>
<button type="button"
class="van-button van-button--default van-button--normal van-button--block van-button--round"
class="van-button van-button--default van-button--normal van-button--block van-button--round van-contact-edit__button"
>
<div class="van-button__content">
<span class="van-button__text">