src/components/dropdown/index.vue
@@ -62,6 +62,7 @@ option.toLowerCase().includes(this.searchText.toLowerCase()) ); }, }, watch:{ selectedOptions:{ @@ -103,6 +104,11 @@ filterOptions() { this.showDropdown = true; }, //暴露 changeSelectData(value){ this.selectedOptions = value } }, }; </script>