classcard-ui 0.2.142 → 0.2.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.142",
3
+ "version": "0.2.143",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -157,7 +157,11 @@ export default {
157
157
  this.emitSearch(e.target.value);
158
158
  },
159
159
  emitSearch: debounce(function (value) {
160
- this.$emit("search", value);
160
+ if (value !== this.value.label) {
161
+ this.$emit("search", value);
162
+ } else {
163
+ this.$emit("search", "");
164
+ }
161
165
  }, 500),
162
166
  handleOptionClick(option) {
163
167
  this.$emit("input", option);