这里为什么要用const innerValue=ref(props.modelValue)
来源:12-4 Input 编码第二部分支持 v-model

qq_慕妹2034599
2024-10-29
这里为什么要单独引入一个innerValue呢?直接 可以吗
写回答
1回答
-
张轩
2024-10-30
同学你好
因为这里要创建一个内部状态,直接修改 props 是不允许的
00
相似问题
这里为什么要用const innerValue=ref(props.modelValue)
来源:12-4 Input 编码第二部分支持 v-model
qq_慕妹2034599
2024-10-29
这里为什么要单独引入一个innerValue呢?直接 可以吗
1回答
张轩
2024-10-30
同学你好
因为这里要创建一个内部状态,直接修改 props 是不允许的
相似问题