Explorar el Código

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 hace 7 meses
padre
commit
a04ef1132b
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. 6 3
      src/views/recruit/enterprise/talentMap/components/filter.vue

+ 6 - 3
src/views/recruit/enterprise/talentMap/components/filter.vue

@@ -37,7 +37,7 @@ const formItems = ref({
       placeholder: '请输入要匹配内容',
       clearable: true,
       outlined: true,
-      autofocus: false,
+      // autofocus: false,
     },
     {
       type: 'autocomplete',
@@ -83,8 +83,6 @@ const resetValue = () => {
 const setValue = (query) => {
   formItems.value.options.forEach(e => {
     if (query[e.key] !== undefined) e.value = query[e.key]
-    // console.log('CtFormRef', CtFormRef.value)
-    // if (e.key === 'content') e.autofocus = true
   })
 }
 
@@ -96,6 +94,11 @@ const handleReset = () => {
 const open = (query) => {
   if (Object.keys(query).length) setValue(query)
   else resetValue()
+  // nextTick(() => {
+  //   formItems.value.options.forEach(e => {
+  //     if (e.key === 'content') e.autofocus = true // 自动聚焦
+  //   }) 
+  // })
 }
 
 defineExpose({