Can the element tree and cascade selector data property names of vue be changed? If label,id,value is changed to something else, can children change it?

problem description

The data data structure of the

example is

options: [{
          value: "zhinan",
          label: "",
          children: [{
            value: "shejiyuanze",
            label: "",
            children: [{
              value: "yizhi",
              label: ""
            }, {
data() {
      return {
        data2: [{
          id: 1,
          label: " 1",
          children: [{
            id: 4,
            label: " 1-1",
            children: [{
              id: 9,
              label: " 1-1-1"
            }, {
              id: 10,
              label: " 1-1-2"
            }]
          }]
        }, {
          id: 2,
          label: " 2",
          children: [{
            id: 5,
            label: " 2-1"
          }, {
            id: 6,
            label: " 2-2"
          }]

the environmental background of the problems and what methods you have tried

something goes wrong if you change the name to another name

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Mar.28,2021

can officially provide configuration items props
document link

clipboard.png


cannot be modified, so why did you change the parameter name?


the last example of the official document is illustrated. The use of props.

Menu