Xiao_123 10 달 전
부모
커밋
1d3d96707c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/components/FormUI/TextInput/index.vue

+ 5 - 0
src/components/FormUI/TextInput/index.vue

@@ -28,6 +28,7 @@
       @click:append="appendClick"
       @click:append-inner="appendInnerClick"
       @keyup.enter="handleKeyup"
+      @click:clear="handleClear"
     ></v-text-field>
   </div>
 </template>
@@ -63,6 +64,10 @@ const appendInnerClick = () => {
   emit('appendInnerClick', value.value)
 }
 
+const handleClear = () => {
+  emit('enter', value.value)
+}
+
 const handleKeyup = () => {
   emit('enter', value.value)
 }