From 8b410a78676fbc1027fdb428be0adcc9f67dbbaa Mon Sep 17 00:00:00 2001
From: marquaye <33137363+marquaye@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:26:39 +0100
Subject: [PATCH] add ToastCode component for interactive playground code
generation of Toast Props
---
playground/package.json | 1 +
playground/src/components/ToastCode.vue | 96 +++++++++++++++++++++++++
playground/src/pages/index.vue | 2 +
3 files changed, 99 insertions(+)
create mode 100644 playground/src/components/ToastCode.vue
diff --git a/playground/package.json b/playground/package.json
index b5ea2f4..4d227e1 100644
--- a/playground/package.json
+++ b/playground/package.json
@@ -11,6 +11,7 @@
},
"dependencies": {
"ant-design-vue": "^3.2.20",
+ "highlight.js": "^11.9.0",
"vue-router": "^4.2.5"
},
"devDependencies": {
diff --git a/playground/src/components/ToastCode.vue b/playground/src/components/ToastCode.vue
new file mode 100644
index 0000000..c3049fc
--- /dev/null
+++ b/playground/src/components/ToastCode.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
diff --git a/playground/src/pages/index.vue b/playground/src/pages/index.vue
index e07bbee..df592cd 100644
--- a/playground/src/pages/index.vue
+++ b/playground/src/pages/index.vue
@@ -3,6 +3,7 @@ import { h, ref } from 'vue';
import { Divider } from 'ant-design-vue';
import { toast, ToastOptions } from 'vue3-toastify';
import Conditions from '../components/Conditions.vue';
+import ToastCode from '../components/ToastCode.vue';
import 'ant-design-vue/es/button/style/index.css';
import 'ant-design-vue/es/divider/style/index.css';
@@ -107,6 +108,7 @@ const displayPromise = () => {
+