<script>options api与<script setup>一起使用时,v-model生产模式构建错误
Vue version
3.2.27
Link to minimal reproduction
Steps to reproduce
- 点击
show
按钮 - 点击
hide
按钮 - 出现错误提示
showAddDialog is not defined
What is expected?
生产模式能与开发模式保持一直,能正确构建出 v-model
的语法糖代码。
What is actually happening?
生产模式能构建出了错误的代码,
//....
{
show: e.showDialogAdd,
"onUpdate:show": s[1] || (s[1] = u=>B(showDialogAdd) ? showDialogAdd.value = u : null),
roles: e.adminRoles,
onAfterAdd: e.onSubmit
}
//....
System Info
No response
Any additional comments?
No response