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 = () => { +