feat: Add dangerouslyUseHTMLString where needed (no-changelog) (#6292)

feat: add dangerouslyUseHTMLString where needed (no-changelog)
This commit is contained in:
Alex Grozav
2023-05-22 16:09:29 +03:00
committed by GitHub
parent f5950b201c
commit 2d90125c87
10 changed files with 12 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ export function useToast() {
customClass?: string;
closeOnClick?: boolean;
type?: MessageType;
dangerouslyUseHTMLString?: boolean;
}) {
// eslint-disable-next-line prefer-const
let notification: ElNotificationComponent;
@@ -80,6 +81,7 @@ export function useToast() {
duration: config.duration,
customClass: config.customClass,
type: config.type,
dangerouslyUseHTMLString: config.dangerouslyUseHTMLString ?? true,
});
return notification;