Commit Graph

196 Commits

Author SHA1 Message Date
Pick cf1b6c666f
feat(runtime-dom): allow native Set as v-model checkbox source (#1957) 2020-09-14 11:16:50 -04:00
ᴜɴвʏтᴇ 1d55454e61
fix(runtime-dom): avoid setting unchanged input value (#1937)
fix #1935 (fix v-model usage with HTML5 validation)
2020-08-25 09:47:55 -04:00
Evan You 11804fe93f feat(directives): introduce `created` custom directive hook and ensure
`v-model` event listener fire before template/props listeners

fix #1931
2020-08-24 17:12:16 -04:00
XRenSiu bb54a84cd1
chore: use '@vue/shared' instead of '@vue/shared/src' (#1915) 2020-08-21 12:50:06 -04:00
Eduardo San Martin Morote 00683fce9a
fix(runtime-dom): patch `form` as an attribute (#1788)
Close #1787
2020-08-06 09:32:28 -04:00
Evan You 11ed210391 chore: fix tests 2020-08-03 18:01:07 -04:00
Evan You 8d4abc3814 chore: unset removed invokers 2020-08-03 17:56:55 -04:00
Evan You 1c967fc44b fix(runtime-dom): fix v-on same computed handler on multiple elements
fix #1747
2020-08-03 17:55:22 -04:00
Evan You 0cd98c3040 fix(runtime-dom): style binding multi value support
fix #1759
2020-08-03 17:13:17 -04:00
underfin 07ece2e926
fix(style-vars): fix css vars on component with suspense as root (#1718) 2020-07-28 15:30:18 -04:00
Evan You a28a11ef22 chore: make app root attribute consistent with scopeId attributes 2020-07-21 14:56:28 -04:00
Evan You c852bf18d7 fix(v-model): v-model listeners should not fallthrough to plain element root
fix #1643
2020-07-21 14:17:48 -04:00
Evan You 54727f9874 feat: provide ability to overwrite feature flags in esm-bundler builds
e.g. by replacing `__VUE_OPTIONS_API__` to `false` using webpack's
`DefinePlugin`, the final bundle will drop all code supporting the
options API.

This does not break existing usage, but requires the user to explicitly
configure the feature flags via bundlers to properly tree-shake the
disabled branches. As a result, users will see a console warning if
the flags have not been properly configured.
2020-07-20 21:51:30 -04:00
Evan You ad199e1a25 fix(build): make transition tree-shakeable again 2020-07-20 16:17:14 -04:00
Evan You 44e6da1402 fix(runtime-dom): unref when setting useCssVars 2020-07-15 18:31:10 -04:00
Evan You 32a4cb804b test: improve coverage 2020-07-15 10:38:45 -04:00
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 8b320cc12f fix(runtime-dom/v-on): only block event handlers based on attach timestamp
fix #1565
2020-07-13 14:50:11 -04:00
Pick 09f61b4049
types(runtime-core): adjust Renderer's type declaration (#1566) 2020-07-13 12:44:37 -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
Evan You 9f706a9f5e feat(runtime-dom): useCssVars 2020-07-09 16:25:29 -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
Evan You 9ee85a3783 chore: fix unintended import 2020-07-06 20:41:38 -04:00
underfin 425335c28b
fix(v-model): consistent nullish value handling with 2.x (#1530)
fix #1528
2020-07-06 19:02:33 -04:00
Evan You 441c23602f fix(runtime-dom): should set `<input list="...">` as attribute
fix #1526
2020-07-06 19:01: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
Evan You 7886c267f7 refactor: remove unused inheritRef option
This is technically a breaking change, but the option was not meant for public use
and ended up not solving the problem it was introduced for.
2020-07-01 15:40:11 -04:00
Evan You b3536d87a5 fix(runtime-dom): allow force updating value bindings for controlled inputs
fix #1471
2020-06-30 11:23:09 -04:00
Evan You 86d3972855 fix(transition-group): vue 2 compatible handling of transition-group w/ multiple v-for children
fix #1126
2020-06-29 18:16:10 -04:00
Evan You d32aed0906 chore: add display names for dom transition components 2020-06-29 18:16:09 -04:00
蜗牛老湿 f8c6f8c7b5
refactor(runtime-dom): insertBefore anchor null equals appendChild (#1463) 2020-06-29 13:19:31 -04:00
underfin d4cd12887e
fix(BaseTransition): collect correct children with slot passthrough in `Transition` (#1456)
fix #1455
2020-06-29 12:04:28 -04:00
Evan You bf84ac8396 fix(transition): enter/leave hook timing consistency with v2
close #1145
2020-06-25 17:56:36 -04:00
underfin 299fda46a1
test(TransitionGroup): test for `TransitionGroup` (#1269) 2020-06-25 16:38:22 -04:00
Evan You 7ae70ea44c fix(transition): fix appear hooks handling 2020-06-25 16:02:28 -04:00
Evan You acd3156d2c fix(transition): fix dom transition cancel hooks not being called 2020-06-25 15:03:58 -04:00
underfin d7beea015b
fix(v-show): fix v-show unmount with falsy value (#1403)
fix #1401
2020-06-25 10:58:31 -04:00
Evan You 4492b88938 fix: always treat spellcheck and draggable as attributes
fix #1350
2020-06-12 12:40:54 -04:00
Aneryu 90c3532946
fix(runtime-dom): compatibility for cases where event.timeStamp is 0 (#1328)
close #1325
2020-06-12 11:00:37 -04:00
underfin d4e9b19932
perf: only patch string style when value has changed (#1310)
fix #1309
2020-06-11 17:25:39 -04:00
Evan You 80c868aefe workflow: setup eslint for prohibited syntax and globals
fix #1285
2020-06-10 16:54:23 -04:00
Evan You e4dc03a8b1 feat(types): adjust type exports for manual render function and tooling usage
- v-model and v-show directives are now exposed as public
- compiler-used runtime helpers are now exposed for TS tooling, but marked as @private

close #1329
2020-06-10 14:57:21 -04:00
Evan You 38f2d23a60 feat(runtime-core): add inheritRef option + make <transition> & <keep-alive> inherit refs 2020-05-22 10:26:17 -04:00
zhangzhonghe 5a3b44caf7
chore: fix typo in comment (#1217) 2020-05-21 09:34:05 +02:00
underfin 83b7158017
fix(v-model): should not trigger updates during input composition (#1183) 2020-05-18 10:23:55 -04:00