File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments