uses the pop-up box in elementUI. The requirement is that the width of the internal pop-up box changes after clicking the button in the pop-up box.
originally intended to pass
//this.$refs.elDialog.style.width = "1500px" //1
//this.$refs.elDialog.width = "1500px" //2
In the first sentence of , the value of width can be changed without reporting an error, but the actual width of the style does not change.
the second sentence directly reports an error
runner-3.25.5.min.js:1 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop"s value. Prop being mutated: "width"
found in
---> <ElDialog>... (1 recursive calls)
<Root>
could you tell me how to solve this situation?