SOURCE

console 命令行工具 X clear

                    
>
console
Vue.component('aaa', {
  props: {
    bbb: {
      type: Object,
      default: {
        name: '',
        age: 0
      }
    }
  },
	template: '<div>{{ bbb.name }} {{ bbb.age }}</div>'
});
new Vue({
  el: '#app',
  data: {
    cusData: {
      name: '',
      age: 0
    }
  },
  mounted() {
    this.cusData = {
      name: '朱子发',
      age: 25
    }
  }
})
<!DOCTYPE html>
<html lang="en">
  
  <head>
    <meta charset="UTF-8" />
    <title>
      Document
    </title>
  </head>
  
  <body>
    <div id="app">
      <aaa :bbb="cusData"></aaa>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue">
    </script>
  </body>

</html>
.f50 {
  float: left !important;
  width: 50% !important;
}

.b-r-1 {
  border-right: 1px solid #cfcfcf !important;
}

.b-b-1 {
  border-bottom: 1px solid #cfcfcf !important;
}

.b-t-1 {
  border-top: 1px solid #cfcfcf !important;
}

.box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.box .innerBox {
  margin: 0 auto;
  width: 80%;
  background-color: #fff;
  border-radius: 5px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
}

.innerBox .innerHeader {
  font-size: 18px;
  font-weight: normal;
  color: #aaa;
  padding: 15px 0;
  text-align: center;
}

.innerBox .innerBody {
  padding: 15px 30px;
}

.innerBody .text {
  text-align: center;
}

.innerBody .cusInputBox {
  text-align: center;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.innerBody .cusInput {
  height: 30px;
  text-align: center;
  border: none;
  outline: none
}

.innerBox .innerFooter {
  overflow: hidden;
}

.cusBtn {
  cursor: pointer;
  padding: 15px 0;
  outline: none;
  border: none;
  background: none;
  color: cornflowerblue;
}