@v2coding/ui 0.1.15 → 0.1.16

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.
@@ -2768,8 +2768,16 @@ var script$A = {
2768
2768
  this.query = query;
2769
2769
  },
2770
2770
 
2771
- onBlur() {
2772
- this.query = '';
2771
+ async delay() {
2772
+ let ms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2773
+ return new Promise(resolve => setTimeout(resolve, ms));
2774
+ },
2775
+
2776
+ async onVisibleChange(visible) {
2777
+ if (!visible) {
2778
+ await this.delay(300);
2779
+ this.query = '';
2780
+ }
2773
2781
  }
2774
2782
 
2775
2783
  }
@@ -2806,7 +2814,7 @@ var __vue_render__$A = function () {
2806
2814
  },
2807
2815
  on: {
2808
2816
  "input": _vm.onChange,
2809
- "blur": _vm.onBlur
2817
+ "visible-change": _vm.onVisibleChange
2810
2818
  }
2811
2819
  }, 'el-select', _vm.$attrs, false), _vm._listeners), [_vm._l(_vm.displayOptions, function (item) {
2812
2820
  return _c('el-option', _vm._b({
@@ -2859,7 +2867,7 @@ var __vue_render__$A = function () {
2859
2867
  },
2860
2868
  on: {
2861
2869
  "input": _vm.onChange,
2862
- "blur": _vm.onBlur
2870
+ "visible-change": _vm.onVisibleChange
2863
2871
  }
2864
2872
  }, 'el-select', _vm.$attrs, false), _vm._listeners), [_vm._l(_vm.displayOptions, function (item) {
2865
2873
  return _c('el-option', _vm._b({
@@ -2909,7 +2917,7 @@ var __vue_staticRenderFns__$A = [];
2909
2917
 
2910
2918
  const __vue_inject_styles__$B = function (inject) {
2911
2919
  if (!inject) return;
2912
- inject("data-v-525e6b24_0", {
2920
+ inject("data-v-5ed62eec_0", {
2913
2921
  source: ".ui-field-select .el-select{width:100%}.ui-field-select .el-input-group--append .el-select .el-input.is-focus .el-input__inner{border-color:var(--color-primary)}.ui-field-select .empty{font-size:12px;color:#909399;display:flex;align-items:center}.ui-field-select .el-loading-mask .el-loading-spinner{margin-top:-14px}",
2914
2922
  map: undefined,
2915
2923
  media: undefined