renderer: use composition api as default

This commit is contained in:
leejooy96 committed 2022-06-14 08:29:20 +09:00
1 parent 13d621c72b
commit 8ac321e738
3 files changed
+15 -5

No files matched your search

+2 -2
View File
@@ -125,12 +125,12 @@ export default {
new webpack.DefinePlugin(IS_DEV_ENV new webpack.DefinePlugin(IS_DEV_ENV
? { ? {
__static: `"${path.join(__dirname, '../../static').replace(/\\/g, '\\\\')}"`, __static: `"${path.join(__dirname, '../../static').replace(/\\/g, '\\\\')}"`,
__VUE_OPTIONS_API__: true, __VUE_OPTIONS_API__: false,
__VUE_PROD_DEVTOOLS__: false __VUE_PROD_DEVTOOLS__: false
} }
: { : {
'process.env.NODE_ENV': '"production"', 'process.env.NODE_ENV': '"production"',
__VUE_OPTIONS_API__: true, __VUE_OPTIONS_API__: false,
__VUE_PROD_DEVTOOLS__: false __VUE_PROD_DEVTOOLS__: false
} }
), ),
@@ -6,6 +6,8 @@
<script> <script>
export default { export default {
name: 'ErrorScreen' setup () {
}
} }
</script> </script>
+10 -2
View File
@@ -1,11 +1,19 @@
<template> <template>
<div> <div>
Main Screen Main Screen {{ test }}
</div> </div>
</template> </template>
<script> <script>
import { ref } from 'vue'
export default { export default {
name: 'MainScreen' setup () {
const test = ref(1)
return {
test
}
}
} }
</script> </script>