Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

对于ts来说,是不是少了 createComponent 包装器? #9

Open
eliot-ye opened this issue Jun 24, 2019 · 3 comments
Open

对于ts来说,是不是少了 createComponent 包装器? #9

eliot-ye opened this issue Jun 24, 2019 · 3 comments

Comments

@eliot-ye
Copy link

如题,我记得ts时需要createComponent包装器的

@liximomo
Copy link
Owner

很快就会加上。

@eliot-ye
Copy link
Author

@liximomo 提点建议

  • Vue.use(),这里不应该导出“export plugin”,而是应该 “export default plugin”。
  • 文档里的使用例子,应该添加单文件组件项目的使用案例,特别是在 main.js 中写上 Vue.use(plugin)

@liximomo
Copy link
Owner

Vue.use(),这里不应该导出“export plugin”,而是应该 “export default plugin”。

这个是有意为之,我比较倾向于不使用 default export。

文档里的使用例子,应该添加单文件组件项目的使用案例,特别是在 main.js 中写上 Vue.use(plugin)

很好的意见,会多加几个示例。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants