mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Icon: add star & star-o (#2092)
This commit is contained in:
parent
09d53714a0
commit
c02ed75e18
Binary file not shown.
@ -382,8 +382,16 @@ module.exports = {
|
|||||||
css: 'cart-o'
|
css: 'cart-o'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '答疑2.svg',
|
src: 'question2.svg',
|
||||||
css: 'question2'
|
css: 'question2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: 'star.svg',
|
||||||
|
css: 'star'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: 'star-o.svg',
|
||||||
|
css: 'star-o'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
src: url('https://img.yzcdn.cn/vant/vant-icon-872dd0.ttf') format('truetype');
|
src: url('https://img.yzcdn.cn/vant/vant-icon-1ef3b9.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
@ -363,42 +363,50 @@
|
|||||||
content: "\F055";
|
content: "\F055";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-stop::before {
|
.van-icon-star-o::before {
|
||||||
content: "\F056";
|
content: "\F056";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-success::before {
|
.van-icon-star::before {
|
||||||
content: "\F057";
|
content: "\F057";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-tosend::before {
|
.van-icon-stop::before {
|
||||||
content: "\F058";
|
content: "\F058";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-underway::before {
|
.van-icon-success::before {
|
||||||
content: "\F059";
|
content: "\F059";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-upgrade::before {
|
.van-icon-tosend::before {
|
||||||
content: "\F05A";
|
content: "\F05A";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-value-card::before {
|
.van-icon-underway::before {
|
||||||
content: "\F05B";
|
content: "\F05B";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-wap-home::before {
|
.van-icon-upgrade::before {
|
||||||
content: "\F05C";
|
content: "\F05C";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-wap-nav::before {
|
.van-icon-value-card::before {
|
||||||
content: "\F05D";
|
content: "\F05D";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-warn::before {
|
.van-icon-wap-home::before {
|
||||||
content: "\F05E";
|
content: "\F05E";
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon-wechat::before {
|
.van-icon-wap-nav::before {
|
||||||
content: "\F05F";
|
content: "\F05F";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.van-icon-warn::before {
|
||||||
|
content: "\F060";
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-icon-wechat::before {
|
||||||
|
content: "\F061";
|
||||||
|
}
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
src: url('./vant-icon-872dd0.ttf') format('truetype');
|
src: url('./vant-icon-1ef3b9.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
@ -387,6 +387,14 @@ exports[`renders demo correctly 1`] = `
|
|||||||
<i class="van-icon van-icon-question2" style="color:undefined;font-size:undefined;">
|
<i class="van-icon van-icon-question2" style="color:undefined;font-size:undefined;">
|
||||||
<!---->
|
<!---->
|
||||||
</i> <span>question2</span></div>
|
</i> <span>question2</span></div>
|
||||||
|
<div class="van-col van-col--8">
|
||||||
|
<i class="van-icon van-icon-star" style="color:undefined;font-size:undefined;">
|
||||||
|
<!---->
|
||||||
|
</i> <span>star</span></div>
|
||||||
|
<div class="van-col van-col--8">
|
||||||
|
<i class="van-icon van-icon-star-o" style="color:undefined;font-size:undefined;">
|
||||||
|
<!---->
|
||||||
|
</i> <span>star-o</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user