From 1af3d6f9aeeb4005a816f9e4399e635d9b26737f Mon Sep 17 00:00:00 2001 From: userquin Date: Wed, 30 Oct 2024 16:45:04 +0100 Subject: [PATCH 1/4] fix(vue3): use `setup` instead `data` --- examples/vite-vue2/App.vue | 3 +++ examples/vite-vue2/components.d.ts | 2 +- examples/vite-vue2/package.json | 1 + examples/vite-vue3-legacy/App.vue | 2 ++ examples/vite-vue3-legacy/components.d.ts | 2 +- examples/vite-vue3-legacy/package.json | 2 +- examples/vite-vue3/App.vue | 2 ++ examples/vite-vue3/components.d.ts | 2 +- examples/vite-vue3/package.json | 1 + examples/vue-cli-vue2/package.json | 2 +- examples/vue-cli-vue2/src/App.vue | 3 +++ examples/vue-cli-vue2/vue.config.js | 2 +- pnpm-lock.yaml | 13 +++++++++++++ src/core/compilers/vue3.ts | 1 + 14 files changed, 32 insertions(+), 6 deletions(-) diff --git a/examples/vite-vue2/App.vue b/examples/vite-vue2/App.vue index 709a3ef2..0a36a753 100644 --- a/examples/vite-vue2/App.vue +++ b/examples/vite-vue2/App.vue @@ -1,11 +1,13 @@ @@ -19,6 +21,7 @@ export default { + diff --git a/examples/vite-vue2/components.d.ts b/examples/vite-vue2/components.d.ts index da5feae5..89ba3ccd 100644 --- a/examples/vite-vue2/components.d.ts +++ b/examples/vite-vue2/components.d.ts @@ -1,10 +1,10 @@ /* eslint-disable */ -/* prettier-ignore */ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 export {} +/* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { ICarbonAppConnectivity: typeof import('~icons/carbon/app-connectivity')['default'] diff --git a/examples/vite-vue2/package.json b/examples/vite-vue2/package.json index 498f99e4..0067c5f7 100644 --- a/examples/vite-vue2/package.json +++ b/examples/vite-vue2/package.json @@ -20,6 +20,7 @@ "@iconify-json/mdi-light": "^1.1.10", "@iconify-json/noto-v1": "^1.1.11", "@iconify-json/ri": "^1.1.21", + "@iconify-json/vscode-icons": "^1.2.2", "@vitejs/plugin-vue2": "^2.3.1", "typescript": "^5.5.4", "unplugin-icons": "workspace:*", diff --git a/examples/vite-vue3-legacy/App.vue b/examples/vite-vue3-legacy/App.vue index 2d1fc0ed..f9a8172c 100644 --- a/examples/vite-vue3-legacy/App.vue +++ b/examples/vite-vue3-legacy/App.vue @@ -1,6 +1,7 @@