From 71e93a1bf81488df8941014e66502cefba5b0577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 16 Jun 2021 13:00:57 +0300 Subject: [PATCH] Fixed #1354 - Responsive Toast --- api-generator/components/toast.js | 6 ++++ src/components/toast/Toast.d.ts | 1 + src/components/toast/Toast.vue | 51 +++++++++++++++++++++++++++++-- src/views/toast/ToastDoc.vue | 13 ++++++++ 4 files changed, 69 insertions(+), 2 deletions(-) diff --git a/api-generator/components/toast.js b/api-generator/components/toast.js index 887bca8e9..119cac56d 100644 --- a/api-generator/components/toast.js +++ b/api-generator/components/toast.js @@ -22,6 +22,12 @@ const ToastProps = [ type: "number", default: "0", description: "Base zIndex value to use in layering." + }, + { + name: "breakpoints", + type: "object", + default: "null", + description: "Object literal to define widths per screen size." } ]; diff --git a/src/components/toast/Toast.d.ts b/src/components/toast/Toast.d.ts index 34e314761..91c1b13d7 100755 --- a/src/components/toast/Toast.d.ts +++ b/src/components/toast/Toast.d.ts @@ -3,6 +3,7 @@ interface ToastProps { position?: string; autoZIndex?: boolean; baseZIndex?: number; + breakpoints?: {[key: string]: string}; } declare class Toast { diff --git a/src/components/toast/Toast.vue b/src/components/toast/Toast.vue index 07b249b3f..90b88f93e 100755 --- a/src/components/toast/Toast.vue +++ b/src/components/toast/Toast.vue @@ -1,7 +1,7 @@