Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.vue 中支持 Vue.extend() 写法 #161

Merged
merged 2 commits into from Aug 13, 2019
Merged

.vue 中支持 Vue.extend() 写法 #161

merged 2 commits into from Aug 13, 2019

Conversation

meixg
Copy link
Member

@meixg meixg commented Aug 13, 2019

支持了在 .vue 中写 Vue.extend() 方法。
必须使用 @marsjs/core 提供的 Vue,使用方法为:

import {Vue} from '@marsjs/core';
export default Vue.extend({

});

后续还需要补充 d.ts,定义 onLoad、$api 等。

@allen-zh allen-zh merged commit 44a6cf5 into master Aug 13, 2019
@meixg
Copy link
Member Author

meixg commented Aug 14, 2019

close #160

@allen-zh allen-zh deleted the extend branch September 4, 2019 07:55
allen-zh pushed a commit that referenced this pull request Sep 4, 2019
* .vue 中支持 Vue.extend() 写法

* feat: 补充类型定义
allen-zh added a commit that referenced this pull request Sep 4, 2019
* feat(build): support use npm in wx

* refactor(build & core): refactor h5 build process

* refactor(build & core): refactor h5 build process

* refactor(build & core): refactor h5 build process

* feat(build): support PascalCase tag in template

* feat: 引入 sfc 组件时,支持 xxx.vue 写法

* feat(core & build): 小程序 SFC 中支持 Vue.extend() 写法 (#161)

* .vue 中支持 Vue.extend() 写法

* feat: 补充类型定义

* feat(build): h5 adapt Vue.extend() and *.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants