|
@@ -29,7 +29,7 @@ export function getCyId(): string {
|
|
|
return 'cy-' + uuid(5)
|
|
|
}
|
|
|
|
|
|
-export function closeById(id: string) {
|
|
|
+function closeById(id: string) {
|
|
|
if (currentBox.has(id))
|
|
|
currentBox.get(id)?.['close']()
|
|
|
}
|
|
@@ -108,6 +108,7 @@ function renderFunc(message: string, type: 'success' | 'error' | 'warning' | 'in
|
|
|
export const cyMessageBox = {
|
|
|
alert,
|
|
|
confirm,
|
|
|
- prompt
|
|
|
+ prompt,
|
|
|
+ closeById
|
|
|
}
|
|
|
|