wzg %!s(int64=2) %!d(string=hai) anos
pai
achega
9bc9735ae4
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/components/ShipSearch.vue

+ 4 - 3
src/components/ShipSearch.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <el-autocomplete
   <el-autocomplete
-    v-model="value"
+    v-model="currentValue"
     :fetch-suggestions="getSelectList"
     :fetch-suggestions="getSelectList"
     :placeholder="placeholder"
     :placeholder="placeholder"
     @select="selectItem"
     @select="selectItem"
@@ -36,6 +36,7 @@ export default {
   },
   },
   emits: ["input", "selectItem"],
   emits: ["input", "selectItem"],
   setup(props, { emit }) {
   setup(props, { emit }) {
+    let currentValue = ref(props.value);
     let selectStr = ref("");
     let selectStr = ref("");
     const getSelectList = _.debounce(
     const getSelectList = _.debounce(
       async (queryString, cb) => {
       async (queryString, cb) => {
@@ -70,10 +71,10 @@ export default {
       clear,
       clear,
       selectItem,
       selectItem,
       handleInput,
       handleInput,
+      currentValue,
     };
     };
   },
   },
 };
 };
 </script>
 </script>
 
 
-<style lang="scss" scoped>
-</style>
+<style lang="scss" scoped></style>