If the parent component passes data to the child component, will the child component change accordingly when this data is changed in the parent component?

I have a child component that accepts a props ( data ), and the parent component is passed to the child component.

parent component uses:

<template>
  <sub-component :data="sub_data"></sub-component>
</template>

in subcomponents:


export default{
  props: {
    data: {
      type: Array,
      required: true
    }
  }
}

excuse me, after the sub_data data in the parent component is modified, will the data of the child component change accordingly,

?
Mar.01,2021

if I succeed in the test myself, it will change.

parent component:

<delete-selection-btn :selection="selection" ></delete-selection-btn>

Sub-component:

<script>

  export default{
    props:{
      selection: {
        type: Array,
        required: true
      }
    }
    ,
    data(){
      return {
        msg: 'hello vue'
      }
    },
    methods: {
      delete_selection_proptip_click(){
        console.log(this.selection)
      }
    }
  }
</script>    
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ce82-346ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ce82-346ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?