Commit Graph

12 Commits

Author SHA1 Message Date
Hanks d6200d7026 feat(weex): update weex recycle-list compiler (#7610)
+ Support v-once
+ Generate @templateId on the root element of each component
+ Add binding-expression attribute on recycle-list
+ Fix the compile result of v-else-if and v-else
2018-03-04 22:59:21 -05:00
Hanks 990374bacb feat(weex): support sending style sheets and class list to native (#7530)
No longer manage style sheets and class list in vue and weex-js-runtime.

Refer to https://github.com/Hanks10100/weex-native-directive/issues/14
2018-03-04 22:58:24 -05:00
Hanks 472a2896bd feat(weex): adjust framework entry APIs and add flow annotations (#7272)
1. Remove the "init", "reset", "getRoot" and "receiveTasks" APIs, which
are already implemented in the new version of "weex-js-runtime".
2. Use "createInstanceContext" instead of "createInstance". Vue only
needs to prepare the instance context and no longer execute the js
code. The js code will be executed by native.
3. Add flow type declarations and annotations.
2017-12-19 15:47:53 -05:00
Hanks b8d33ecd9a feat(weex): WIP implement virtual component (#7165) 2017-12-18 20:57:43 -05:00
Evan You 452a65c98a feat(weex): pass stateless component test case 2017-12-18 20:57:19 -05:00
Hanks 46c8016562 test(weex): add more test cases for recycle-list (#7104) 2017-12-18 20:56:41 -05:00
Hanks 232dd85f85 test(weex): support testing the virtual dom generated form *.vue files (#6944)
Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
2017-10-30 20:29:16 -04:00
Hanks 2deda3d432 refactor(weex): Adjust the weex platform entry file to fit the new weex runtime (#6620)
* trim trailing whitespace

* revert(weex): remove the new Function hack for V8, as Weex uses JSC now

Remove the `callFunctionNative` method and `compileBundle`, which is provided by modified V8. In
order to maintain the consistency of the js engine, Weex also use JSC on Android. The legacy hack
for V8 engine should be removed.

* refactor(weex): move module and component apis to weex runtime

Modules and components should be registered in weex runtime, not the specific framework. The
`registerModules`, `registerComponents`, `weex.supports` and `weex.requireModule` api is moved to
weex runtime, which is in the "apache/incubator-weex" repo.

* test(weex): refactor the test cases to fit the new weex-js-runtime

* fix(weex): use document instead of renderer to create Element
2017-09-18 15:38:27 -04:00
Evan You a2a9110ea1 bump weex test deps 2017-06-13 18:14:03 +08:00
Evan You a2ca9b5184 suppress logs during weex tests 2017-02-03 10:42:19 -05:00
勾三股四 4f84aefe43 support v-model in weex (#4178)
* [wip] supported v-model in Weex

* fixed v-model in weex

* added test cases for v-model in weex

* used strToRegExp for all test cases in weex

* fixed eslint

* fixed parseModel test case
2016-11-12 11:33:51 -05:00
Evan You cb253d7405 wip: weex framework integration 2016-11-07 16:26:06 -05:00