摘要: 1.用脚手架创建个项目 vue create dom 2.新建个组件以及组件对应的index.js 3.在入口文件中引入要打包成插件的文件 import vueDom from './HelloWorld.vue' const install = (Vue) => { Vue.component(' 阅读全文
posted @ 2022-04-10 10:56 关关大大 阅读(308) 评论(0) 推荐(1) 编辑
摘要: 1.v-model的实现是vue监听@input实现的 子组件代码如先 <!-- --> <template> <div class="hello"> <input v-model="newMsg" /> <!-- <select @change="change" > <option value=" 阅读全文
posted @ 2022-04-10 10:46 关关大大 阅读(803) 评论(0) 推荐(0) 编辑