vue-component-create
vue-component-create(alpha)
受 vue-create-api 启发,基于 Vue3.0 的 create-api;使用 Vite 搭建开发环境
大陆地区访问 playground
Usage
import { createAPI } from 'vue-component-create'
import Loading from 'path/to/Loading.vue'
const app = createApp(App)
createAPI(app, Loading, true)
app.mount('#app')
API
API主要参考vue-create-api如下
$updateProps;更新props等,vue3推荐onXxx来监听事件$remove;移除组件,卸载Dom$create[Component.name];挂载在this上的插件调用方法
TodoList
-
this绑定 -
install实现 - 生命周期绑定
-
provide,inject实现
License
MIT
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.4 | ^3.2.45 | ||
| 0.0.3 | ^3.2.45 | ||
| 0.0.2 | ^3.2.45 | ||
| 0.0.1 | ^3.2.45 |