From 98aee855bab134a31b9273162c985a561fcb4cf5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 21 Nov 2021 01:08:57 +0800 Subject: [PATCH] chore(@template/vue): update example. --- example/vue/src/comp.tsx | 9 +++++++++ example/vue/src/index.tsx | 2 ++ example/vue/tsconfig.json | 17 +++++++++++------ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 example/vue/src/comp.tsx diff --git a/example/vue/src/comp.tsx b/example/vue/src/comp.tsx new file mode 100644 index 00000000..33ef763e --- /dev/null +++ b/example/vue/src/comp.tsx @@ -0,0 +1,9 @@ +// import { defineComponent, h } from 'vue'; +// export const Com = defineComponent({ +// name: 'Com', +// render() { +// return
Com Test
; +// }, +// }); + +export const Com = () =>
Com
; diff --git a/example/vue/src/index.tsx b/example/vue/src/index.tsx index 80093b27..5ce41960 100644 --- a/example/vue/src/index.tsx +++ b/example/vue/src/index.tsx @@ -1,5 +1,7 @@ import { defineComponent, h } from 'vue'; +export * from './comp'; + export default defineComponent({ name: 'Login', render() { diff --git a/example/vue/tsconfig.json b/example/vue/tsconfig.json index dfdcd343..3ffa34fb 100644 --- a/example/vue/tsconfig.json +++ b/example/vue/tsconfig.json @@ -2,19 +2,24 @@ "compilerOptions": { "strict": true, "strictNullChecks": true, - "jsx": "react", + "jsx": "preserve", "baseUrl": ".", "outDir": "cjs", "noEmit": false, "jsxFactory": "h", "jsxFragmentFactory": "Fragment", "module": "ES6", - "moduleResolution": "Node", - "declaration": true, - "forceConsistentCasingInFileNames": true, - "composite": true, + "moduleResolution": "node", "target": "ES6", + "declaration": true, + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, "esModuleInterop": true, - "lib": ["ESNext", "DOM"] + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true } }