Automatic conversion of vue input digits

clipboard.png
how to make me automatically calculate the ratio to the right when I enter a number on the left, and
automatically calculate the ratio to change when I enter on the right.
PS: when I try to use computed and watch,
watch listens for two variables, one of which changes the other, although the other has also changed, but they have been executed back and forth, and then become 0
do I want to add an intermediate quantity? But with the addition of an intermediate amount, how did the other two change automatically?

PSSSSSSSSSSSSSSSSSS: OK, my fault, I shouldn"t be listening to the values of two data

Mar.10,2021

clipboard.png

wrote a simple example. I don't know if I can meet your needs


provides an idea.

set an identification variable that identifies which input box it is currently in (judged by whether it is focused or not)

then on the left, let the changes on the right do not affect the left. It's the same on the right.


is blinded by your explanation. You can give an example of how it changed


bind with data on the left and try binding with computed on the right.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf20b3-31dbf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf20b3-31dbf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?