深入了解组件化
1.组件注册
var hello={ props: ['value'], template: ` <div> <input v-bind:value="value" v-on:input="$emit('input', $event.target.value)"> <slot></slot> </div> ` } components:{ 'hello':hello }
2.props
3.自定义事件
4.基于文件的组件化
5.
Last updated