renderer: use composition api as default
This commit is contained in:
1 parent
13d621c72b
commit
8ac321e738
3 files changed
+15
-5
No files matched your search
@@ -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>
|
||||||
@@ -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>
|
||||||
Reference in new issue
Block a user