子组件随父组件实时更新的方法

1、赋值给子组件的data属性里面

2、用watch监听数据的变化并修改或者用computed修改

猜你喜欢

转载自blog.csdn.net/qq_39039128/article/details/87376205