fix: update selectors

This commit is contained in:
Qiuxia Fan
2022-01-22 14:35:52 +08:00
parent 84d689e5d4
commit 31765e5df3
3 changed files with 27 additions and 35 deletions

View File

@@ -33,7 +33,7 @@ limitations under the License. -->
</el-select>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ref, watch } from "vue";
import type { PropType } from "vue";
import { ElSelect, ElOption } from "element-plus";
@@ -70,6 +70,12 @@ function changeSelected() {
);
emit("change", options);
}
watch(
() => props.value,
(data) => {
selected.value = data;
}
);
</script>
<style lang="scss" scope>
.icon {