Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore(@template/vue): update example.
  • Loading branch information
jaywcjlove committed Nov 20, 2021
1 parent 85683a6 commit 98aee85
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
9 changes: 9 additions & 0 deletions example/vue/src/comp.tsx
@@ -0,0 +1,9 @@
// import { defineComponent, h } from 'vue';
// export const Com = defineComponent({
// name: 'Com',
// render() {
// return <div>Com Test</div>;
// },
// });

export const Com = () => <div>Com</div>;
2 changes: 2 additions & 0 deletions example/vue/src/index.tsx
@@ -1,5 +1,7 @@
import { defineComponent, h } from 'vue';

export * from './comp';

export default defineComponent({
name: 'Login',
render() {
Expand Down
17 changes: 11 additions & 6 deletions example/vue/tsconfig.json
Expand Up @@ -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
}
}

0 comments on commit 98aee85

Please sign in to comment.