[new feature] Icon: name can be URL (#2149)
This commit is contained in:
@@ -8,6 +8,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon">
|
||||
<i class="van-icon van-icon-shop" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<!---->
|
||||
</div>
|
||||
@@ -17,6 +18,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon van-tabbar-item__icon--dot">
|
||||
<i class="van-icon van-icon-chat" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<!---->
|
||||
</div>
|
||||
@@ -28,6 +30,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon">
|
||||
<i class="van-icon van-icon-records" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<div class="van-info">
|
||||
5
|
||||
@@ -41,6 +44,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon">
|
||||
<i class="van-icon van-icon-gold-coin" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<div class="van-info">
|
||||
20
|
||||
@@ -67,6 +71,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon">
|
||||
<i class="van-icon van-icon-chat" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<!---->
|
||||
</div>
|
||||
@@ -76,6 +81,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-tabbar-item__icon">
|
||||
<i class="van-icon van-icon-records" style="color:undefined;font-size:undefined;">
|
||||
<!---->
|
||||
<!---->
|
||||
</i>
|
||||
<!---->
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| icon | 图标名称 (可选值见 Icon 组件) | `String` | - | - |
|
||||
| icon | 图标名称或图片链接,可选值见 Icon 组件| `String` | - | - |
|
||||
| dot | 是否显示小红点 | `Boolean` | - | - |
|
||||
| info | 图标右上角提示信息 | `String | Number` | - | - |
|
||||
| url | 跳转链接 | `String` | - | - |
|
||||
|
||||
Reference in New Issue
Block a user