File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 44
55Simplify the definition of emits.
66
7+ For Vue >= 3.3, this feature will be turned off by default.
8+
79| Features | Supported |
810| :--------: | :----------------: |
911| Vue 3 | :white_check_mark : |
Original file line number Diff line number Diff line change 22
33<small >稳定性: <code class =" !text-green-600 " >稳定</code ></small >
44
5- 简化 ` emits ` 的定义
5+ 简化 ` emits ` 的定义。
6+
7+ 在 Vue >= 3.3 中,此功能将默认关闭。
68
79| 特性 | 功能 |
810| :--------: | :----------------: |
Original file line number Diff line number Diff line change @@ -164,7 +164,11 @@ function resolveOptions({
164164 root,
165165 } ) ,
166166 setupSFC : resolveSubOptions < 'setupSFC' > ( setupSFC , { version } ) ,
167- shortEmits : resolveSubOptions < 'shortEmits' > ( shortEmits , { version } ) ,
167+ shortEmits : resolveSubOptions < 'shortEmits' > (
168+ shortEmits ,
169+ { version } ,
170+ version < 3.3
171+ ) ,
168172 singleDefine : resolveSubOptions < 'singleDefine' > ( singleDefine , {
169173 isProduction,
170174 version,
You can’t perform that action at this time.
0 commit comments