bxs-tools-ui 1.2.3 → 1.2.5

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.
@@ -1,6 +1,12 @@
1
1
  <template>
2
2
  <div class="bxt-person-info">
3
- <bxs-form class="bxt-person-info-form" ref="personForm" :model="personForm" :is-content-vertical-alignment="false">
3
+ <bxs-form
4
+ class="bxt-person-info-form"
5
+ ref="personForm"
6
+ :model="personForm"
7
+ :is-content-vertical-alignment="false"
8
+ @submit.native.prevent="closeKeyBoard()"
9
+ >
4
10
  <template v-for="ele in personData.eleOrderList">
5
11
  <template v-if="['cmCommonTitle'].includes(ele.componentName)">
6
12
  <bxs-form-item :key="ele.key">
@@ -187,7 +193,11 @@ export default class BxtPersonInfo extends Vue {
187
193
  }
188
194
  return bool;
189
195
  }
190
- change(ele = {}) {
196
+ onClickIcon(id) {
197
+ const inputDom: any = document.querySelector(`#${id}`);
198
+ inputDom.focus();
199
+ }
200
+ change(ele: any = {}) {
191
201
  const allPersonsData = this.inputData && this.inputData.personData;
192
202
  const productGroupList = this.inputData && this.inputData.productGroupList;
193
203
 
@@ -203,9 +213,19 @@ export default class BxtPersonInfo extends Vue {
203
213
  });
204
214
  }
205
215
  }
206
- window.WeiyiStatSDK && window.WeiyiStatSDK.submit(`${this.personData.key}_${ele.key}`);
216
+ if (this.personData.key && ele.key && !['age'].includes(ele.key)) {
217
+ window.WeiyiStatSDK && window.WeiyiStatSDK.submit(`${this.personData.key}_${ele.key}`);
218
+ }
207
219
  this.$emit('change', this.personData, ele);
208
220
  }
221
+ closeKeyBoard() {
222
+ const activeElement: any = document.activeElement;
223
+ if (!activeElement) {
224
+ return false;
225
+ }
226
+ activeElement.blur();
227
+ return false;
228
+ }
209
229
  }
210
230
  </script>
211
231
  <style lang="postcss">
@@ -12,6 +12,7 @@
12
12
  ]"
13
13
  :model="productForm[ins.key]"
14
14
  :is-content-vertical-alignment="true"
15
+ @submit.native.prevent="closeKeyBoard()"
15
16
  >
16
17
  <template v-for="ele in ins.eleOrderList">
17
18
  <template v-if="['cmCommonTitle'].includes(ele.componentName)">
@@ -392,6 +393,14 @@ export default class BxtProductInfo extends Vue {
392
393
  }
393
394
  return Promise.resolve(validateInfo);
394
395
  }
396
+ closeKeyBoard() {
397
+ const activeElement: any = document.activeElement;
398
+ if (!activeElement) {
399
+ return false;
400
+ }
401
+ activeElement.blur();
402
+ return false;
403
+ }
395
404
  }
396
405
  </script>
397
406
  <style>