在实际开发中可能按钮文字 color type 都是动态的 如果不用jsx如何维护呢我希望是用一个数组 来维护渲染通过订单状态来显隐之类的
<van-button v-if="orderStatus===5 || orderStatus===4" plain round type="info">删除订单</van-button>
<van-button v-if="orderStatus===3 && deliveryType===2" plain round type="info">确认收货</van-button>
<van-button v-if="orderStatus===3 && deliveryType===1" plain round type="info">提货二维码</van-button>
<van-button v-if="orderStatus===4 || orderStatus===3 && deliveryType===2" plain round type="info">查看物流</van-button>
<van-button v-if="orderStatus===1" plain round type="info">取消订单</van-button>
<van-button v-if="orderStatus===1" plain round type="info">付款</van-button>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…