From 269302879a1adf782983fe9c6413139c82374f41 Mon Sep 17 00:00:00 2001 From: Alban Mouton Date: Wed, 13 Nov 2024 23:25:29 +0100 Subject: [PATCH] docs: more readable examples --- doc/components/vjsf-example.vue | 442 +++++++++++++++++--------------- doc/layouts/default.vue | 15 -- doc/pages/[categoryId]/[id].vue | 1 + doc/pages/editor.vue | 98 ++++--- doc/plugins/vuetify.ts | 5 +- lib/src/options.js | 1 - 6 files changed, 302 insertions(+), 260 deletions(-) diff --git a/doc/components/vjsf-example.vue b/doc/components/vjsf-example.vue index b09119af..7aa75e27 100644 --- a/doc/components/vjsf-example.vue +++ b/doc/components/vjsf-example.vue @@ -6,19 +6,38 @@ rounded color="transparent" > - + {{ tabItem.title }} + + + + - - - - - -
{{ JSON.stringify(example.schema, null, 2) }}
-
-
+ - - -
{{ JSON.stringify(schema, null, 2) }}
-
-
+ + +
{{ JSON.stringify(example.schema, null, 2) }}
+
+
- - -
{{ JSON.stringify(data, null, 2) }}
-
-
+ + +
{{ JSON.stringify(schema, null, 2) }}
+
+
- - -
{{ slotCodes[key] }}
-
-
+ +
{{ JSON.stringify(data, null, 2) }}
+
+ - - -
{{ JSON.stringify(example.defaultProps, null, 2) }}
-
-
+ + +
{{ slotCodes[key] }}
+
+
- - - - - + + +
{{ JSON.stringify(example.defaultProps, null, 2) }}
+
+
- + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + + + +
- - - -
- width={{ display.width }}px, display={{ display.name }} -
- - - -
- Options filled with default values: -
- -
{{ JSON.stringify(filledOptions, null, 2) }}
-
-
- - - + width={{ display.width }}px, display={{ display.name }} +
+
+ + +
+ Options filled with default values: +
+ +
{{ JSON.stringify(filledOptions, null, 2) }}
+
+
+
+
+
- + - -
- - - - +
+ + + -