Bug Type: Component
Environment
- Vue Version:
3.3.4
- Element Plus Version:
2.3.7
- Browser / OS:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
- Build Tool:
Vite
Reproduction
Related Component
el-checkbox-group
Reproduction Link
Element Plus Playground
Steps to reproduce
点击提交
What is Expected?
checkboxGroup1 变成原始数组,解除响应式
What is actually happening?
没有丢失响应式
Additional comments
(empty)
1条答案
按热度按时间rsl1atfo1#
你是用ref定义的这些变量,就算不经过组件他也是响应式对象,ref有deep reactive的功能,根据实际情况使用不同方式的声明响应式对象,可以看看下面这个demo。
demo