mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
style(ContactEdit): add button class (#9112)
This commit is contained in:
parent
5a9b7d3aec
commit
0d6d7ce38d
@ -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}
|
||||
/>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user