mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-29 14:46:38 +08:00
39 lines
775 B
JavaScript
39 lines
775 B
JavaScript
export const snackbarConstants = {
|
|
Common: {
|
|
ERROR: {
|
|
variant: 'error',
|
|
autoHideDuration: 5000,
|
|
preventDuplicate: true
|
|
},
|
|
WARNING: {
|
|
variant: 'warning',
|
|
autoHideDuration: 10000,
|
|
preventDuplicate: true
|
|
},
|
|
SUCCESS: {
|
|
variant: 'success',
|
|
autoHideDuration: 1500,
|
|
preventDuplicate: true
|
|
},
|
|
INFO: {
|
|
variant: 'info',
|
|
autoHideDuration: 3000,
|
|
preventDuplicate: true
|
|
},
|
|
NOTICE: {
|
|
variant: 'info',
|
|
autoHideDuration: 20000,
|
|
preventDuplicate: true
|
|
},
|
|
COPY: {
|
|
variant: 'copy',
|
|
persist: true,
|
|
preventDuplicate: true,
|
|
allowDownload: true
|
|
}
|
|
},
|
|
Mobile: {
|
|
anchorOrigin: { vertical: 'bottom', horizontal: 'center' }
|
|
}
|
|
};
|