From c82efe7f86565bde1cf2c0a1d8b48ee728dc86ac Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Thu, 21 Sep 2023 09:04:01 +0200 Subject: [PATCH 1/2] feat: add legacy option to display iframe --- README.md | 6 ++++++ src/header.ce.vue | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4dcf940..d31bc24 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ To include it in an existing application: Note: unlike with iframes there is no need to specify a height, the component will decide of its own size and "push" the content around accordingly. +Iframe can still be set with defining `legacy_url` attribute, style can also be set with `legacy_style` attribute : + ```html + + ``` + + ## Development On every new commit on main the `header.js` file on the `dist` branch is updated automatically. diff --git a/src/header.ce.vue b/src/header.ce.vue index 1a4cd0f..135c0de 100644 --- a/src/header.ce.vue +++ b/src/header.ce.vue @@ -7,6 +7,9 @@ import UserIcon from './ui/UserIcon.vue' const props = defineProps<{ lang?: string activeApp?: string + //legacy option : using old iframe option + legacy_url?: string + legacy_style?: string }>() const state = reactive({ @@ -31,7 +34,13 @@ onMounted(() => { })