🐛(component): table 组件 selected-keys 属性 watch 需要 deep 监听
This commit is contained in:
@@ -237,7 +237,7 @@ export default {
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { ref, watch } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
@@ -287,6 +287,10 @@ export default {
|
||||
console.log(JSON.stringify(data))
|
||||
}
|
||||
|
||||
watch(selectedKeys5, () => {
|
||||
console.log("复选框监听:" + selectedKeys5.value);
|
||||
})
|
||||
|
||||
return {
|
||||
columns5,
|
||||
dataSource5,
|
||||
|
||||
Reference in New Issue
Block a user