From 20981f3e0ed5a62c3637689da17615bff5d0cfcf Mon Sep 17 00:00:00 2001 From: Treigh Mawaka <92684310+treighmawaka@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:24:31 -0400 Subject: [PATCH] docs(vue): streamline usage examples with script setup syntax (#2956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(docs): streamline demo using script setup syntax Simplifies usage demo using Vue’s script setup syntax. --------- Co-authored-by: Shawn Taylor --- static/usage/v7/alert/buttons/vue.md | 54 +++++------- static/usage/v7/alert/customization/vue.md | 27 +++--- static/usage/v7/alert/inputs/radios/vue.md | 43 ++++------ .../usage/v7/alert/inputs/text-inputs/vue.md | 51 +++++------ .../v7/alert/presenting/controller/vue.md | 25 ++---- .../usage/v7/alert/presenting/isOpen/vue.md | 17 ++-- .../usage/v7/alert/presenting/trigger/vue.md | 11 +-- static/usage/v7/input/counter/vue.md | 14 +-- .../v7/modal/controller/vue/example_vue.md | 34 +++----- .../v7/modal/controller/vue/modal_vue.md | 19 ++-- static/usage/v7/modal/custom-dialogs/vue.md | 86 +++++++------------ static/usage/v7/modal/inline/basic/vue.md | 54 ++++-------- static/usage/v7/modal/inline/is-open/vue.md | 20 ++--- .../usage/v7/modal/performance/mount/vue.md | 21 +---- .../usage/v7/modal/sheet/auto-height/vue.md | 14 +-- .../v7/modal/sheet/background-content/vue.md | 38 ++------ static/usage/v7/modal/sheet/basic/vue.md | 20 +---- .../v7/modal/sheet/handle-behavior/vue.md | 15 +--- .../usage/v7/modal/styling/animations/vue.md | 72 ++++++---------- static/usage/v7/modal/styling/theming/vue.md | 28 ++---- 20 files changed, 210 insertions(+), 453 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 }}

- ``` 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 @@ - - - + ``` diff --git a/static/usage/v7/modal/inline/basic/vue.md b/static/usage/v7/modal/inline/basic/vue.md index 2e0b1c4746c..2c5435b4335 100644 --- a/static/usage/v7/modal/inline/basic/vue.md +++ b/static/usage/v7/modal/inline/basic/vue.md @@ -30,7 +30,7 @@ - ``` diff --git a/static/usage/v7/modal/inline/is-open/vue.md b/static/usage/v7/modal/inline/is-open/vue.md index c09025c1967..19e4cb0557f 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 @@ - ``` diff --git a/static/usage/v7/modal/performance/mount/vue.md b/static/usage/v7/modal/performance/mount/vue.md index 0407ee98a4e..02dba8daf37 100644 --- a/static/usage/v7/modal/performance/mount/vue.md +++ b/static/usage/v7/modal/performance/mount/vue.md @@ -21,25 +21,12 @@ - ``` 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 @@ - ``` diff --git a/static/usage/v7/modal/sheet/background-content/vue.md b/static/usage/v7/modal/sheet/background-content/vue.md index e2647c4902c..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}}

- + + +
- ``` diff --git a/static/usage/v7/modal/sheet/basic/vue.md b/static/usage/v7/modal/sheet/basic/vue.md index 69ac1179b2e..ad5847eb53a 100644 --- a/static/usage/v7/modal/sheet/basic/vue.md +++ b/static/usage/v7/modal/sheet/basic/vue.md @@ -54,7 +54,7 @@ - ``` 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 @@ - ``` diff --git a/static/usage/v7/modal/styling/animations/vue.md b/static/usage/v7/modal/styling/animations/vue.md index 8a15e8444fc..9cc28a39ed8 100644 --- a/static/usage/v7/modal/styling/animations/vue.md +++ b/static/usage/v7/modal/styling/animations/vue.md @@ -59,7 +59,7 @@ - ``` diff --git a/static/usage/v7/modal/styling/theming/vue.md b/static/usage/v7/modal/styling/theming/vue.md index 7dc80157056..fb5d2d6868f 100644 --- a/static/usage/v7/modal/styling/theming/vue.md +++ b/static/usage/v7/modal/styling/theming/vue.md @@ -77,7 +77,7 @@ - ```