-
Notifications
You must be signed in to change notification settings - Fork 11
(Component) Alert
chejen edited this page Apr 16, 2017
·
1 revision
- 原始碼:common/Alert
- 警示視窗,用來顯示如下的效果:
let cmpALert;
<Alert ref={c => { cmpAlert = c; }}>
放置想顯示的內容
</Alert>
// 顯示 Alert:cmpAlert.show();
// 關閉 Alert:cmpAlert.close();
Property | Type | Default | Required | Description |
---|---|---|---|---|
closeIn | number | 3000 (毫秒) | - | 預設會於 3 秒後自動關閉。將此值設為 0 可以停止自動關閉視窗功能。 |
Method | Description |
---|---|
show() | 顯示 Alert |
close() | 關閉 Alert |