From d0d3d9efe04c3f12298ec74c77010877431443cb Mon Sep 17 00:00:00 2001 From: odex Date: Sun, 25 Jun 2023 14:37:48 +0800 Subject: [PATCH 01/18] fix playground --- playground/package.json | 2 ++ playground/src/App.vue | 5 +++-- playground/vite.config.ts | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/playground/package.json b/playground/package.json index 2cba335..87da39c 100644 --- a/playground/package.json +++ b/playground/package.json @@ -28,6 +28,7 @@ "@types/node": "^16.11.56", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^2.0.1", + "@vue-macros/volar": "^0.8.4", "@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-typescript": "^11.0.0", "@vue/test-utils": "^2.0.2", @@ -44,6 +45,7 @@ "shiki": "^0.11.1", "stylus": "^0.59.0", "typescript": "~4.7.4", + "unplugin-vue-define-options": "^1.2.3", "vite": "4.1.1", "vite-plugin-md": "^0.20.4", "vite-plugin-windicss": "^1.8.8", diff --git a/playground/src/App.vue b/playground/src/App.vue index 2fce7c5..96eb126 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -5,7 +5,7 @@ import { isDark } from './composable/dark' import { ElIcon } from 'element-plus' import { Moon, Sunny } from '@element-plus/icons-vue' import { useToggle } from '@vueuse/shared' -import { ref } from 'vue' +import { ref } from 'vue' const toggleDark = useToggle(isDark) const a = ref(0) @@ -13,6 +13,7 @@ const a = ref(0)