Commit Graph

201 Commits

Author SHA1 Message Date
Evan You 26953f5cac add semis to flow decls for better syntax highlighting 2017-05-15 16:01:30 +08:00
Evan You af12d3ff7f progress 2017-05-15 14:14:49 +08:00
Evan You 0ccefff794 support v-for on scoped slots (fix #5615) 2017-05-09 23:22:55 +08:00
Herrington Darkholme bb7c543fc2 fix #5539: improve `isDef` type definition (#5549)
* fix #5539: improve flow type coverage

* skip unnecessary object creation

* use flow internal syntax to enable predicate type
2017-04-29 14:24:06 +08:00
Evan You 94d5e332d1 use lodash.template for ssr templates by default 2017-04-19 11:43:53 +08:00
Evan You a7965292f4 comments for flow type nodes 2017-04-07 16:10:36 +08:00
Evan You 1073035164 fix activate hook call timing (fix vue-router#1212) 2017-04-07 15:30:37 +08:00
Evan You a12d32a56d fix style diffing on cached/slot elements (fix #5318) 2017-04-03 14:13:57 +08:00
Evan You fae6b87786 refactor: pull in vue-ssr-html-stream and refactor into generic template renderer 2017-03-29 10:14:28 +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 12870be9e0 expose component v-model expression on passed data 2017-03-08 15:39:47 +08:00
kazuya kawaguchi 0922b1d8aa improve set/delete API (#5050) 2017-03-03 12:07:42 +08:00
Bojan 1b38a261c5 support multi event (#5056) 2017-03-03 11:51:57 +08:00
Evan You 3b7b597044 cover Symbol for provide/inject typing 2017-02-25 23:19:36 -05:00
Evan You e7a2510e63 Revert "[WIP] Support for ref callback (#4807)"
This reverts commit acec8db2c4.
2017-02-24 18:17:04 -05:00
Evan You f66028b9cd introduce tip + make v-for component key warning a tip + refactor web compiler entry 2017-02-24 16:59:41 -05:00
Evan You 4cf49828c0 properly handle cosntructor options modification before global mixin application (fix #4976) 2017-02-23 18:11:18 -05:00
Evan You 73c5614740 update types for new features 2017-02-21 22:35:50 -05:00
Evan You 689c107de4 feat: config.performance 2017-02-20 18:35:04 -05:00
Evan You 1861ee9570 feat: renderError 2017-02-20 00:16:40 -05:00
Evan You 9ccffe72db invoke activate/deactivate recursively + refactor (close #4242) 2017-02-17 18:56:09 -05:00
kingwl 8bb6c2bdaa support $on multi event (#4860) 2017-02-15 18:39:53 -05:00
Rahul Kadyan acec8db2c4 [WIP] Support for ref callback (#4807)
*  Tests for ref callback

*  Support for ref callback

* Add test of inline ref callback

* adjust ref implementation strategy

* fix patch ref registration

* fix tests

* fix flow

* fix test for phantomjs
2017-02-15 17:29:13 -05:00
Evan You 406352baba move computed properties definition to component prototype when possible 2017-02-14 12:03:14 -05:00
Evan You 87ffd0da9f tweaks 2017-02-14 11:39:05 -05:00
yantene 22f9560c92 add $props 2017-02-14 11:39:05 -05:00
Evan You 1c79592524 feat: implement template option for vue-server-renderer 2017-02-13 13:34:05 -05:00
Evan You e71d70dcb3 tweak build + upgrade flow 2017-02-13 13:33:42 -05:00
Evan You 068095579b support source map in bundle renderer 2017-02-03 10:42:19 -05:00
Evan You e7083d09f1 fix scoped slots with dynamic slot names + force update for child components with scoped slots (fix #4779) 2017-01-24 11:04:02 -05:00
Evan You 9d6c8ec268 feat: allow customization of component v-model prop/event via model option (close #4515) 2017-01-22 14:31:43 -05:00
Evan You 08bd81f8c0 fix #4530 with smaller change scope 2017-01-12 21:41:23 -05:00
Evan You 4e830ba3c3 Revert "Mark node with static props as static (#4662)"
This reverts commit 92657249dd.
2017-01-12 20:57:30 -05:00
Evan You 30258a9a60 rename vnode.child -> vnode.componentInstance 2017-01-12 17:44:19 -05:00
chengchao 92657249dd Mark node with static props as static (#4662)
* fix special static attrs as dom prop

* refactor
2017-01-10 17:38:32 -05:00
Evan You dacd0cf582 createElement flow type correction 2016-12-21 16:42:18 -05:00
Evan You 7ffa77f3df optimize instance hook event lookup 2016-12-13 21:01:12 -05:00
Evan You 7c9e81e772 optimize initEvents 2016-12-13 19:29:07 -05:00
Marshall Shen 6cfd6c7fe9 change any to mixed to make it more type-safe (#4458) 2016-12-12 20:27:18 -05:00
Evan You 4b51ad0483 rename _h -> _c so that vue-template-es2015-compiler can use the new internal createElement without breaking backwards compatibility 2016-12-05 02:36:40 +01:00
Evan You 207c18c47f further reduce normalizeChildren usage 2016-12-05 02:36:40 +01:00
Evan You 79e1058799 wip: refactor compiler to skip normalization when possible
wip fix

wip fix

wip fix
2016-12-05 02:36:40 +01:00
Evan You e8d6bd9dc7 allow modifier key modifiers on keyboard events and warn overwriting in config.keyCodes 2016-12-01 14:31:55 -05:00
chengchao 6ea9a4db42 Support mutliple keys for keycode (#4328)
* support mutliple keys for keycode

* update flow type

* add test case

* update comment

* update flow type

* update comment
2016-11-30 12:16:10 -05:00
Evan You 9dce7adfa2 Streaming render for weex
fix append mode for keep-alive reactivation

streaming render for weex

fix weex test case

inject __WEEX__ during tests

fix append:tree for iOS

ignore weex branch
2016-11-26 16:04:47 -05:00
Evan You 1903df4991 rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen (close #4317) 2016-11-25 10:06:21 -05:00
Evan You 7b389bc34e avoid warning unknown custom elements in v-pre 2016-11-24 12:47:27 -05:00
Evan You aa5f5d1198 ensure $scopedSlots is always an object (close #4301) 2016-11-23 18:04:35 -05:00
chengchao af78bcf916 Support v-if multiple conditions (#4271)
* add if conditions

* update v-if conditional

* update test

* update test case

* add test case

* update if conditions

* update walkThroughConditionsBlocks

* update v-elseif

* update v-once with v-elseif test case

* update style with v-elseif

* update flow type
2016-11-21 15:24:54 -05:00
Evan You 303378f85b support default scoped slot + function children as scoped slot 2016-11-20 12:03:43 -05:00
Evan You 7f36f99f6c tests for scoped slots 2016-11-20 12:03:43 -05:00
Evan You 9ddbbcc340 wip: scoped slot implementation 2016-11-20 12:03:43 -05:00
Evan You 3575ff4a88 wip: codegen for scoped slots 2016-11-20 12:03:43 -05:00
Evan You 2dc2d062b1 adjust build 2016-11-20 12:03:43 -05:00
Eduardo San Martin Morote ff7f231002 Support custom blocks in SFC parser (#4157)
This allow to use other block appart from `template`, `script` or
`style` in the SFC parser. This allows such things as writing tests or
examples directly into the SFC file. Those are meant to be handled by
programs others than vue-loader like vue-play.
2016-11-20 11:37:42 -05:00
Evan You 9a742cb423 only treat binding as domProps on specific elements (fix #4233) 2016-11-18 11:36:05 -05:00
Evan You cb4854a50e [weex] enable extended constructors to use mixins 2016-11-09 21:19:01 -05:00
Evan You ff551029bf wip: fix flow type for weex merge 2016-11-07 16:26:06 -05:00
Evan You b69b4a4eef tweak style merge for performance 2016-11-07 16:20:10 -05:00
chengchao e960cd104e enable style merge behavior between parent-child components (fix #3997) (#4138)
* merge style between components

* update test case

* update style compiler

* add paren to style binding code

* update background property parsing

* introduce interpolation warning and refactor var to const
2016-11-07 16:19:48 -05:00
Victor Zakharenko 5a4c1d7f70 Add support attribute module (#4091)
* Add support attribute module

To be able to use css-module

* Extend type SFCBlock

module?: string | boolean

* package vue-template-compiler update

* Revert "package vue-template-compiler update"

This reverts commit 0104458d63.
2016-11-03 10:53:43 -04:00
Evan You ec824be88e fix v-once inside v-for (fix #3964) 2016-11-02 22:34:36 -04:00
chengchao 0cd1489e68 .number modifier should work with select, radio, checkbox (fix #4018) (#4022)
* support number modifier in select, radio, checkbox

* add test case

* add ASTModifier type to specify modifiers type

* fix typo

* keep code consistent
2016-11-01 11:50:22 -04:00
Herrington Darkholme 2ac581bb7f SSR: eliminate closure in render.js implementation
eliminate closure

fix multiple render instances and memory leakage

fix eslint

magically fix flow typing

add multiple render stream test
2016-11-01 11:14:46 -04:00
Evan You d362d64633 update entities encoding/decoding (fix #3899) 2016-10-13 05:05:35 -04:00
Evan You 03ea9f0b57 fix flow 2016-10-11 20:50:28 -04:00
Evan You 1fa3844dc2 refactor directive update implementation 2016-10-11 20:31:13 -04:00
Evan You 99ea0f8229 adjust named slot resolve check (fix #3819) 2016-09-30 14:19:16 -04:00
松鹤 313ad8f87b fix flow lifecycle method name [Vue@2.x] (#3762)
fix lifecycle method name `init` to `beforeCreate`
2016-09-26 22:54:57 -04:00
Evan You 56960b5fbc support object looseEqual in v-model (fix #3673) 2016-09-14 11:35:30 -04:00
Evan You d6a7568891 improve v-bind implementation and make it work on components (fix #3670) 2016-09-14 10:14:45 -04:00
Evan You 45ff6218c1 handle multiline atribute value parsing in IE (fix #3663) 2016-09-13 08:43:25 -04:00
Evan You 4afccc8eec proper slot duplication warning (fix #3595) 2016-09-08 11:47:22 +02:00
Evan You 982913fb1e upgrade flow to 0.31 (close #3482) 2016-08-28 11:33:39 -04:00
Evan You 4d640ce4d9 tweak v-if to avoid unnecessary node replacement 2016-08-27 17:01:57 -04:00
Evan You ed2085974b ensure mergeVNodeHook does not inject duplicate hooks 2016-08-26 19:19:51 -04:00
Evan You d2df58e547 move v-show marker to runtime so that render functions work as expected (fix #3488) 2016-08-20 11:14:41 -04:00
Evan You ba5fb31188 fix transition insert hook duplicate invocation on slot nodes (fix #3474) 2016-08-18 12:00:31 -04:00
Evan You 1e74675053 expose Vue.set/delete on instances as vm.$set/$delete 2016-08-17 13:53:50 -04:00
Evan You cdc0bc9cd4 improve keep-alive: use component-based API 2016-08-09 16:32:15 -04:00
Evan You 18386c4cf4 fix static nodes optimization inside v-for (fix #3406) 2016-08-08 19:03:00 -04:00
Evan You fe801b16e4 wip: fix $parent after children change 2016-08-05 12:43:35 -04:00
Evan You b5b963f51d wip: refactor children resolution (remove thunk mechanism) 2016-08-05 12:10:13 -04:00
Evan You c66b7566c6 fix flow 2016-08-05 03:10:40 -04:00
Evan You 59b2a0eeb3 support class/style in v-bind object 2016-08-05 02:59:33 -04:00
Evan You 40b93e6527 avoid unnecessary enter transitions on nested inserted elements 2016-08-04 22:17:59 -04:00
Evan You 35ee5b105e remove staticAttrs 2016-07-29 10:45:43 -04:00
Evan You 04e2b53cd7 properly perserve whitespace in <pre> (fix #3341) 2016-07-28 18:50:05 -04:00
Evan You ba5ec54cd8 include pre/post transform declarations 2016-07-26 22:36:02 -04:00
Evan You e84a1a43be fix attribute decode reggression (fix #3327) 2016-07-26 14:38:46 -04:00
Evan You 3ce450b6dc use more proper flow type syntax 2016-07-25 21:28:46 -04:00
Evan You ea9c6c37c3 support v-on .native modifier on components 2016-07-19 18:56:10 -04:00
Evan You 69ecdcb05e rename vnode.data.props -> domProps 2016-07-19 17:52:10 -04:00
Evan You e6871a33c1 update flow annotations 2016-07-15 17:48:42 -04:00
Evan You 9421bd4806 extract getRealChild for abstract components 2016-07-06 17:07:46 -04:00
Evan You 7630622689 expose component placeholder node in render fns as this.$vnode 2016-07-06 12:50:08 -04:00
Evan You eb9eb98cd9 use de-indent module 2016-06-28 04:52:18 -04:00
Evan You 3661b4e78e add _inactive property 2016-06-28 04:00:32 -04:00
Evan You cf8aeddc12 fix v-once with v-for and remove unused _t method (fix #3155) 2016-06-27 11:18:06 -04:00
Evan You c902e1f9ab ssr component-level caching + context injection 2016-06-25 22:59:03 -04:00