style(ContactEdit): adjust submit button

This commit is contained in:
chenjiahan 2022-02-18 14:11:54 +08:00
parent 27c46b01ae
commit 43ae30026a
3 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@
- Card: 调整 `--van-card-background` 变量的默认值为 `--van-background` - Card: 调整 `--van-card-background` 变量的默认值为 `--van-background`
- Card: 调整 `--van-card-price-color` 变量的默认值为 `--van-text-color` - Card: 调整 `--van-card-price-color` 变量的默认值为 `--van-text-color`
- Card: 调整 `--van-card-desc-color` 变量的默认值为 `--van-text-color-2` - Card: 调整 `--van-card-desc-color` 变量的默认值为 `--van-text-color-2`
- ContactEdit: 提交按钮调整为 `primary` 类型
- Field: 调整 `--van-field-label-color` 变量的默认值为 `--van-text-color` - Field: 调整 `--van-field-label-color` 变量的默认值为 `--van-text-color`
- Switch: 移除 `--van-switch-border` 变量 - Switch: 移除 `--van-switch-border` 变量
- Switch: 调整 `--van-switch-size` 变量的默认值为 `26px` - Switch: 调整 `--van-switch-size` 变量的默认值为 `26px`

View File

@ -70,7 +70,7 @@ export default defineComponent({
<Button <Button
block block
round round
type="danger" type="primary"
text={t('save')} text={t('save')}
class={bem('button')} class={bem('button')}
loading={props.isSaving} loading={props.isSaving}

View File

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