Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vue3一次就上手

milkmidi
November 01, 2020
6.3k

 Vue3一次就上手

milkmidi

November 01, 2020
Tweet

Transcript

  1. v-model component props 更名 vue2 v-model props : ['value'] v-model

    更新是 $emit('input') vue3 v-model props : ['modelValue'] v-model 更新是 $emit('update:modelValue')