vue props

507 阅读1分钟

sync双向绑定

    <my-component :props.sync="someThing">
    </my-component>
    this.$emit('update:props','***');

单次绑定

    <my-component :props.once="someThing">
    </my-component>

默认

    <my-component :props="someThing">
    </my-component>