Evan You
29beda7c6f
fix(compiler-dom): avoid bailing stringification on setup const bindings
2021-12-06 11:53:02 +08:00
Evan You
686d0149b6
fix(compiler-core): generate TS-cast safe assignment code for v-model
...
fix #4655
2021-09-22 16:55:06 -04:00
Evan You
2641422aa7
fix(compiler-dom): stringify eligible svg content
...
fix #4282
2021-08-09 14:39:50 -04:00
Evan You
47f488350c
chore: run updated prettier
2021-07-19 18:24:18 -04:00
Evan You
3b64508e3b
feat: v-memo
2021-07-16 14:30:49 -04:00
Evan You
b7ea7c1485
perf: also hoist all-static children array
2021-07-16 14:30:49 -04:00
HcySunYang
ceff89905b
perf: improve VNode creation performance with compiler hints ( #3334 )
2021-07-16 14:30:49 -04:00
Evan You
669037277b
fix(compiler-dom): fix in-browser attribute value decoding w/ html tags
...
fix #3001
2021-05-27 17:25:34 -04:00
HcySunYang
7c74feb3dc
fix(compiler-dom): comments in the v-if branchs should be ignored when used in Transition ( #3622 )
...
fix #3619
2021-05-24 17:10:29 -04:00
HcySunYang
7715c49af9
fix(compiler-core): avoid generating useless createVNode helper ( #2938 )
...
close #2739
2021-03-25 17:01:50 -04:00
GU Yiling
ca6aa01181
fix(compiler-dom): stringifyStatic should remove attribute bindings with null
value ( #3477 )
...
fix #3475
2021-03-25 16:14:06 -04:00
Evan You
90bdf59f4c
refactor(compiler): better constant hoist/stringify checks
2020-11-20 19:26:07 -05:00
Eduardo San Martin Morote
314ab2c7c5
fix(compiler): stringify values on v-text ( #2432 )
...
fix #2430
2020-10-19 18:12:09 -04:00
ᴜɴвʏтᴇ
052a621762
feat(compile-core): handle falsy dynamic args for v-on and v-bind ( #2393 )
...
fix #2388
2020-10-19 17:15:53 -04:00
Evan You
c930f2ee8a
chore: update snapshot
2020-07-27 17:45:30 -04:00
Evan You
71c3c6e2a0
fix(v-model): allow v-model usage on declared custom elements
...
fix #1699
2020-07-27 17:09:30 -04:00
Evan You
00ab9e2e85
refactor: adjust event options handling to be JSX friendly
2020-07-14 13:20:59 -04:00
Evan You
380c6792d8
fix(v-on): refactor DOM event options modifer handling
...
fix #1567
Previously multiple `v-on` handlers with different event attach option
modifers (`.once`, `.capture` and `.passive`) are generated as an array
of objects in the form of `[{ handler, options }]` - however, this
makes it pretty complex for `runtime-dom` to properly handle all
possible value permutations, as each handler may need to be attached
with different options.
With this commit, they are now generated as event props with different
keys - e.g. `v-on:click.capture` is now generated as a prop named
`onClick.capture`. This allows them to be patched as separate props
which makes the runtime handling much simpler.
2020-07-14 11:48:05 -04:00
Evan You
6b63ba2f45
fix(compiler-dom): fix v-on .left .right modifier handling
2020-07-13 14:50:11 -04:00
Evan You
5e52f4e4d7
fix(compiler-dom): should ignore and warn side effect tags like script and style
...
This keeps behavior consistency with v2.
2020-07-08 12:32:07 -04:00
Evan You
9b5d13e598
fix: bail stringification for slots
...
fix #1281 , close #1286
2020-06-10 14:31:59 -04:00
Evan You
3f80183f1f
test: test for table stringification bail
2020-06-09 17:10:07 -04:00
Zardddddd60
64ec8bfb54
fix(compiler-core): bail static stringfication even threshold is met ( #1298 )
...
fix #1128
2020-06-09 16:26:03 -04:00
Evan You
dd2bfb5a8f
fix(compiler-dom): should bail stringification on runtime constant regardless of position
...
ref: vuejs/vite#157
2020-05-18 10:04:18 -04:00
Evan You
baa6973b13
wip(compiler): tests for new stringification
2020-05-15 15:50:42 -04:00
Evan You
304ab8c99b
fix(compiler-dom): bail static stringfication on non-attr bindings
...
fix #1128
2020-05-07 10:32:54 -04:00
Evan You
f9a3766fd6
fix(compiler): bail strigification on runtime constant expressions
2020-05-04 15:15:26 -04:00
HiiTea
22717772dd
chore: fix typos ( #1090 )
2020-05-01 09:42:58 -04:00
Evan You
1f6e72b110
fix(compiler): support full range of entity decoding in browser builds
...
BREAKING CHANGE: compiler options have been adjusted.
- new option `decodeEntities` is added.
- `namedCharacterReferences` option has been removed.
- `maxCRNameLength` option has been rmeoved.
2020-04-08 18:51:25 -04:00
Evan You
8c17535a47
fix(compiler): should not condense
...
fix #945
2020-04-08 17:33:07 -04:00
Evan You
be666ebd59
fix(compiler): should only strip leading newline directly in pre tag
2020-04-08 16:44:32 -04:00
Evan You
7f30cb5772
fix(compiler): fix pre tag whitespace handling
...
- should preserve whitespace even in nested elements
- should remove leading newline per spec
fix #908
2020-04-03 21:02:20 -04:00
Eduardo San Martin Morote
37b1dc8242
fix(transition): warn only when there is more than one rendered child ( #903 )
2020-03-31 18:12:51 -04:00
Evan You
0831b98eac
fix(compiler-core): support interpolation in RCDATA mode (e.g. textarea)
2020-03-23 17:25:29 -04:00
Evan You
9eef37fa32
refactor(compiler): remove modelValue from generated code for native v-model
2020-03-16 17:51:56 -04:00
Evan You
1b9b235663
fix(compiler-dom): properly stringify class/style bindings when hoisting static strings
2020-02-21 13:10:13 +01:00
Evan You
028f748c32
fix(v-on): transform click.right and click.middle modifiers
...
fix #735
2020-02-18 14:32:06 -05:00
Evan You
9aaef60ad2
wip(ssr): adjust event hydration flag
2020-02-13 18:28:40 -05:00
Evan You
6b505dcd23
wip(ssr): basic element hydration
2020-02-13 17:47:00 -05:00
Evan You
8b7c162125
feat(compiler-dom): handle constant expressions when stringifying static content
2020-02-12 15:00:00 -05:00
Evan You
e861c6da90
test: test updates for d40c642
2020-02-11 18:40:42 -05:00
Evan You
47e984d31f
refactor(compiler): provide _ctx and _cache via arguments
2020-02-10 17:29:12 -05:00
djy0
782db6d7f5
chore(compiler-core/codegen): avoid generate indent spaces of empty lines. ( #701 )
2020-02-10 09:33:04 -05:00
Evan You
ee5ed73361
wip(ssr): basic components
2020-02-05 23:07:23 -05:00
Evan You
1f2de9e232
fix(v-model): should use dynamic directive on input with dynamic v-bind
2020-02-05 15:21:47 -05:00
Evan You
6a5ed49ea9
wip(ssr): v-bind basic usage
2020-02-04 12:21:04 -05:00
Evan You
f503167fb7
test: fix snapshots
2020-01-31 11:06:37 -05:00
Evan You
90ddb7c260
refactor: expose parse in compiler-dom, improve sfc parse error handling
2019-12-22 19:44:21 -05:00
Evan You
8ffd79c754
fix(compiler-core): handle template root and template v-if as stable fragments
2019-12-12 21:09:47 -05:00
likui
00857ac816
feat(core): support v-show directive ( #310 )
2019-11-24 22:04:26 -05:00