|
|
@@ -1,10 +1,18 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <h1>Attrs</h1></div>
|
|
|
+ <h1>Attrs</h1>
|
|
|
+ <h2>我有{{ num }}辆车</h2>
|
|
|
+ <hr>
|
|
|
+ <hr>
|
|
|
+ <hr>
|
|
|
+ <Child :x="num/2"></Child>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, reactive} from 'vue'
|
|
|
+import { ref, reactive} from 'vue';
|
|
|
+import Child from './Child.vue';
|
|
|
+let num = ref(10);
|
|
|
</script>
|
|
|
<style lang='scss' scoped>
|
|
|
|