close

我想要丟東西給componets使用

 

 

原本頁面

<template>
<div class="upload-block">
<Chart :main_text="main_text"></Chart>
</div>
</template>

<script>
import Chart from "./chart.vue";
export default {
mounted() {

},
name: 'upload-dialog',
data: function() {
return {
main_text:"hello"
}
},
components:{Chart},
computed: {
},
methods: {
},
}
</script>

 

chart 頁面

<script>
export default {
props: {
main_text: {
// type: Object,
type: String,
default: () => ({})
}
},
 
}
</script>
arrow
arrow
    文章標籤
    vue
    全站熱搜

    Kaikai凱開 發表在 痞客邦 留言(0) 人氣()