From a7d6d6b2220066554843b72de344e0f1e8d99207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Wed, 28 Aug 2019 14:10:32 +0800 Subject: [PATCH] feat: update demo --- example/pages/notify/index.js | 11 ++++------- example/pages/notify/index.wxml | 3 +-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/example/pages/notify/index.js b/example/pages/notify/index.js index 838965b4..7413587a 100644 --- a/example/pages/notify/index.js +++ b/example/pages/notify/index.js @@ -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: '自定义时长' }); }, diff --git a/example/pages/notify/index.wxml b/example/pages/notify/index.wxml index 8bb2b1cd..97144c63 100644 --- a/example/pages/notify/index.wxml +++ b/example/pages/notify/index.wxml @@ -10,9 +10,8 @@ - 自定义颜色 + 自定义颜色 自定义时长 -