distributor-popup.vue 702 Bytes
<template>
  <div class="popup">
    <div class="popup-orange">
      原始信息<br>
      {{oldValueStr}}
    </div>
    <div class="popup-orange">
      变更信息<br>
      {{newValueStr}}
    </div>
</div>
</template>

<script>
  module.exports ={
    props: {
      'oldvalue': {
        type: String,
        require: true
      },
      'newvalue': {
        type: String,
        require: true,
      }
    },
    data: function (){
      return{
        oldValueStr:'',
        newValueStr:''
      };
    },
    computed: {
      oldValueStr: function () {
        return this.oldvalue;
      },
      newValueStr: function () {
        return this.newvalue;
      },
    },
  }
</script>