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 4
4
5
5
Simplify the definition of emits.
6
6
7
+ For Vue >= 3.3, this feature will be turned off by default.
8
+
7
9
| Features | Supported |
8
10
| :--------: | :----------------: |
9
11
| Vue 3 | :white_check_mark : |
Original file line number Diff line number Diff line change 2
2
3
3
<small >稳定性: <code class =" !text-green-600 " >稳定</code ></small >
4
4
5
- 简化 ` emits ` 的定义
5
+ 简化 ` emits ` 的定义。
6
+
7
+ 在 Vue >= 3.3 中,此功能将默认关闭。
6
8
7
9
| 特性 | 功能 |
8
10
| :--------: | :----------------: |
Original file line number Diff line number Diff line change @@ -164,7 +164,11 @@ function resolveOptions({
164
164
root,
165
165
} ) ,
166
166
setupSFC : resolveSubOptions < 'setupSFC' > ( setupSFC , { version } ) ,
167
- shortEmits : resolveSubOptions < 'shortEmits' > ( shortEmits , { version } ) ,
167
+ shortEmits : resolveSubOptions < 'shortEmits' > (
168
+ shortEmits ,
169
+ { version } ,
170
+ version < 3.3
171
+ ) ,
168
172
singleDefine : resolveSubOptions < 'singleDefine' > ( singleDefine , {
169
173
isProduction,
170
174
version,
You can’t perform that action at this time.
0 commit comments