Evan You
|
74387929cd
|
chore: update defineModel comment docs [ci skip]
|
2023-12-12 17:04:16 +08:00 |
Evan You
|
f74785bc4a
|
feat(defineModel): support local mutation by default, remove local option
ref https://github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278
|
2023-12-12 16:47:34 +08:00 |
Evan You
|
7e60d1058f
|
perf: use sync watcher for defineModel local mode
ref https://github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278
|
2023-12-12 13:49:23 +08:00 |
Evan You
|
982a145d38
|
chore: Merge branch 'main' into minor
|
2023-12-11 22:03:28 +08:00 |
三咲智子 Kevin Deng
|
096ba81817
|
feat(types): expose `DefineProps` type
|
2023-12-09 00:34:28 +08:00 |
Evan You
|
b4ac0e6ac1
|
chore(dx): fix defineProps jsdoc + update defineEmits jsdoc example
|
2023-12-07 14:30:32 +08:00 |
zqran
|
f15debc01a
|
fix(types): return type of withDefaults should be readonly (#8601)
|
2023-11-10 15:20:02 +08:00 |
Carlos Rodrigues
|
94c049d930
|
fix(types): remove optional properties from defineProps return type (#6421)
close #6420
|
2023-11-09 14:52:28 +08:00 |
zqran
|
f07cb18fed
|
fix(types): correct withDefaults return type for boolean prop with undefined default value (#8602)
|
2023-07-11 18:35:22 +08:00 |
Phentom
|
f0691e4581
|
chore: typo (#8345) [ci skip]
|
2023-05-19 07:59:09 +08:00 |
Carlos Rodrigues
|
216f26995b
|
fix(types): support generic usage with withDefaults + defineProps (#8335)
fix #8310
fix #8331
fix #8325
|
2023-05-17 09:25:48 +08:00 |
Cédric Exbrayat
|
ab9256a4bb
|
chore: fix typos in defineOptions (#8277)
|
2023-05-11 19:34:27 +08:00 |
Evan You
|
1279b17300
|
fix(types): remove short syntax support in defineSlots()
ref: https://github.com/vuejs/language-tools/issues/2758
|
2023-05-08 11:53:49 +08:00 |
Himself65
|
c94ef02421
|
fix(runtime-core): properly merge props and emits options from mixins (#8052)
close #7989
|
2023-04-10 15:06:21 +08:00 |
三咲智子 Kevin Deng
|
14f3d747a3
|
feat(sfc): introduce `defineModel` macro and `useModel` helper (#8018)
|
2023-04-08 12:13:05 +08:00 |
Evan You
|
91a931ae87
|
fix(types): improve defineProps return type with generic arguments
|
2023-04-05 17:21:31 +08:00 |
三咲智子 Kevin Deng
|
5a2f5d59cf
|
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option (#7982)
|
2023-04-03 16:49:16 +08:00 |
Evan You
|
dfb21a5363
|
chore: add docs links for sfc macros
|
2023-04-02 10:02:33 +08:00 |
Evan You
|
4af5d1b075
|
feat(sfc): revert withDefaults() deprecation
In some cases, the user still needs access to the full props object,
in such cases withDefaults() is still needed.
|
2023-03-31 08:53:15 +08:00 |
Evan You
|
8876dccf42
|
feat(sfc): support more ergnomic defineEmits type syntax (#7992)
|
2023-03-30 19:24:32 +08:00 |
Evan You
|
ba9c2ae247
|
feat(compiler-sfc): enable reactive props destructure by default and deprecate withDefaults() (#7986)
|
2023-03-30 11:58:16 +08:00 |
Evan You
|
e10a89e608
|
fix(compiler-sfc): fix function default value handling w/ props destructure
|
2023-03-29 22:21:27 +08:00 |
三咲智子 Kevin Deng
|
93f77292c9
|
fix(compiler-sfc): disallow `expose` property in `defineOptions` (#7967)
|
2023-03-28 17:32:37 +08:00 |
三咲智子 Kevin Deng
|
bcf5841dde
|
feat(compiler-sfc): add defineOptions macro (#5738)
|
2023-03-28 10:43:51 +08:00 |
Evan You
|
c288c7b0bd
|
fix(types): ensure defineProps with generics return correct types
|
2023-03-26 15:58:04 +08:00 |
Evan You
|
4c9bfd2b99
|
feat(dx): improve readability of displayed types for props
|
2023-03-24 15:06:43 +08:00 |
Evan You
|
1ddde63b40
|
build: adjust dts test setup
|
2023-02-03 17:10:31 +08:00 |
三咲智子 Kevin Deng
|
a0a010ddc9
|
fix(types): optional boolean props should have boolean type in return type of defineProps (#7619)
close #7116
fix #5847
fix #7487
|
2023-02-01 21:57:28 -05:00 |
littleboarx
|
168c857247
|
fix(sfc/types): improve the type inference using withDefaults (#6764)
fix #6552
|
2022-11-07 21:59:31 -05:00 |
Alex Kozack
|
b5462822d6
|
fix(sfc/types): allow use default factory for primitive types in `withDefaults` (#5939)
fix #5938
|
2022-05-22 20:28:39 -04:00 |
Yugang Cao
|
e603fd258c
|
chore: fix typo (#5261) [ci skip]
|
2022-01-21 01:18:34 -05:00 |
Noel De Martin
|
34985fee6b
|
feat(types/script-setup): add generic type to defineExpose (#5035)
|
2021-12-05 23:25:35 -05:00 |
Thorsten Lünborg
|
f2d2d7b2d2
|
fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value. (#4979)
fix #4868
|
2021-11-25 04:33:29 -05:00 |
Cathrine Vaage
|
04e5835196
|
fix(types/sfc): fix withDefaults type inference when using union types (#4925)
|
2021-11-14 22:09:00 -05:00 |
Evan You
|
467e113b95
|
feat(compiler-sfc): `<script setup>` defineProps destructure transform (#4690)
|
2021-09-27 14:24:21 -04:00 |
edison
|
5594643d7b
|
fix(compiler-sfc): fix script setup ref assignment codegen edge case (#4520)
fix #4514
|
2021-09-05 18:02:50 -04:00 |
Evan You
|
47f488350c
|
chore: run updated prettier
|
2021-07-19 18:24:18 -04:00 |
Evan You
|
1bab53e717
|
chore: remove deprecated defineEmit & useContext APIs
|
2021-07-16 16:56:51 -04:00 |
Anthony Fu
|
f5617fc3bb
|
feat(reactivity): new effectScope API (#2195)
|
2021-07-16 14:30:49 -04:00 |
Evan You
|
03e26845e2
|
fix(sfc): fix `<script setup>` async context preservation logic
fix #4050
|
2021-07-06 14:31:53 -04:00 |
Evan You
|
438754a0d1
|
fix(build): avoid using async/await syntax
|
2021-07-02 08:06:25 -04:00 |
Evan You
|
9ee41e14d2
|
fix: prevent withAsyncContext currentInstance leak in edge cases
|
2021-06-29 14:22:18 -04:00 |
Evan You
|
0240e82a38
|
feat(sfc): auto restore current instance after await statements in async setup()
|
2021-06-29 09:24:12 -04:00 |
Evan You
|
ef5c41523f
|
types: fix global helpers dts generation
|
2021-06-26 21:47:18 -04:00 |
Evan You
|
004bd18cf7
|
feat(sfc/types): make `<script setup>` helper types available globally
|
2021-06-26 21:12:26 -04:00 |
Evan You
|
4c5844a9ca
|
feat(sfc): withDefaults helper
|
2021-06-26 21:11:57 -04:00 |
Evan You
|
3ffc7be864
|
chore(sfc-playground): ignore duplicate logs
|
2021-06-25 19:31:47 -04:00 |
Evan You
|
1675b6d723
|
fix: defineExpose type definition and runtime warning
|
2021-06-25 16:18:21 -04:00 |
Evan You
|
ac853ff4ab
|
test: fix script setup helpers tests
|
2021-06-23 10:31:32 -04:00 |
Evan You
|
63e9e2e9aa
|
feat(sfc): useAttrs + useSlots
Deprecate useContext
|
2021-06-22 21:07:42 -04:00 |