initial commit

This commit is contained in:
2024-02-26 09:23:09 +08:00
commit e0c96717c7
29 changed files with 7522 additions and 0 deletions

20
components/uni/Message/index.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
export type Message = {
id: string
content: string
type: MessageType
duration?: number
}
export type MessageType = 'success' | 'warning' | 'error' | 'info'
export type MessageProviderApi = {
destroy: (id: string) => void
}
export type MessageApi = {
info: (content: string, duration?: number) => void
success: (content: string, duration?: number) => void
warning: (content: string, duration?: number) => void
error: (content: string, duration?: number) => void
destroyAll: () => void
}