招聘网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toastHelper.ts 543B

1234567891011121314151617181920212223242526272829303132
  1. import { message } from 'ant-design-vue';
  2. export const warnToast : Function = (msg : string) => {
  3. message.warning({
  4. content: () => msg,
  5. class: 'custom-class',
  6. style: {
  7. zIndex: '10001',
  8. },
  9. });
  10. }
  11. export const errorToast : Function = (msg : string) => {
  12. message.error({
  13. content: () => msg,
  14. class: 'custom-class',
  15. style: {
  16. zIndex: '10001',
  17. },
  18. });
  19. }
  20. export const successToast : Function = (msg : string) => {
  21. message.success({
  22. content: () => msg,
  23. class: 'custom-class',
  24. style: {
  25. zIndex: '10001',
  26. },
  27. });
  28. }