|
@@ -2,7 +2,9 @@
|
|
|
<div>
|
|
<div>
|
|
|
<hr />
|
|
<hr />
|
|
|
<hr />
|
|
<hr />
|
|
|
- <Demo11></Demo11>
|
|
|
|
|
|
|
+ <Demo12 ref="main"></Demo12>
|
|
|
|
|
+ <button @click="getMain">展示</button>
|
|
|
|
|
+
|
|
|
<hr />
|
|
<hr />
|
|
|
<hr />
|
|
<hr />
|
|
|
<!-- <Demo7></Demo7>
|
|
<!-- <Demo7></Demo7>
|
|
@@ -28,6 +30,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
|
+import { ref, reactive } from "vue";
|
|
|
// import Demo1 from "./components/Demo1.vue";
|
|
// import Demo1 from "./components/Demo1.vue";
|
|
|
// import Demo2 from "./components/Demo2.vue";
|
|
// import Demo2 from "./components/Demo2.vue";
|
|
|
// import Demo3 from "./components/Demo3.vue";
|
|
// import Demo3 from "./components/Demo3.vue";
|
|
@@ -39,6 +42,11 @@
|
|
|
// import Demo9 from "./components/Demo9.vue";
|
|
// import Demo9 from "./components/Demo9.vue";
|
|
|
// import Demo10 from "./components/Demo10.vue";
|
|
// import Demo10 from "./components/Demo10.vue";
|
|
|
import Demo11 from "./components/Demo11.vue";
|
|
import Demo11 from "./components/Demo11.vue";
|
|
|
|
|
+import Demo12 from "./components/Demo12.vue";
|
|
|
|
|
+let main = ref();
|
|
|
|
|
+function getMain() {
|
|
|
|
|
+ console.log(main.value);
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|