|
@@ -1,9 +1,10 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<h1>App</h1>
|
|
<h1>App</h1>
|
|
|
|
|
+ <Demo16 ref="vase"></Demo16>
|
|
|
<hr>
|
|
<hr>
|
|
|
<hr>
|
|
<hr>
|
|
|
- <Demo14></Demo14>
|
|
|
|
|
|
|
+ <Demo15 v-if="isShow"></Demo15>
|
|
|
<hr>
|
|
<hr>
|
|
|
<hr>
|
|
<hr>
|
|
|
<Demo11></Demo11>
|
|
<Demo11></Demo11>
|
|
@@ -52,8 +53,15 @@
|
|
|
// 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 Demo14 from './components/Demo14.vue'
|
|
|
|
|
|
|
+import Demo15 from './components/Demo15.vue'
|
|
|
|
|
+import Demo16 from './components/Demo16.vue'
|
|
|
// import Demo12 from './components/Demo12.vue'
|
|
// import Demo12 from './components/Demo12.vue'
|
|
|
|
|
+import { onMounted, ref } from 'vue';
|
|
|
|
|
+let isShow = ref(true);
|
|
|
|
|
+let vase = ref();
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ console.log(vase.value.a,vase.value.b)
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|