Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-12-01 10:12:54 +08:00
48 changed files with 259 additions and 178 deletions

View File

@@ -2,7 +2,7 @@ import { PropType, CSSProperties } from 'vue';
// Utils
import { createNamespace } from '../utils';
import { BORDER_SURROUND, WHITE } from '../utils/constant';
import { BORDER_SURROUND } from '../utils/constant';
import { useRoute, routeProps } from '../composables/use-route';
// Components
@@ -116,7 +116,7 @@ export default createComponent({
if (color) {
const style: CSSProperties = {};
style.color = plain ? color : WHITE;
style.color = plain ? color : 'white';
if (!plain) {
// Use background instead of backgroundColor to make linear-gradient work

View File

@@ -324,7 +324,7 @@ exports[`should render demo and match snapshot 1`] = `
<div>
<button type="button"
class="van-button van-button--default van-button--normal"
style="color: rgb(255, 255, 255); background: rgb(114, 50, 221); border-color: #7232dd;"
style="color: white; background: rgb(114, 50, 221); border-color: #7232dd;"
>
<div class="van-button__content">
<span class="van-button__text">
@@ -344,7 +344,7 @@ exports[`should render demo and match snapshot 1`] = `
</button>
<button type="button"
class="van-button van-button--default van-button--normal"
style="color: rgb(255, 255, 255); border: 0px;"
style="color: white; border: 0px;"
>
<div class="van-button__content">
<span class="van-button__text">