mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat(van-goods-action-icon): Added the 'color' attribute for customizing the icon color.
This commit is contained in:
parent
af66e3d78c
commit
6f175b2818
@ -12,6 +12,7 @@ VantComponent({
|
|||||||
dot: Boolean,
|
dot: Boolean,
|
||||||
info: String,
|
info: String,
|
||||||
icon: String,
|
icon: String,
|
||||||
|
color: String,
|
||||||
classPrefix: {
|
classPrefix: {
|
||||||
type: String,
|
type: String,
|
||||||
value: 'van-icon',
|
value: 'van-icon',
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
name="{{ icon }}"
|
name="{{ icon }}"
|
||||||
dot="{{ dot }}"
|
dot="{{ dot }}"
|
||||||
info="{{ info }}"
|
info="{{ info }}"
|
||||||
|
color="{{ color }}"
|
||||||
class-prefix="{{ classPrefix }}"
|
class-prefix="{{ classPrefix }}"
|
||||||
class="van-goods-action-icon__icon"
|
class="van-goods-action-icon__icon"
|
||||||
custom-class="icon-class"
|
custom-class="icon-class"
|
||||||
|
@ -104,6 +104,7 @@ Page({
|
|||||||
| text | 按钮文字 | _string_ | - |
|
| text | 按钮文字 | _string_ | - |
|
||||||
| icon | 图标类型,可选值见`icon`组件 | _string_ | - |
|
| icon | 图标类型,可选值见`icon`组件 | _string_ | - |
|
||||||
| info | 图标右上角提示信息 | _string \| number_ | - |
|
| info | 图标右上角提示信息 | _string \| number_ | - |
|
||||||
|
| color | 图标颜色 | _string_ | `inherit` |
|
||||||
| url | 点击后跳转的链接地址 | _string_ | - |
|
| url | 点击后跳转的链接地址 | _string_ | - |
|
||||||
| link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | _string_ | `navigateTo` |
|
| link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | _string_ | `navigateTo` |
|
||||||
| id | 标识符 | _string_ | - |
|
| id | 标识符 | _string_ | - |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user