From d992c851505b0365806be554ff4120880d5f0307 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 24 Feb 2025 16:56:04 -0800 Subject: [PATCH 1/3] Add example --- .../templates/PlaygroundPageDynamic.vue | 158 ++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 src/playground/configs/templates/PlaygroundPageDynamic.vue diff --git a/src/playground/configs/templates/PlaygroundPageDynamic.vue b/src/playground/configs/templates/PlaygroundPageDynamic.vue new file mode 100644 index 0000000..1ed767e --- /dev/null +++ b/src/playground/configs/templates/PlaygroundPageDynamic.vue @@ -0,0 +1,158 @@ + + + + + From ff785e5eeca99d964c6fd52df2d5a8f8e52ddc84 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 24 Feb 2025 17:11:08 -0800 Subject: [PATCH 2/3] fix example --- .../components/examples/ButtonsFieldExample.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/documentation/components/examples/ButtonsFieldExample.vue b/src/documentation/components/examples/ButtonsFieldExample.vue index 8ea8910..dc7af0a 100644 --- a/src/documentation/components/examples/ButtonsFieldExample.vue +++ b/src/documentation/components/examples/ButtonsFieldExample.vue @@ -276,8 +276,8 @@ const pages = computed(() => [ { fields: [ { - align: buttonAlignModel, - block: buttonBlock, + align: buttonAlignModel.value, + block: buttonBlock.value, label: 'I like buttons', name: 'iLikeButtons', options: [ @@ -309,8 +309,8 @@ const pages = computed(() => [ type: 'buttons' as const, }, { - align: buttonAlignModel, - block: buttonBlock, + align: buttonAlignModel.value, + block: buttonBlock.value, label: 'I like...', multiple: true, name: 'animalsILike', From a8dd99089613d7283a088db3cb89d946dc9e5361 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 24 Feb 2025 17:34:30 -0800 Subject: [PATCH 3/3] Adding another example --- .../DynamicAnswersQuestionsExample.vue | 288 ++++++++++++++++++ .../components/examples/index.ts | 2 + src/documentation/sections/ExampleSection.vue | 15 +- 3 files changed, 304 insertions(+), 1 deletion(-) create mode 100644 src/documentation/components/examples/DynamicAnswersQuestionsExample.vue diff --git a/src/documentation/components/examples/DynamicAnswersQuestionsExample.vue b/src/documentation/components/examples/DynamicAnswersQuestionsExample.vue new file mode 100644 index 0000000..7174425 --- /dev/null +++ b/src/documentation/components/examples/DynamicAnswersQuestionsExample.vue @@ -0,0 +1,288 @@ + + + + + + diff --git a/src/documentation/components/examples/index.ts b/src/documentation/components/examples/index.ts index 5b43be7..2c5a937 100644 --- a/src/documentation/components/examples/index.ts +++ b/src/documentation/components/examples/index.ts @@ -2,6 +2,7 @@ import ButtonsFieldExample from './ButtonsFieldExample.vue'; import ColumnsExample from './ColumnsExample.vue'; import ConditionalFieldExample from './ConditionalFieldExample.vue'; import ConditionalPageExample from './ConditionalPageExample.vue'; +import DynamicAnswersQuestionsExample from './DynamicAnswersQuestionsExample.vue'; import FieldSlotExample from './FieldSlotExample.vue'; import SimpleExample from './SimpleExample.vue'; import SummaryPageExample from './SummaryPageExample.vue'; @@ -14,6 +15,7 @@ export { ColumnsExample, ConditionalFieldExample, ConditionalPageExample, + DynamicAnswersQuestionsExample, FieldSlotExample, SimpleExample, SummaryPageExample, diff --git a/src/documentation/sections/ExampleSection.vue b/src/documentation/sections/ExampleSection.vue index 03b0180..0e2fb22 100755 --- a/src/documentation/sections/ExampleSection.vue +++ b/src/documentation/sections/ExampleSection.vue @@ -13,7 +13,6 @@ - + + + + @@ -136,6 +146,7 @@ const ConditionalFieldExampleRef = ref(null); const ConditionalPageExampleRef = ref(null); const SummaryPageExampleRef = ref(null); const TooltipExampleRef = ref(null); +const DynamicAnswersQuestionsExampleRef = ref(null); const ButtonsFieldExampleRef = ref(null); const ButtonsFieldExampleCode = ref(); @@ -145,6 +156,7 @@ const refElements = ref({ ColumnsExampleRef, ConditionalFieldExampleRef, ConditionalPageExampleRef, + DynamicAnswersQuestionsExampleRef, FieldSlotExampleRef, SimpleExampleRef, SummaryPageExampleRef, @@ -157,6 +169,7 @@ const refElementsOpen = ref({ ColumnsExampleRef: null, ConditionalFieldExampleRef: null, ConditionalPageExampleRef: null, + DynamicAnswersQuestionsExampleRef: null, FieldSlotExampleRef: null, SimpleExampleRef: null, SummaryPageExampleRef: null,