Skip to content

Commit b30c83a

Browse files
authored
fix(Message): fix demo for message (#1694)
1 parent 9bf9e0f commit b30c83a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/message/_example/base/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ Component({
2727
offset: ['20rpx', 32],
2828
content: '这是一条带关闭的消息通知',
2929
duration: -1,
30-
action: '按钮',
30+
link: {
31+
content: '按钮',
32+
navigatorProps: {
33+
url: '/page/xxx/xxx',
34+
},
35+
},
3136
closeBtn: true,
3237
});
3338
},

src/message/message.wxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@
3131
wx:if="{{_link.content}}"
3232
class="{{classPrefix}}__link {{prefix}}-class-link"
3333
style="{{_._style([_link.style, _link.customStyle])}}"
34+
disabled="{{_link.disabled || false}}"
35+
hover="{{_link.hover || true}}"
3436
theme="{{_link.theme || 'primary'}}"
3537
size="{{_link.size || 'medium'}}"
3638
prefixIcon="{{_link.prefixIcon || false}}"
3739
suffixIcon="{{_link.suffixIcon || false}}"
38-
status="{{_link.status || 'normal'}}"
3940
underline="{{_link.underline || false}}"
4041
content="{{_link.content || ''}}"
4142
navigatorProps="{{_link.navigatorProps || null}}"

0 commit comments

Comments
 (0)