我在浏览器Avoid mutating a prop directly since the value will be overwritten whenever the parent componentInstead, use a data or computed property based on the prop's value.Prop being mutated: "dataElements"中不断收到此错误 我的组件中有@Prop
我有一个如下的组件。现在我有了另一个需要引用activeImageIndex的组件。imageIndex: null, // I want this to refer to the images gallery index. },我想要实现的目标:
我希望另一个组件的"imageIndex“是对ImagesGallery组件的"activeImageIndex”的引用。如果我修改了"imageInde