mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-08 00:39:46 +08:00
feat(GridItem): add icon-prefix prop (#5666)
This commit is contained in:
parent
961bf9cccb
commit
09b57901f5
@ -20,6 +20,7 @@ export default createComponent({
|
|||||||
dot: Boolean,
|
dot: Boolean,
|
||||||
text: String,
|
text: String,
|
||||||
icon: String,
|
icon: String,
|
||||||
|
iconPrefix: String,
|
||||||
info: [Number, String],
|
info: [Number, String],
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -87,6 +88,7 @@ export default createComponent({
|
|||||||
info={this.info}
|
info={this.info}
|
||||||
size={this.parent.iconSize}
|
size={this.parent.iconSize}
|
||||||
class={bem('icon')}
|
class={bem('icon')}
|
||||||
|
classPrefix={this.iconPrefix}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -121,6 +121,7 @@ Vue.use(GridItem);
|
|||||||
| url | Link URL | *string* | - |
|
| url | Link URL | *string* | - |
|
||||||
| to | Target route of the link, same as to of vue-router | *string \| object* | - |
|
| to | Target route of the link, same as to of vue-router | *string \| object* | - |
|
||||||
| replace | If true, the navigation will not leave a history record | *boolean* | `false` |
|
| replace | If true, the navigation will not leave a history record | *boolean* | `false` |
|
||||||
|
| icon-prefix `v2.5.3` | Icon className prefix | *string* | `van-icon` |
|
||||||
|
|
||||||
### GridItem Events
|
### GridItem Events
|
||||||
|
|
||||||
|
@ -139,6 +139,7 @@ Vue.use(GridItem);
|
|||||||
| url | 点击后跳转的链接地址 | *string* | - |
|
| url | 点击后跳转的链接地址 | *string* | - |
|
||||||
| to | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - |
|
| to | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - |
|
||||||
| replace | 是否在跳转时替换当前页面历史 | *boolean* | `false` |
|
| replace | 是否在跳转时替换当前页面历史 | *boolean* | `false` |
|
||||||
|
| icon-prefix `v2.5.3` | 图标类名前缀 | *string* | `van-icon` |
|
||||||
|
|
||||||
### GridItem Events
|
### GridItem Events
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user