Commit Graph

83 Commits

Author SHA1 Message Date
Evan You dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You f219bedae8
perf: improve scoped slots change detection accuracy (#9371)
Ensure that state mutations that only affect parent scope only trigger parent update and does not affect child components with only scoped slots.
2019-01-25 22:34:06 -05:00
Evan You 6a2994e8f0 revert: feat: support scoped-slot usage with $slot
This reverts commit 7988a5541c.
2019-01-11 23:04:04 -05:00
Evan You 7988a5541c feat: support scoped-slot usage with $slot 2019-01-07 22:26:44 -05:00
Evan You e1abedb9e6 feat(compiler): add whitespace option, deprecate preserveWhitespace option
close #9208
2018-12-26 14:12:34 -05:00
Jason b31a1aa887 feat(compiler): output source range for compiler errors (#7127)
ref #6338
2018-12-21 21:58:32 -05:00
Alexander 1abb944a71 chore(typo): no dots at the end of the comments (#8087) 2018-04-26 14:14:16 +02:00
Evan You b06d09f274 types: adjust weex flow types 2017-12-18 20:57:18 -05:00
Evan You 5c2ce0017f feat(weex): WIP fix flow + handle errors in recycle-list template render 2017-12-18 20:57:18 -05:00
Evan You 801f793625 feat(weex): WIP invoke recycle-list child component with backing instance 2017-12-18 20:57:18 -05:00
Evan You 813409593e refactor(weex): declare __WEEX__ in flow typings 2017-12-18 20:57:18 -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
Hanks 2cb8ea3fee feat(weex): support compiling `v-on` in the weex native directive (#6892)
* refactor(compiler): move postTransforms to after children are processed

* feat(weex): recycle-list support WIP

* refactor: fix types

* feat(weex): split text into separate module

* feat($compiler): supports compiling v-bind to the weex native directive in recycle-list

* feat(compile): supports compiling v-if to the weex native directive

* feat($compiler): supports compiling v-for to the weex native directive

* feat($compiler): compile weex native directives in preTransformNode

* feat($compiler): supports compiling v-else-if and v-else to the weex native directive

* feat($event): support binding parameters on event handler within weex recycle-list

* refactor: mark weex-specific block

* feat(wip): recycle list template inline expand

* build: add weex factory dev script

* feat($compiler): support to compile "v-on" into weex native directive

* feat($compiler): adjust handler params to fit the weex native renderer

+ Filter the non-expression params and the `$event`.
+ Use `$event` as the last argument of handler.
2017-12-18 20:55:58 -05:00
Hanks 7ad368ebb6 feat(compile): supports compiling v-if to the weex native directive 2017-12-18 20:55:57 -05:00
Evan You 5254ee31c4 feat(weex): recycle-list support WIP 2017-12-18 20:55:57 -05:00
Evan You 248803146c refactor(compiler): move postTransforms to after children are processed 2017-12-18 20:55:57 -05:00
Evan You 531371b818 types: upgrade flow 2017-12-12 19:06:47 -05:00
Evan You cfd73c2386 fix: handle encoded tabs and newlines in attributes for Chrome a[href] and IE/Edge
fix #6828, fix #6916
2017-10-26 16:01:12 +02:00
Evan You f3fe012d54 feat(v-model): support dynamic input type binding 2017-10-07 23:18:11 -04:00
Evan You 11614d63b7 feat(v-on): support v-on object syntax with no arguments
Note this does not support modifiers and is meant to be used for handling
events proxying in higher-order-components.
2017-07-11 16:36:04 +08:00
wenlu.wang e4da249ab8 feat: add `comments` option to allow preserving comments in template (#5951)
close #5392
2017-06-30 08:56:23 +08:00
Evan You 55d8bfd6fd support scopeId 2017-05-18 16:33:55 +08:00
Evan You 85e24b3b31 progress 2017-05-16 17:52:28 +08:00
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
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
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 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
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 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
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 7f36f99f6c tests for scoped slots 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 ff551029bf wip: fix flow type for weex merge 2016-11-07 16:26:06 -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
Evan You 03ea9f0b57 fix flow 2016-10-11 20:50:28 -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 982913fb1e upgrade flow to 0.31 (close #3482) 2016-08-28 11:33:39 -04:00
Evan You cdc0bc9cd4 improve keep-alive: use component-based API 2016-08-09 16:32:15 -04:00