Browse Source

失去焦点触发

DESKTOP-MINPJAU\Administrator 3 years ago
parent
commit
30c8f288dd
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/xc/select/XcSelect.vue

+ 5 - 1
src/components/xc/select/XcSelect.vue

@@ -140,7 +140,11 @@ const focus = () => {
   xcselect.focus()
 }
 
-defineExpose({focus})
+const blur = () => {
+  xcselect.blur()
+}
+
+defineExpose({focus, blur})
 
 onMounted(() => {
   // 判断组件是否使用了 slot