Commit Graph

895 Commits

Author SHA1 Message Date
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
Evan You
cd334070f3 fix: address potential regex backtrack 2018-02-21 13:11:11 -05:00
TB
e396eb3445 fix(ref): allow ref key to be zero (#7676)
prevents missing elements when :ref value is "0"

fix #7669
2018-02-21 10:21:51 -05:00
Guillaume Chau
5191f13472 fix(transition): should not add transition class when cancelled (#7391)
fix #7390
2018-01-05 17:45:59 -05:00
AchillesJ
05299610ea fix(vdom): svg inside foreignObject should be rendered with correct namespace (fix #7330) (#7350)
* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
2018-01-05 17:44:44 -05:00
Hanks
ff8fcd2e2b feat(weex): support parse object literal in binding attrs and styles (#7291) 2017-12-26 21:33:37 -05:00
Evan You
f8cb3a2393 chore: fix lint 2017-12-25 11:05:54 -05:00
Huo Chunyang
44420b7bbc chore: correct the eslint script statement in package.json and correct the format. (#7308) 2017-12-24 12:28:28 -05:00
Evan You
144a4dd860 build: rename build/ to scripts/ 2017-12-21 20:17:47 -05:00
Evan You
41838c8e86 feat: support v-model dynamic type binding for v-bind="object"
close #7296
2017-12-21 11:06:43 -05:00
Evan You
d8b08387a2 fix: clean up custom events when patched component no longer have events
fix #7294
2017-12-21 10:36:03 -05:00
Evan You
956756b1be refactor: use more efficient on-demand clone to handle reused node edge cases
removes unnecessary slot/static node clones, fix #7292
2017-12-20 19:44:24 -05:00
Evan You
8335217cb4 fix(core): handle edge cases for functional component returning arrays
fix #7282
2017-12-20 11:02:56 -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
Evan You
aac76349e7 Revert "feat: auto cache inline prop literals to avoid child re-render"
This reverts commit 996eb00a0a.
2017-12-19 14:03:39 -05:00
Herrington Darkholme
bacb911f7d fix(warning): allow symbol as vdom key (#7271) 2017-12-19 09:35:50 -05:00
Evan You
01c07503bf revert: revert prop object validation
close #7279
2017-12-19 09:29:48 -05:00
Evan You
1dd6b6f046 refactor: adjust weex branch coverage and build for merging into dev 2017-12-18 21:51:38 -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
996eb00a0a feat: auto cache inline prop literals to avoid child re-render 2017-12-18 12:55:02 -05:00
Alexander Sokolov
d02bb37efb feat: warn misspelled keys on prop validation object (#7198) 2017-12-14 11:39:32 -05:00
Evan You
14f7015578 test: fix ssr test due to webpack asset emit order change 2017-12-12 19:16:17 -05:00
Evan You
4e00688e4a build: update dev dependencies 2017-12-12 18:42:44 -05:00
Evan You
8936b8d9c1 fix(ssr): properly handle errors in async component
fix #6778
2017-12-12 18:12:02 -05:00
Evan You
86e4d7566e test: add test case for #7223 2017-12-12 17:07:28 -05:00
laoxiong
023f171f58 fix(core): warn duplicate keys in all cases (#7200)
close #7199
2017-12-12 16:38:32 -05:00
Guillaume Chau
bd4819e6cf fix: data() should be called with vm as first argument in mixins
fix #7191
2017-12-06 09:11:49 -05:00
Evan You
904d9c9a81 test: fix weex test case 2017-12-05 11:20:33 -05:00
Evan You
5875c7c490 fix: revert shared static tree cache to avoid memory leak
revert f0a66c5
fix #7184
2017-12-05 11:17:36 -05:00
Evan You
f5ce6b50cf fix(v-for): support array and nested destructuring in v-for 2017-11-27 16:54:15 -05:00
Evan You
0f7c443dca fix: block unnecessary input event on textarea placeholder in IE
close #7138
2017-11-27 12:13:37 -05:00
Evan You
8b43c81ed4 ci: bump transition unit test duration 2017-11-24 10:16:07 -05:00
Evan You
aa8262540a fix: fix v-for iterator parsing destructuring + parens without index 2017-11-24 10:09:04 -05:00
Evan You
dd21eacc33 fix: fix async component resolving in sibling mounted hook
fix #7107
2017-11-22 17:12:34 -05:00
Evan You
604e081d04 fix: ensure functionalContext is cloned during slot clones
fix #7106
2017-11-22 16:37:24 -05:00
Evan You
3932a451a1 fix(keep-alive): should not destroy active instance when pruning cache
fix #7105
2017-11-22 15:26:39 -05:00
Evan You
ebcef58645 fix: fix v-for alias deconstruct regression
fix #7096
2017-11-21 09:06:19 -05:00
Evan You
a23b913796 fix: fix <keep-alive> include/exclude logic for anonymous components 2017-11-20 10:04:06 -05:00
Evan You
59dea37403 fix: fix v-model :value warning on custom component
fix #7084
2017-11-18 14:41:22 -05:00
Evan You
4d8226fb2c fix: keep-alive should not cache anonymous components
This only happens if the component is returned by a intermediate
functional or abstract component, e.g. <router-view>. Fix #6938.
2017-11-17 10:30:51 -05:00