Skip to content

Commit dbb66f5

Browse files
authored
fix: resolve dropdown manual position demo lint error (#7541)
1 parent 5f09de9 commit dbb66f5

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/dropdown/demos/enUS/manual-position.demo.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ function onClickoutside() {
8080
message.info('clickoutside')
8181
showDropdown.value = false
8282
}
83+
84+
function handleUpdateShow(show: boolean) {
85+
showDropdown.value = show
86+
}
8387
</script>
8488

8589
<template>
@@ -97,7 +101,7 @@ function onClickoutside() {
97101
:options="options"
98102
:show="showDropdown"
99103
:on-clickoutside="onClickoutside"
100-
@update:show="(v) => (showDropdown = v)"
104+
@update:show="handleUpdateShow"
101105
@select="handleSelect"
102106
/>
103107
</template>

src/dropdown/demos/zhCN/manual-position.demo.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ function onClickoutside() {
8080
message.info('clickoutside')
8181
showDropdown.value = false
8282
}
83+
84+
function handleUpdateShow(show: boolean) {
85+
showDropdown.value = show
86+
}
8387
</script>
8488

8589
<template>
@@ -97,7 +101,7 @@ function onClickoutside() {
97101
:options="options"
98102
:show="showDropdown"
99103
:on-clickoutside="onClickoutside"
100-
@update:show="(v) => (showDropdown = v)"
104+
@update:show="handleUpdateShow"
101105
@select="handleSelect"
102106
/>
103107
</template>

0 commit comments

Comments
 (0)