Commit Graph

165 Commits

Author SHA1 Message Date
Doctor Wu b3f8b5a4e7
fix(runtime-dom): avoid unset option's value (#10416)
close #10412
re-fix #10396
2024-02-28 19:07:12 +08:00
zhoulixiang e2d323538e
fix(runtime-dom): v-bind style should clear previous css string value (#10373)
close #10352
2024-02-25 20:53:00 +08:00
zhoulixiang c224897dd4
fix(runtime-dom): ensure v-show respects display value set via v-bind (#10297)
close #10151
2024-02-09 10:17:35 +08:00
Evan You 2cd5b05c3b revert: fix(runtime-dom): ensure v-show respects display value set via v-bind (#10161)
This reverts commit 9b19f09121.

close #10294
reopen #10151
2024-02-09 08:30:51 +08:00
Doctor Wu 9b19f09121
fix(runtime-dom): ensure v-show respects display value set via v-bind (#10161)
close #10151
2024-02-07 12:54:21 +08:00
Evan You 2ffb956efe perf(v-model): optimize v-model multiple select w/ large lists
close #10014
2024-01-18 19:55:15 +08:00
Evan You 07b19a53a5 test: test case for style binding w/ object value + v-show
ref #10074
2024-01-11 17:14:49 +08:00
Evan You ceb215e45d test: update vShow tests to workaround jsdom regression 2024-01-08 15:03:10 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You 5ec937723a chore: Merge branch 'main' into minor 2023-12-24 22:50:06 +08:00
丶远方 1b522cae07
chore(test): replace deprecated `SpyInstance` import with the latest `MockInstance` (#9889) 2023-12-22 21:55:43 +08:00
Evan You 95f6fffea2 chore: Merge branch 'main' into minor 2023-12-19 18:16:16 +08:00
Thorsten Lünborg 04d2c05054
fix(runtime-dom): cache event handlers by key/modifiers (#9851)
close #9849
2023-12-16 21:54:37 +08:00
Evan You 9f64d2b681 chore: Merge branch 'main' into minor 2023-12-16 14:37:21 +08:00
丶远方 0a387dfb1d
fix(sfc/cssVars): fix loss of CSS v-bind variables when setting inline style with string value (#9824)
close #9821
2023-12-15 09:56:01 +08:00
Evan You 982a145d38 chore: Merge branch 'main' into minor 2023-12-11 22:03:28 +08:00
Fabian Gündel d42b6ba3f5
feat: MathML support (#7836)
close #7820
2023-12-08 18:25:01 +08:00
Evan You 5b002869c5 fix(runtime-dom): fix width and height prop check condition
close #9762
2023-12-07 10:09:26 +08:00
zhoulixiang bfc1838f31
fix(runtime-dom): set width/height with units as attribute (#8781)
Technically, width / height on `<img>`, `<video>` etc must be integers and cannot contain units. When set as a DOM property, the DOM force converts strings with units to 0. However, this is such a common mistake that most browsers nowadays supports such usage, and it makes sense for Vue to at least let it be set as an attribute.
2023-11-30 17:27:23 +08:00
白雾三语 40f4b77bb5
fix(v-model): avoid overwriting number input with same value (#7004)
close #7003
2023-11-09 15:14:38 +08:00
丶远方 f32ec17131
chore: remove unnecessary imports from vitest (#8562) 2023-10-26 16:34:14 +08:00
白雾三语 8f0472c9ab
fix(runtime-core): fix error when using cssvars with disabled teleport (#7341)
close #7342
2023-10-20 16:34:11 +08:00
丶远方 2ffe3d5b3e
refactor: use symbol for private properties (#8681) 2023-08-22 16:57:15 +08:00
zqran 736cf154cc
chore(test): replace deprecated `initEvent` (#8490) 2023-07-11 17:38:32 +08:00
Lioness100 6277cb994a
chore: fix typo (#7693) 2023-06-10 17:17:41 +08:00
丶远方 b01fc7ea84
chore: remove unnecessary imports (#8262) 2023-05-19 07:54:12 +08:00
linghaoSu 4495373d28
fix(runtime-dom): check attribute value when setting option value (#8246)
fix #8227
2023-05-08 15:26:14 +08:00
丶远方 3294e50b0b
chore: update tests to use expect.toBeInstanceOf (#8154) 2023-05-08 14:34:24 +08:00
Evan You e077e6f5f3 workflow: disable threads during tests 2023-02-02 22:08:37 +08:00
Evan You c1cbb747b5 chore: fix types 2023-02-02 15:27:29 +08:00
三咲智子 Kevin Deng 734b06a124
test: fix await patch prop case (#7600) 2023-02-01 08:59:50 +01:00
Evan You 4ee0dad0fe wip(vitest-migration): runtime-dom tests passing + use environmentMatchGlobs 2023-01-26 21:35:50 +08:00
Evan You 8867bb259a wip(vitest-migration): reactivity tests passing 2023-01-26 15:25:55 +08:00
yurj26 b7cfa6f539
fix(runtime-dom): style update error when component use shorthand properties (#7425)
* fix(runtime-dom): style update error when component use shorthand properties

* test(runtime-dom): style update with shorthand properties
2023-01-09 15:16:08 +01:00
白雾三语 c6e5bda27d
fix(customElement): customElement can emit event (#7296)
close https://github.com/vuejs/core/issues/7293
2022-12-23 22:32:21 +01:00
Evan You 24964dab25 test: test case for #6966 2022-11-11 17:06:50 +08:00
Thorsten Lünborg 55382aed58
fix(custom-elements): define declared properties in constructor (#5328) 2022-11-11 02:46:01 -05:00
Evan You 89f37ceb62 fix(custom-elements): fix number type props casting check
fix #5793
adapted from #5794
2022-11-11 15:20:28 +08:00
Evan You afe889999c fix(custom-elements): properties set pre-upgrade should not show up in $attrs 2022-11-11 14:42:42 +08:00
Evan You 5e50909100 fix(custom-elements): should not reflect non-decalred properties set before upgrade 2022-11-11 14:14:55 +08:00
Thorsten Lünborg 665f2ae121
fix(custom-elements): fix event emitting for async custom elements (#5601)
fix #5599
2022-11-10 23:33:17 -05:00
Thorsten Lünborg 0b39e46192
fix(custom-elements): also dispatch hyphenated version of emitted events (#5378)
fix #5373
2022-11-10 23:01:10 -05:00
Thorsten Lünborg 192dcb648c
fix(custom-elements): ensure custom elements can inherit provides from ancestors (#5098)
fix #5096
2022-11-10 21:33:17 -05:00
Evan You 11214eedd2 fix(teleport/css-v-bind): fix css v-bind in teleport in child component slot 2022-11-10 15:08:25 +08:00
Evan You 42239cf284 fix(teleport/css-v-bind): fix css v-bind for teleported content
fix #4605
close #4609 (used tests from this PR)
2022-11-10 14:41:45 +08:00
skirtle 9a816dcec0
dx(runtime-dom): warn when a style value ends in a semicolon (#7062) 2022-11-09 08:16:34 -05:00
Thorsten Lünborg f67bb500b6
fix(runtime-dom): ensure customElement handles empty props correctly. (#6182)
fix Scoped attribute in Vue file affects the use of web component #6163,#6895
2022-11-01 09:49:06 +01:00
Thorsten Lünborg b0b74a160c
fix(runtime-core): custom-element: ensure number casting of camelCase props. (fix: #5374) (#5377) 2022-10-22 11:20:46 +02:00
Evan You 5ee40532a6 fix(runtime-dom): fix event timestamp check in iframes
fix #2513
fix #3933
close #5474
2022-10-14 16:00:03 +08:00
Evan You b1817fe9ee fix(runtime-dom): fix unnecessary warning when setting coerced dom property value
fix #6616
2022-09-27 16:39:15 +08:00