how do you use computed to receive and manipulate data when values are passed by father and son?
parent component
//
<Current
:status="orderID"
/>
data() {
return {
orderID: "",
};
},
methods: {
// ,
getOrderID(orderID) {
this.orderID = orderID;
},
},
subcomponents
props: {
status: {
type: String,
default: String,
},
},
// computed
the child component has passed a value from the parent component successfully