style(Circle): add @circle-color less var

This commit is contained in:
chenjiahan
2020-11-30 23:00:32 +08:00
committed by neverland
parent bb18310f1b
commit 1a6cf64f54
14 changed files with 23 additions and 47 deletions
+3 -4
View File
@@ -24,8 +24,8 @@
</demo-block>
<demo-block :title="t('color')">
<van-col span="6" @click="copy(demoIcon, { color: BLUE })">
<van-icon name="cart-o" :color="BLUE" />
<van-col span="6" @click="copy(demoIcon, { color: '#1989fa' })">
<van-icon name="cart-o" color="#1989fa" />
</van-col>
<van-col span="6" @click="copy(demoIcon, { color: RED })">
<van-icon name="fire-o" :color="RED" />
@@ -83,7 +83,7 @@
<script>
import icons from '@vant/icons';
import { RED, BLUE } from '../../utils/constant';
import { RED } from '../../utils/constant';
// from https://30secondsofcode.org
function copyToClipboard(str) {
@@ -137,7 +137,6 @@ export default {
data() {
this.RED = RED;
this.BLUE = BLUE;
this.icons = icons;
return {
tab: 0,