vue父子组件传参中props传递字符
使用props传递字符串时,不使用:
例如部分父组件
<div style="display: flex;justify-content:space-around;align-items: center;font-weight: 600">
<i class="el-icon-monitor"></i>
<span> {{ station }}</span>
<span style="color: orange">{{ win }}</span>
</div>
子组件
<Client station="client1" :acc="94" :loss="0.123" :block="1" :reword="0.02" win="winner"></Client>
#不使用:station