From 8a5993895e7e65cf147cba3c95e326887cb3355e Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 04:26:14 -0400
Subject: [PATCH 01/24] chore(docs): streamline demo using script setup syntax
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Simplifies usage demo using Vue’s script setup syntax.
---
static/usage/v7/input/counter/vue.md | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/static/usage/v7/input/counter/vue.md b/static/usage/v7/input/counter/vue.md
index c601abc2c3d..6e3e6ee2396 100644
--- a/static/usage/v7/input/counter/vue.md
+++ b/static/usage/v7/input/counter/vue.md
@@ -12,17 +12,11 @@
>
-
```
From 348b893aae9fc6552a062d4ffaae4d09df0842fc Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 04:34:51 -0400
Subject: [PATCH 02/24] chore(docs): streamline demo using script setup syntax
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Simplifies usage demo using Vue’s script setup syntax.
---
static/usage/v7/alert/buttons/vue.md | 54 +++++++++++-----------------
1 file changed, 21 insertions(+), 33 deletions(-)
diff --git a/static/usage/v7/alert/buttons/vue.md b/static/usage/v7/alert/buttons/vue.md
index cd126758598..25ae70647d0 100644
--- a/static/usage/v7/alert/buttons/vue.md
+++ b/static/usage/v7/alert/buttons/vue.md
@@ -11,44 +11,32 @@
{{ roleMessage }}
-
```
From a475b88a12c7af9f06adda31729674cb112b4cee Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 04:37:23 -0400
Subject: [PATCH 03/24] chore(docs): streamline demo using script setup syntax
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Simplifies usage demo using Vue’s script setup syntax.
---
static/usage/v7/alert/customization/vue.md | 27 ++++++++--------------
1 file changed, 10 insertions(+), 17 deletions(-)
diff --git a/static/usage/v7/alert/customization/vue.md b/static/usage/v7/alert/customization/vue.md
index c526c93de8d..eafb78ae012 100644
--- a/static/usage/v7/alert/customization/vue.md
+++ b/static/usage/v7/alert/customization/vue.md
@@ -4,26 +4,19 @@
-
-
@@ -60,7 +31,7 @@
-
+
```
From 575e3f6eadd660e85266fc44e9fce878afb40c9b Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:18:11 -0400
Subject: [PATCH 13/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/inline/basic/vue.md | 56 ++++++++---------------
1 file changed, 20 insertions(+), 36 deletions(-)
diff --git a/static/usage/v7/modal/inline/basic/vue.md b/static/usage/v7/modal/inline/basic/vue.md
index 2e0b1c4746c..94a7dd6500f 100644
--- a/static/usage/v7/modal/inline/basic/vue.md
+++ b/static/usage/v7/modal/inline/basic/vue.md
@@ -30,7 +30,7 @@
-
```
From 466ffacc7789861127762e762667635a757aef84 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:21:06 -0400
Subject: [PATCH 14/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/inline/is-open/vue.md | 22 ++++++---------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/static/usage/v7/modal/inline/is-open/vue.md b/static/usage/v7/modal/inline/is-open/vue.md
index c09025c1967..d869af75746 100644
--- a/static/usage/v7/modal/inline/is-open/vue.md
+++ b/static/usage/v7/modal/inline/is-open/vue.md
@@ -28,22 +28,12 @@
-
```
From 9ed57c365f28ba54d57001fab35bc4e408a70829 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:22:16 -0400
Subject: [PATCH 15/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/sheet/auto-height/vue.md | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/static/usage/v7/modal/sheet/auto-height/vue.md b/static/usage/v7/modal/sheet/auto-height/vue.md
index 64eef0dd0cb..c8501ba89e6 100644
--- a/static/usage/v7/modal/sheet/auto-height/vue.md
+++ b/static/usage/v7/modal/sheet/auto-height/vue.md
@@ -28,19 +28,7 @@
-
```
From 56f25361653b4d75fd5dda8fa0765fec4700aca9 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:24:14 -0400
Subject: [PATCH 16/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
.../v7/modal/sheet/background-content/vue.md | 38 ++++---------------
1 file changed, 7 insertions(+), 31 deletions(-)
diff --git a/static/usage/v7/modal/sheet/background-content/vue.md b/static/usage/v7/modal/sheet/background-content/vue.md
index e2647c4902c..2a22d33d244 100644
--- a/static/usage/v7/modal/sheet/background-content/vue.md
+++ b/static/usage/v7/modal/sheet/background-content/vue.md
@@ -91,36 +91,12 @@
IonLabel,
IonSearchbar,
} from '@ionic/vue';
- import { defineComponent } from 'vue';
-
- export default defineComponent({
- components: {
- IonButton,
- IonModal,
- IonHeader,
- IonContent,
- IonToolbar,
- IonTitle,
- IonItem,
- IonList,
- IonAvatar,
- IonImg,
- IonLabel,
- IonSearchbar,
- },
- data() {
- return {
- count: 0,
- };
- },
- methods: {
- increment() {
- this.count++;
- },
- decrement() {
- this.count--;
- },
- },
- });
+ import { ref } from 'vue';
+
+ const count = ref(0);
+
+ const increment = count.value++;
+
+ const decrement = count.value--:
```
From f61fcc83df08bf971a008284bf2a9e65b71ffed7 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:26:57 -0400
Subject: [PATCH 17/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/sheet/background-content/vue.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/usage/v7/modal/sheet/background-content/vue.md b/static/usage/v7/modal/sheet/background-content/vue.md
index 2a22d33d244..7143679453e 100644
--- a/static/usage/v7/modal/sheet/background-content/vue.md
+++ b/static/usage/v7/modal/sheet/background-content/vue.md
@@ -76,7 +76,7 @@
-
```
From 75fc0554b1f9933eb1722495709c8ab16ce5f11a Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:29:24 -0400
Subject: [PATCH 19/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
.../usage/v7/modal/sheet/handle-behavior/vue.md | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/static/usage/v7/modal/sheet/handle-behavior/vue.md b/static/usage/v7/modal/sheet/handle-behavior/vue.md
index e40321f52b8..6163493a9d3 100644
--- a/static/usage/v7/modal/sheet/handle-behavior/vue.md
+++ b/static/usage/v7/modal/sheet/handle-behavior/vue.md
@@ -23,20 +23,7 @@
-
```
From 4a7fb422f2aaa1d09b736ef8eeb129dcf2d9abd6 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:33:35 -0400
Subject: [PATCH 20/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
.../usage/v7/modal/styling/animations/vue.md | 74 +++++++------------
1 file changed, 27 insertions(+), 47 deletions(-)
diff --git a/static/usage/v7/modal/styling/animations/vue.md b/static/usage/v7/modal/styling/animations/vue.md
index 8a15e8444fc..00d20038ec5 100644
--- a/static/usage/v7/modal/styling/animations/vue.md
+++ b/static/usage/v7/modal/styling/animations/vue.md
@@ -59,7 +59,7 @@
-
```
From efa146123c64f660eb5789166ba979978f5301e7 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:35:19 -0400
Subject: [PATCH 21/24] docs(modal): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/styling/theming/vue.md | 30 ++++----------------
1 file changed, 6 insertions(+), 24 deletions(-)
diff --git a/static/usage/v7/modal/styling/theming/vue.md b/static/usage/v7/modal/styling/theming/vue.md
index 7dc80157056..7108319c35d 100644
--- a/static/usage/v7/modal/styling/theming/vue.md
+++ b/static/usage/v7/modal/styling/theming/vue.md
@@ -77,7 +77,7 @@
-
```
From 057b9fbf032c45e8bdbb2f0ff31748b43c702f35 Mon Sep 17 00:00:00 2001
From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com>
Date: Wed, 10 May 2023 05:40:30 -0400
Subject: [PATCH 22/24] docs(): streamline vue usage example
Simplifies Vue usage example using script setup syntax.
---
static/usage/v7/modal/controller/vue/example_vue.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/usage/v7/modal/controller/vue/example_vue.md b/static/usage/v7/modal/controller/vue/example_vue.md
index 7f9d5b03eac..84bf17a2716 100644
--- a/static/usage/v7/modal/controller/vue/example_vue.md
+++ b/static/usage/v7/modal/controller/vue/example_vue.md
@@ -30,7 +30,7 @@
const { data, role } = await modal.onWillDismiss();
if (role === 'confirm') {
- this.message = `Hello, ${data}!`;
+ message.value = `Hello, ${data}!`;
}
}
From 215bfcc1aa54cba648342ff65beb14e891e7e6eb Mon Sep 17 00:00:00 2001
From: Shawn Taylor
Date: Fri, 4 Aug 2023 17:13:03 -0400
Subject: [PATCH 23/24] Fix functionality of a couple playgrounds
---
static/usage/v7/modal/controller/vue/modal_vue.md | 7 ++++---
static/usage/v7/modal/sheet/background-content/vue.md | 10 +++-------
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/static/usage/v7/modal/controller/vue/modal_vue.md b/static/usage/v7/modal/controller/vue/modal_vue.md
index 4e6231a74ef..534ba17654f 100644
--- a/static/usage/v7/modal/controller/vue/modal_vue.md
+++ b/static/usage/v7/modal/controller/vue/modal_vue.md
@@ -30,9 +30,10 @@
IonInput,
modalController,
} from '@ionic/vue';
- import { defineComponent } from 'vue';
-
+ import { defineComponent, ref } from 'vue';
+ const name = ref();
+
const cancel = () => modalController.dismiss(null, 'cancel');
- const confirm = () => modalController.dismiss(this.name, 'confirm');
+ const confirm = () => modalController.dismiss(name.value, 'confirm');
```
diff --git a/static/usage/v7/modal/sheet/background-content/vue.md b/static/usage/v7/modal/sheet/background-content/vue.md
index 7143679453e..d8dea197856 100644
--- a/static/usage/v7/modal/sheet/background-content/vue.md
+++ b/static/usage/v7/modal/sheet/background-content/vue.md
@@ -17,9 +17,9 @@
You can interact with the +/- buttons until the sheet is fully expanded.
-
-
+
-
{{count}}
-
+
+
+
```
From 7a33db826e23b829b1ee3c808b477330ebaa34b2 Mon Sep 17 00:00:00 2001
From: Shawn Taylor
Date: Fri, 4 Aug 2023 17:39:52 -0400
Subject: [PATCH 24/24] Lint
---
static/usage/v7/input/counter/vue.md | 6 +++---
.../usage/v7/modal/controller/vue/example_vue.md | 10 +++++-----
static/usage/v7/modal/custom-dialogs/vue.md | 4 ++--
static/usage/v7/modal/inline/basic/vue.md | 16 ++++++++--------
static/usage/v7/modal/inline/is-open/vue.md | 6 +++---
static/usage/v7/modal/performance/mount/vue.md | 4 ++--
static/usage/v7/modal/styling/animations/vue.md | 8 ++++----
static/usage/v7/modal/styling/theming/vue.md | 4 ++--
8 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/static/usage/v7/input/counter/vue.md b/static/usage/v7/input/counter/vue.md
index 6e3e6ee2396..1df64570da9 100644
--- a/static/usage/v7/input/counter/vue.md
+++ b/static/usage/v7/input/counter/vue.md
@@ -13,10 +13,10 @@
```
diff --git a/static/usage/v7/modal/controller/vue/example_vue.md b/static/usage/v7/modal/controller/vue/example_vue.md
index 84bf17a2716..f5a2c1309cb 100644
--- a/static/usage/v7/modal/controller/vue/example_vue.md
+++ b/static/usage/v7/modal/controller/vue/example_vue.md
@@ -17,21 +17,21 @@
import { IonButton, IonContent, IonPage, IonHeader, IonToolbar, IonTitle, modalController } from '@ionic/vue';
import Modal from './Modal.vue';
import { ref } from 'vue';
-
+
const message = ref('This modal example uses the modalController to present and dismiss modals.');
-
+
const openModal = async () => {
const modal = await modalController.create({
component: Modal,
});
-
+
modal.present();
const { data, role } = await modal.onWillDismiss();
if (role === 'confirm') {
message.value = `Hello, ${data}!`;
- }
- }
+ }
+ };
```
diff --git a/static/usage/v7/modal/custom-dialogs/vue.md b/static/usage/v7/modal/custom-dialogs/vue.md
index 8e2261b3dc9..a16e82e5a17 100644
--- a/static/usage/v7/modal/custom-dialogs/vue.md
+++ b/static/usage/v7/modal/custom-dialogs/vue.md
@@ -46,9 +46,9 @@
} from '@ionic/vue';
import { personCircle } from 'ionicons/icons';
import { ref } from 'vue';
-
+
const modal = ref();
-
+
const dismiss = () => modal.value.$el.dismiss();