The subcomponent props receives different types of values

the first two values passed by the parent component can be printed in watch, but not in childExchangeRate. Is it because of the different types? What is the correct writing format?

props: {

childAssets: "",
childBookdata: "",
childExchangeRate: 0

},

Mar.28,2021

try this

  props: {
    childAssets: {
      required: false,
      type: String,
      default: ""
    },
    childBookdata: {
      required: false,
      type: String,
      default: ""
    },
    childExchangeRate: {
      required: false,
      type: Number,
      default: 0
    }
  },

vue props link ide/components-props.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.

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-1bf2f34-31e28.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-1bf2f34-31e28.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?