Evan You
cb6a0915c5
fix(runtime-dom): remove attrs with nullish values
...
fix #1576
2020-07-14 16:25:21 -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
b9595e64cf
feat: ssr support for <style vars>
2020-07-12 18:04:09 -04:00
Evan You
5f271515cf
refactor: shorten scoped css var / animation prefix
2020-07-10 18:47:31 -04:00
Evan You
6647e34ce7
refactor: adjust useCSSVars scoped usage
2020-07-10 10:19:16 -04:00
Evan You
879ea17985
test: tests for useCSSVars
2020-07-10 09:44:00 -04:00
Felix Rilling
829b35e426
chore: typo fixes ( #1546 )
...
* chore: fix typos in comments/JSDoc.
* chore: fix typo in internal function name.
* chore: fix typos in test comments/descriptions/variable names.
2020-07-08 12:32:42 +02:00
underfin
425335c28b
fix(v-model): consistent nullish value handling with 2.x ( #1530 )
...
fix #1528
2020-07-06 19:02:33 -04:00
djy0
77538ec6d9
fix(runtime-dom/style): fix patchStyle on falsy next value ( #1504 )
...
fix #1506
2020-07-06 16:45:15 -04:00
underfin
d4e9b19932
perf: only patch string style when value has changed ( #1310 )
...
fix #1309
2020-06-11 17:25:39 -04:00
Albert Kaaman
ab86b190ce
fix(runtime-dom): event handlers with modifiers should get all event arguments ( #1193 )
2020-05-18 10:11:39 -04:00
Evan You
1184118d23
wip(runtime): test for static vnode handling
2020-05-15 16:11:53 -04:00
Evan You
98bee596bd
fix(runtime-core): should catch dom prop set TypeErrors
...
based on #1051
2020-05-01 18:47:27 -04:00
Evan You
20bc7ba1c5
fix(runtime-dom): should not coerce nullish values to empty strings for non-string dom props
...
fix #1049
close #1092 , close #1093 , close #1094
2020-05-01 11:06:24 -04:00
HiiTea
22717772dd
chore: fix typos ( #1090 )
2020-05-01 09:42:58 -04:00
Evan You
d45e47569d
fix(runtime-dom/v-on): support event.stopImmediatePropagation on multiple listeners
...
close #916
2020-04-15 10:35:34 -04:00
likui
27b5c71944
fix(runtime-dom): should patch svg innerHtml ( #956 )
2020-04-13 12:13:37 -04:00
Evan You
ab16a065a8
refactor: adjust runtime-dom test structure + tests for dom props
2020-04-10 15:37:30 -04:00
Evan You
ed235f16de
refactor: simplify runtime-dom class tests
2020-04-10 15:23:01 -04:00
Evan You
6eb3399311
fix(runtime-dom): fix patching for attributes starting with on
...
fix #949
BREAKING CHANGE: Only props starting with `on` followed by an uppercase
letter or a non-letter character are considered event listeners.
2020-04-10 11:57:07 -04:00
Evan You
f87d6b501e
test: fix runtime-dom v-on test
2020-04-07 11:41:48 -04:00
Evan You
2302dea162
fix(runtime-dom): support native onxxx handlers
...
close #927
2020-04-07 11:34:54 -04:00
Evan You
ec4a4c1e06
refactor(runtime-core): refactor props resolution
...
Improve performance in optimized mode + tests
2020-04-06 17:37:47 -04:00
Evan You
f42d11e8e1
fix(v-model): handle dynamic assigners and array assigners
...
close #923
2020-04-04 20:51:42 -04:00
Evan You
835789532c
test: make events test more stable
2020-04-01 21:59:42 -04:00
Evan You
8080c38323
chore: avoid v-cloak test warning
2020-04-01 21:39:47 -04:00
likui
0ed147d336
fix(runtime-dom): v-cloak should be removed after compile on the root element ( #893 )
...
fix #890
2020-03-31 18:13:59 -04:00
Evan You
b1d0b046af
fix(runtome-dom): properly support creating customized built-in element
2020-03-27 12:39:00 -04:00
likui
d318576d74
fix(runtime-dom): patch xlink attribute ( #842 )
2020-03-16 18:46:01 -04:00
Evan You
4a5b91bd1f
fix(runtime-core): fix slot fallback + slots typing
...
fix #773
2020-02-25 09:41:07 -05:00
Evan You
189a0a3b19
chore: use undefined for TS 3.8 compat
2020-02-21 11:38:41 +01:00
Evan You
c07751fd36
refactor: adjust createApp
related API signatures
...
BREAKING CHANGE: `createApp` API has been adjusted.
- `createApp()` now accepts the root component, and optionally a props
object to pass to the root component.
- `app.mount()` now accepts a single argument (the root container)
- `app.unmount()` no longer requires arguments.
New behavior looks like the following:
``` js
const app = createApp(RootComponent)
app.mount('#app')
app.unmount()
```
2020-01-27 16:00:17 -05:00
Chris Fritz
1c4cdd841d
refactor(createComponent): rename to defineComponent ( #549 )
2019-12-22 10:58:12 -05:00
Haoqun Jiang
d1527fbee4
test: add test for runtime-dom/modules/class ( #75 )
2019-12-09 14:52:20 -05:00
Evan You
460b053f74
test: improve events module test stability
2019-11-26 18:06:55 -05:00
likui
00857ac816
feat(core): support v-show directive ( #310 )
2019-11-24 22:04:26 -05:00
Cédric Exbrayat
fe66194a77
feat(vModel): handle true-value and false-value for checkbox ( #449 )
2019-11-12 16:24:39 -05:00
Evan You
2b2727e62c
feat(runtime-dom/style): support CSS variables and auto prefixing
2019-11-08 22:38:04 -05:00
Cr
34e2725e9b
feat(runtime-dom): support !important for patchStyle. ( #422 )
2019-11-08 22:06:53 -05:00
Evan You
7fa676e55f
feat(v-on): adjust key modifier behavior to match 2.x
2019-11-08 17:50:59 -05:00
Evan You
e98a85f3cb
refactor: applyDirectives -> withDirectives
2019-10-18 16:35:01 -04:00
Evan You
cba34453db
refactor(v-on): avoid empty modifier guard with only key modifier
2019-10-18 16:20:45 -04:00
宋铄运
db5c343c33
test(runtime-dom): add test coverage for v-on runtime guards, fix "exact" guard ( #298 )
2019-10-15 17:08:43 -04:00
Evan You
2d6d5d4517
chore: move events.spec.ts
2019-10-14 17:46:30 -04:00
Evan You
2b3d5b3f96
chore: move vModel.spec.ts
2019-10-14 17:45:15 -04:00
Stanislav Lashmanov
b4eeb2fa1b
test(runtime-dom): vModel tests ( #255 )
2019-10-14 17:07:34 -04:00
宋铄运
57a94b530d
feat(dom): transform + runtime for v-on ( #213 )
2019-10-14 00:33:23 -04:00
Evan You
ba4e6e5b4d
test: make dom events spec more stable
2019-10-10 22:02:41 -04:00
Stanislav Lashmanov
08df965e3c
feat(runtime-dom): support event options ( #149 )
2019-10-09 15:05:21 -04:00