@@ -106,7 +106,7 @@ function toggleExpanded() {
106106
107107 <div flex =" ~ col gap-4" >
108108 <div v-for =" (action, index) in allActions" :key =" index" flex =" ~ items-center justify-between" relative >
109- <div flex =" ~ items-center gap-8" flex-1 p-4 cursor-pointer hover:bg-neutral-100 rounded-6 transition-colors f-text-xs text-neutral-800 @click =" action.onClick" >
109+ <div flex =" ~ items-center gap-8" flex-1 p-4 cursor-pointer hover:bg-neutral-100 rounded-6 transition-colors f-text-xs text-neutral-800 @click =" () => action.onClick() " >
110110 <div :class =" action.icon" />
111111 <span >{{ action.label }}</span >
112112 </div >
@@ -124,15 +124,15 @@ function toggleExpanded() {
124124 leave-from-class =" opacity-100 scale-100"
125125 leave-to-class =" opacity-0 scale-95"
126126 >
127- <div v-if =" isExpanded" absolute right-0 top =" [calc(100%+4px)]" min-w-200 bg-white rounded-8 shadow-lg border =" 1 neutral-200" z-50 py-6 @click = " isExpanded = false " >
128- <div v-for =" (option, idx) in nativeOptions" :key =" `native-${idx}`" flex =" ~ items-center gap-8" px-10 py-6 cursor-pointer hover:bg-neutral-100 transition-colors f-text-xs text-neutral-800 @click =" option.onClick" >
127+ <div v-if =" isExpanded" absolute right-0 top =" [calc(100%+4px)]" min-w-200 bg-white rounded-8 shadow-lg border =" 1 neutral-200" z-50 py-6 >
128+ <div v-for =" (option, idx) in nativeOptions" :key =" `native-${idx}`" flex =" ~ items-center gap-8" px-10 py-6 cursor-pointer hover:bg-neutral-100 transition-colors f-text-xs text-neutral-800 @click =" () => { option.onClick(); isExpanded = false } " >
129129 <div :class =" option.icon" text-14 />
130130 <span >{{ option.label }}</span >
131131 </div >
132132
133133 <Separator v-if =" nativeOptions.length > 0 && externalOptions.length > 0" my-4 h-1 bg-neutral-200 />
134134
135- <div v-for =" (option, idx) in externalOptions" :key =" `external-${idx}`" flex =" ~ items-center gap-8" px-10 py-6 cursor-pointer hover:bg-neutral-100 transition-colors f-text-xs text-neutral-800 @click =" option.onClick" >
135+ <div v-for =" (option, idx) in externalOptions" :key =" `external-${idx}`" flex =" ~ items-center gap-8" px-10 py-6 cursor-pointer hover:bg-neutral-100 transition-colors f-text-xs text-neutral-800 @click =" () => { option.onClick(); isExpanded = false } " >
136136 <div :class =" option.icon" text-14 />
137137 <span >{{ option.label }}</span >
138138 </div >
0 commit comments