Commit Graph

51 Commits

Author SHA1 Message Date
Vikram Rangaraj 12e8efc2e7 workflow: upgraded to babel 7 (#8948) 2018-10-23 18:40:55 -04:00
Zhenfei You 62265035c0 feat(weex): support object syntax of class (#7930) 2018-04-07 00:24:23 -04:00
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 ff8fcd2e2b feat(weex): support parse object literal in binding attrs and styles (#7291) 2017-12-26 21:33:37 -05:00
cinwell.li e055df82fe fix(weex): default value for editor, fix #7165 (#7286)
* fix(weex): default value for editor, fix #7165

/cc Hanks10100

* fix(weex): recycle-list test
2017-12-20 09:05:21 -05:00
Evan You 7cc0b559e9 feat(weex): update new syntax for <recycle-list> 2017-12-19 16:19:07 -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 661bfe552e feat(weex): partially support lifecycles of virtual component (#7242)
Update the `_init` and `_update` logic to partially support lifecycles.
Add test cases for testing the lifecycle hooks and data update.
2017-12-18 20:58:53 -05:00
Hanks d544d052a9 fix(weex): append as tree by default for recycle-list and cell-slot (#7216) 2017-12-18 20:57:43 -05:00
Hanks b8d33ecd9a feat(weex): WIP implement virtual component (#7165) 2017-12-18 20:57:43 -05:00
Evan You 70b97ac2f4 feat(weex): recycle-list support stateful child component 2017-12-18 20:57:19 -05:00
Evan You 452a65c98a feat(weex): pass stateless component test case 2017-12-18 20:57:19 -05:00
Evan You c1743a9dd7 test(weex): use done.fail for reporting errors 2017-12-18 20:57:18 -05:00
Hanks 46c8016562 test(weex): add more test cases for recycle-list (#7104) 2017-12-18 20:56:41 -05:00
Hanks 0bf0cbef76 revert(weex): remove the "receiveTasks" api and support component hook (#7053) 2017-12-18 20:56:41 -05:00
Hanks 0c11aa8add feat(weex): generate "@render" function for weex recycle-list (#6987)
* feat($compiler): support to generate @render function for weex recycle-list

Compile the template twice with different options for weex platform if
the “recyclable” flag is passed. Generate both normal render function
and “@render” function for recycle-list.

Adjust function names and arguments in recycle-list compiler.

* test(weex): add test cases for <recycle-list>
2017-12-18 20:55:58 -05:00
Evan You 904d9c9a81 test: fix weex test case 2017-12-05 11:20:33 -05:00
Evan You 9463ac8746 test: fix weex tests 2017-11-07 17:25:55 -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 8a784d8d23 fix(weex): stop trim css units in richtext component (#6927)
+ Remove the `trimCSSUnit` method.
+ Modify the test cases to support css units.
+ Add flow type annotations.
2017-10-30 20:28:54 -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
Hanks a8146c0c10 feat(weex): remove __weex_require_module__ api 2017-08-29 16:35:39 +02:00
Hanks 9bded22a83 test(weex richtext): rename the file path of richtext test 2017-08-29 16:35:09 +02:00
Hanks 3e4d926336 feat(weex richtext): treat richtext as runtime components 2017-08-29 16:35:09 +02:00
Hanks d627161a91 feat(weex richtext): support events and add more test cases 2017-08-29 16:35:09 +02:00
Hanks b60964256c feat(weex richtext): support to parse styles and classList 2017-08-29 16:35:09 +02:00
Hanks 0ea2bb4fb4 feat(weex): support nested components in richtext 2017-08-29 16:35:09 +02:00
Hanks 09302a7211 test(weex): add test cases for richtext component 2017-08-29 16:35:09 +02:00
Hanks b1512d8b13 feat(weex): implement "weex.supports" api to support feature detection (#6053)
* feat(weex): add "weex.supports" api for feature detection

* test(weex): add test case for weex.supports and related methods
2017-07-10 12:15:31 +08:00
Hanks 0d6ad12a48 refactor(weex): sync recent changes of Weex (#6028)
* compile bundle on native side if 'compileBundle()' is available on
native side.

* refactor sendTasks

* reset renderer.compileBundle

* v2.2.2-weex.1

* v2.2.2-weex.2 && fixed memory leak

* call C++ timer instead of WxTimerModule in weex-vue-framwork

* v2.2.2-weex.4

* v2.2.2-weex.5

* v2.2.6-weex.1

* style(weex): fix eslint

* test(weex): fix test case for weex callback manager
2017-07-07 11:42:47 +08:00
Evan You a2a9110ea1 bump weex test deps 2017-06-13 18:14:03 +08:00
Hanks 29445153e3 [weex] Support unary and left open tags (#5052)
* [weex] Support unary and left open tags

* [weex] add test case for unary tag

* [compiler] move canBeLeftOpenTag to compiler option
2017-03-15 09:56:25 +08:00
Evan You fc6f181052 fix weex model test 2017-03-08 16:00:35 +08:00
YOU 61930e0cc6 chore(test): fix some typos (#5101) 2017-03-06 09:50:49 +01:00
Evan You d304eee296 fix weex tests 2017-02-24 12:26:21 -05:00
Hanks 3e523e6d57 [weex] convert kebab-case attribute name to camelCase in compiler (#4964)
* [weex] add test case for camelize props

* [weex] add test case for append props

* [weex] camelize component attribute name

* [weex] more reliable camelize functions
2017-02-18 19:36:00 -05:00
Evan You a2ca9b5184 suppress logs during weex tests 2017-02-03 10:42:19 -05:00
Evan You 6cbee6b286 refactor: extract universal v-model codegen code and update weex v-model codegen 2017-01-23 12:06:17 -05:00
Evan You d99637b7f3 [weex] make tests pass 2017-01-20 16:10:11 -05:00
Evan You bf8aac0053 fix weex test case 2016-12-14 12:29:30 -05:00
Evan You 9cfd63a7d0 fix weex tests 2016-12-07 16:48:29 -05:00
Evan You e0ab042295 add focused test eslint rules for tests 2016-11-25 13:04:44 -05:00
Evan You f4df893828 fix weex tests for optimizer adjustments 2016-11-17 18:15:10 -05:00
Evan You 3e8ac270a8 fix .trim modifier when v-model is used on custom component (fix #4204) 2016-11-15 11:05:08 -05:00
Evan You cccc277dd9 fix eslint 2016-11-13 14:07:34 -05:00
Evan You 4e38b54274 fix weex tests for component slot static check change 2016-11-13 14:04:16 -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 cb4854a50e [weex] enable extended constructors to use mixins 2016-11-09 21:19:01 -05:00
Evan You 2f63cc8a14 fix eslint 2016-11-07 17:31:25 -05:00