@@ -1,6 +1,6 @@
<template>
<el-autocomplete
- v-model="value"
+ v-model="currentValue"
:fetch-suggestions="getSelectList"
:placeholder="placeholder"
@select="selectItem"
@@ -36,6 +36,7 @@ export default {
},
emits: ["input", "selectItem"],
setup(props, { emit }) {
+ let currentValue = ref(props.value);
let selectStr = ref("");
const getSelectList = _.debounce(
async (queryString, cb) => {
@@ -71,6 +72,7 @@ export default {
clear,
selectItem,
handleInput,
+ currentValue,
};
@@ -26,10 +26,7 @@
</template>
<script>
import { defineComponent, computed, ref, onMounted, watch } from "vue";
-import {
- ElMessage,
- ElNotification,
-} from "_element-plus@1.1.0-beta.24@element-plus";
+import { ElMessage, ElNotification } from "element-plus";
import store from "../store/index";
export default defineComponent({