Within parent components, to the traditional values subassembly -vue

1, by props

<X-Test: = name "username"> </ X-Test>
. 1) The props array of strings The props: [ 'name']
2) The props object, configurable type, default (Number Type), required (String type), validator to verify
The props: {
  name: {
  }
}
. 3) modifier:
.sync: two-way binding
.once: single binding
<x-test: name.sync = " username"> </ x-test>

Guess you like

Origin www.cnblogs.com/yuyedaocao/p/11981594.html