Commit Graph

200 Commits

Author SHA1 Message Date
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 0104458d631115d1abf8d7a6a694a1d84b9b0fc5.
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
Evan You
1d8f3a264e better global mixin strategy 2016-06-25 10:43:19 -04:00
Evan You
3fe127b05a fix v-model number conversion (fix #3140) 2016-06-22 21:43:52 -04:00
Evan You
f0b8f2e290 attach __vue__ to elements to support devtools 2016-06-22 14:18:56 -04:00
Evan You
563672e5fe fix flow def 2016-06-22 11:41:30 -04:00
Evan You
4fe51a75a9 prohibit replacing Vue.config + support custom keyCodes 2016-06-22 11:35:33 -04:00
Evan You
2af9f68bd9 remove source-map generation from sfc parser 2016-06-21 02:17:11 -04:00
Evan You
e3fb6fe834 remove <render> tag 2016-06-17 13:25:34 -04:00
Evan You
d76bf8cac8 improve template error detector 2016-06-15 11:31:43 -04:00
Evan You
081d66adb2 keep preserveWhitespace as internal compiler option 2016-06-15 10:30:32 -04:00
Evan You
b0ad94fc87 properly encode HTML in server-side rendering (fix #3078) 2016-06-14 14:15:41 -04:00
Evan You
cec833a9e8 implement new v-for iterator syntax (ref: #3073) 2016-06-13 14:55:53 -04:00
Evan You
34bcc02b77 remove preserveWhitespace config option 2016-06-10 18:14:58 -04:00
Evan You
a5cd31ab6d coverage for sfc-parser 2016-06-10 16:57:42 -04:00
Evan You
f0a9e3d0f0 test padding and source map for sfc-parser 2016-06-10 16:54:58 -04:00
Evan You
b0b9691efe add pad/map option to sfc parser 2016-06-10 13:19:04 -04:00
Evan You
e236f80fa0 parser for single-file components 2016-06-07 21:36:00 -04:00
Evan You
b6fb485243 rename compiler module export names 2016-06-07 18:33:34 -04:00
Evan You
b02b1e5ba4 better template compilation error warnings 2016-06-06 14:15:21 -04:00
Evan You
cb67ffe442 ensure abstract HOCs do not alter parent chain 2016-06-05 16:14:51 -04:00
Evan You
a5a9dc9b69 support keep-alive 2016-06-04 10:53:05 -04:00
Evan You
7a3261115f transition-mode 2016-06-03 19:32:45 -04:00
Evan You
4bcdce895c record original tag name on vnode for components using is attribute 2016-06-02 18:18:32 -04:00
Evan You
060fab9ec1 make ref a runtime module 2016-06-01 19:52:42 -04:00
Evan You
d40ab0ca87 fix component client-side hydration 2016-06-01 18:20:13 -04:00
Evan You
f8cfc81826 remove unnecessary v-pre related code 2016-06-01 15:03:09 -04:00
Evan You
3e596bb97b handle event removal 2016-06-01 14:49:51 -04:00
Evan You
ff9c6b09bb fix svg parsing in IE 2016-05-31 22:41:56 -04:00
Evan You
2a64b8a356 tests for v-model select 2016-05-26 23:51:34 -04:00
Evan You
69abe1b726 make sure to expose real instance instead of proxy as vnode.context 2016-05-26 12:57:45 -04:00
Evan You
8d229b2442 support v-bind on objects 2016-05-24 20:41:06 -04:00
Evan You
7f85acb4e5 expose oldValue on directive bindings 2016-05-24 18:28:17 -04:00
Evan You
837853d95a better inferring of component names in warnings 2016-05-19 13:58:11 -04:00
Evan You
6fe268874c improve codegen for smaller generated code size 2016-05-18 20:57:51 -04:00
Jinjiang
2e8dfe5d9a revert _init method for Vuex (#2886) 2016-05-17 09:58:24 -04:00
Evan You
36a32e4466 tweaks based on #2885 2016-05-16 21:29:50 -04:00
Jinjiang
1d45c4b9e9 extract style/class/transition as web platform compiler modules (#2885)
* extract style/class/transition as web platform compiler modules

* fixed genData bug

* made module.staticKeys optional in compiler

* changed module.genData just return additional data in compiler

* cached genStaticKeys in compiler optimizer
2016-05-16 21:02:13 -04:00
Evan You
3573ffff1f refine ast nodes with disjoint union type 2016-05-16 15:28:10 -04:00
Evan You
df259d00f4 tweak annotations 2016-05-14 19:20:12 -04:00
Evan You
71a0f3e1ef optimize internal component instantiation 2016-05-14 18:45:54 -04:00
Evan You
0dc5d96e3c fix declarations 2016-05-14 15:54:49 -04:00
Jinjiang
20fb79a1ea new render mechanism (#2857)
* updated compiler with new render functions

* separated createElement into renderSelf & renderElement
supported getters for text node & static root

* adapted new element creator into render call

* improved \$createElement

* fixed by flow check

* fixed ssr bugs for $createElement
2016-05-14 15:49:18 -04:00
Evan You
750bec1024 annotate platforms/web 2016-05-14 07:40:56 -04:00
Evan You
a74f53b0b8 annotate compiler 2016-05-14 06:20:54 -04:00
Evan You
b17ea5cc36 annotate codegen 2016-05-14 05:54:52 -04:00
Evan You
68e8c39db9 annotate parser 2016-05-14 05:08:54 -04:00
Evan You
7b3ba65f4e declare component options shape 2016-05-14 04:10:48 -04:00
Evan You
59fcd4e7a7 finish annotating vdom 2016-05-14 03:38:41 -04:00
Evan You
45d96c7dbc annotation for vdom (wip) 2016-05-14 03:08:21 -04:00
Evan You
1b7ab89a5d rework type annotation strategy: use interface instead 2016-05-13 18:30:04 -04:00
Evan You
354ea616b5 annotate Vue class 2016-05-12 19:13:38 -04:00
Evan You
6d712753d8 annotate ssr code 2016-05-12 14:06:13 -04:00