Skip to content

Commit bdf7050

Browse files
committed
[fix] Fixed ListView focus behavior.
1 parent 2e72131 commit bdf7050

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/packages/list-view/source/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ const props = defineProps({
161161
162162
defineExpose({
163163
move: (...args) => proxy.move(...args),
164-
setFocus: (...args) => proxy.focus(...args),
165-
setBlur: (...args) => proxy.blur(...args)
164+
setFocus: (...args) => proxy.setFocus(...args),
165+
setBlur: (...args) => proxy.setBlur(...args)
166166
});
167167
</script>
168168

@@ -580,10 +580,10 @@ export default {
580580
root: this.thisValue
581581
});
582582
},
583-
focus() {
583+
setFocus() {
584584
this.focus = true;
585585
},
586-
blur() {
586+
setBlur() {
587587
this.focus = false;
588588
},
589589
inspectItemAPI(cur) {

0 commit comments

Comments
 (0)