|
|
@@ -3,7 +3,9 @@
|
|
|
<h1>App</h1>
|
|
|
<hr>
|
|
|
<hr>
|
|
|
- <Demo16 v-if="isShow"></Demo16>
|
|
|
+ <Demo17 ref="dom1"></Demo17>
|
|
|
+ <button @click="changeMain">获取</button>
|
|
|
+ <!-- <Demo16 v-if="isShow"></Demo16> -->
|
|
|
<!-- <hr>
|
|
|
<hr>
|
|
|
<Demo8></Demo8>
|
|
|
@@ -41,9 +43,14 @@
|
|
|
// import Demo7 from './components/Demo7.vue'
|
|
|
// import Demo8 from './components/Demo8.vue'
|
|
|
// import Demo9 from './components/Demo9.vue'
|
|
|
-import Demo16 from './components/Demo16.vue';
|
|
|
+// import Demo16 from './components/Demo16.vue';
|
|
|
+import Demo17 from './components/Demo17.vue';
|
|
|
import { ref } from 'vue';
|
|
|
let isShow = ref(true);
|
|
|
+let dom1 = ref();
|
|
|
+const changeMain = () => {
|
|
|
+ console.log(dom1.value)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|