|
|
@@ -2,8 +2,9 @@
|
|
|
<div>
|
|
|
<hr />
|
|
|
<hr />
|
|
|
- <Demo12 ref="main"></Demo12>
|
|
|
- <button @click="getMain">展示</button>
|
|
|
+ <Demo13 v-if="show"></Demo13>
|
|
|
+ <!-- <Demo12 ref="main"></Demo12>
|
|
|
+ <button @click="getMain">展示</button> -->
|
|
|
|
|
|
<hr />
|
|
|
<hr />
|
|
|
@@ -41,12 +42,14 @@ import { ref, reactive } from "vue";
|
|
|
// import Demo8 from "./components/Demo8.vue";
|
|
|
// import Demo9 from "./components/Demo9.vue";
|
|
|
// import Demo10 from "./components/Demo10.vue";
|
|
|
-import Demo11 from "./components/Demo11.vue";
|
|
|
-import Demo12 from "./components/Demo12.vue";
|
|
|
+// import Demo11 from "./components/Demo11.vue";
|
|
|
+// import Demo12 from "./components/Demo12.vue";
|
|
|
+import Demo13 from "./components/Demo13.vue";
|
|
|
let main = ref();
|
|
|
function getMain() {
|
|
|
console.log(main.value);
|
|
|
}
|
|
|
+let show = ref(true);
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|