在react中,如果對第三方的組件封裝,那么就可以{ a, b, ...props} = this.props; <Button {...props} />a和b為自定義部分的屬性,剩余的屬性直接傳到第三方組件,在vue怎么實現這個功能?
vue中怎么像react一樣使用擴展運算符傳屬性?
人到中年有點甜
2018-09-08 16:51:13