mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat: update demo
This commit is contained in:
parent
2ca2f171d0
commit
a7d6d6b222
@ -8,19 +8,16 @@ Page({
|
||||
|
||||
showCustomColor() {
|
||||
Notify({
|
||||
message: '通知内容',
|
||||
selector: '#custom-selector',
|
||||
background: '#1989fa',
|
||||
safeAreaInsetTop: true
|
||||
message: '自定义颜色',
|
||||
color: '#ad0000',
|
||||
background: '#ffe1e1'
|
||||
});
|
||||
},
|
||||
|
||||
showCustomDuration() {
|
||||
Notify({
|
||||
duration: 1000,
|
||||
message: '通知内容',
|
||||
selector: '#custom-selector',
|
||||
safeAreaInsetTop: true
|
||||
message: '自定义时长'
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -10,9 +10,8 @@
|
||||
</demo-block>
|
||||
|
||||
<demo-block padding title="自定义通知">
|
||||
<van-button type="primary" bind:click="showCustomColor">自定义颜色</van-button>
|
||||
<van-button type="primary" class="demo-margin-right" bind:click="showCustomColor">自定义颜色</van-button>
|
||||
<van-button type="primary" bind:click="showCustomDuration">自定义时长</van-button>
|
||||
</demo-block>
|
||||
|
||||
<van-notify id="van-notify" safe-area-inset-top />
|
||||
<van-notify id="custom-selector" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user