title: how to run function when everytime props change in ant-design-vue modal
body: <p>i have a vue app containing image uploader with crops function. it's succeed to upload and crop the picture and get back the cropped image URL. but the problem is when the user need to re upload their image, the canvas still display the old image. it is also happen when user cancel and reupload the image.</p>
  
  <pre><code>&lt;template&gt;
  
  
  &lt;div&gt;
      &lt;a-row :gutter="16"&gt;
        &lt;a-col :span="12"&gt;
          &lt;img ref="image" :src="initialImage"&gt;
        &lt;/a-col&gt;
        &lt;a-col :span="12" align="center"&gt;
          &lt;p&gt;&lt;strong&gt;Preview&lt;/strong&gt;&lt;/p&gt;
          &lt;img :src="updatedImage" class="preview-image"&gt;
        &lt;/a-col&gt;
      &lt;/a-row&gt;&lt;br /&gt;
      &lt;a-row :gutter="16"&gt;
        &lt;a-button type="primary" style="float: right;" @click="crop"&gt;Crop&lt;/a-button&gt;
        &lt;a-button style="float: right; margin-right: 5px;" @click="cancel"&gt;Cancel&lt;/a-button&gt;
      &lt;/a-row&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import Cropper from 'cropperjs';
  
  export default {
    name: 'PostCropper',
    props: {
      uploadedImage: String,
    },
    data() {
      return {
        cropper: {},
        updatedImage: {},
        image: {},
        initialImage: this.uploadedImage,
      };
    },
    methods: {
      crop() {
        this.$emit('update-image', this.updatedImage);
      },
      cancel() {
        this.$emit('cancel-upload');
      },
    },
    mounted() {
      this.image = this.$refs.image;
      this.cropper = new Cropper(this.image, {
        zoomable: false,
        scalable: false,
        aspectRatio: 1,
        crop: () =&gt; {
          const canvas = this.cropper.getCroppedCanvas();
          this.updatedImage = canvas.toDataURL('image/png');
        },
      });
    },
  };
  &lt;/script&gt;
  
  &lt;style scoped&gt;
    .preview-image {
      border-radius: 100px;
      width:150px;
      height:150px;
    }
  &lt;/style&gt;
  </code></pre>
  
  <p>i have tried set initialImage and updatedImage with empty string but it's still not work. what should i initialized back after cancel or continue crop the image? or there is another way i could overcome this problem? i've also using vue watcher but it's still not work. hmm.</p>