doway-coms 1.4.6 → 1.4.8

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": "doway-coms",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -303,7 +303,7 @@
303
303
  .displayValues"
304
304
  :key="$index"
305
305
  >
306
- <a-input allowClear v-model="loopFilterValue.value[0]" />
306
+ <a-input allowClear v-model="loopFilterValue.value[0]" @keyup.enter.native="filterConfirm(scope.column)" />
307
307
  </div>
308
308
  <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
309
309
  <a-button @click="filterConfirm(scope.column)">确认</a-button>
@@ -321,11 +321,13 @@
321
321
  :precision="0"
322
322
  size="small"
323
323
  v-model="loopFilterValue.value[0]"
324
+ @keyup.enter.native="filterConfirm(scope.column)"
324
325
  />~
325
326
  <a-input-number
326
327
  :precision="0"
327
328
  size="small"
328
329
  v-model="loopFilterValue.value[1]"
330
+ @keyup.enter.native="filterConfirm(scope.column)"
329
331
  />
330
332
  </div>
331
333
  <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
@@ -345,6 +347,7 @@
345
347
  overflow: 'auto',
346
348
  maxWidth: '100px'
347
349
  }"
350
+ @keyup.enter.native="filterConfirm(scope.column)"
348
351
  >
349
352
  <br />
350
353
  <a-checkbox
@@ -393,6 +396,7 @@
393
396
  }"
394
397
  placeholder="开始时间"
395
398
  v-model="loopFilterValue.value[0]"
399
+ @keyup.enter.native="filterConfirm(scope.column)"
396
400
  />
397
401
  <a-date-picker
398
402
  valueFormat="YYYY-MM-DD HH:mm:ss"
@@ -405,6 +409,7 @@
405
409
  }"
406
410
  placeholder="结束时间"
407
411
  v-model="loopFilterValue.value[1]"
412
+ @keyup.enter.native="filterConfirm(scope.column)"
408
413
  />
409
414
  </div>
410
415
  <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
@@ -424,12 +429,14 @@
424
429
  format="YYYY-MM-DD"
425
430
  placeholder="开始时间"
426
431
  v-model="loopFilterValue.value[0]"
432
+ @keyup.enter.native="filterConfirm(scope.column)"
427
433
  />
428
434
  <a-date-picker
429
435
  valueFormat="YYYY-MM-DD"
430
436
  format="YYYY-MM-DD"
431
437
  placeholder="结束时间"
432
438
  v-model="loopFilterValue.value[1]"
439
+ @keyup.enter.native="filterConfirm(scope.column)"
433
440
  />
434
441
  </div>
435
442
  <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
@@ -2233,6 +2240,7 @@ export default {
2233
2240
  this.setFilterExpression();
2234
2241
  //通知外部筛选改变事件
2235
2242
  this.$emit("filterChange", { filterCol: colInfo });
2243
+ this.$refs.baseGrid.clearFilter()
2236
2244
  },
2237
2245
  setFilterExpression() {
2238
2246
  XEUtils.clear(this.filterExpression);
@@ -2340,10 +2348,10 @@ export default {
2340
2348
  //设置第一个输入框光标选中
2341
2349
  let tempClassName = column.field + "_filter_0";
2342
2350
  setTimeout(() => {
2343
- document
2344
- .getElementsByClassName(tempClassName)[0]
2345
- .children[0].select();
2346
- document.getElementsByClassName(tempClassName)[0].children[0].focus();
2351
+ // document
2352
+ // .getElementsByClassName(tempClassName)[0]
2353
+ // .children[0].select();
2354
+ // document.getElementsByClassName(tempClassName)[0].children[0].focus();
2347
2355
  }, 10);
2348
2356
  }
2349
2357
  },
@@ -343,6 +343,7 @@ import {
343
343
  InputGroup,
344
344
  Input,
345
345
  InputNumber,
346
+ Popconfirm,
346
347
  } from 'ant-design-vue'
347
348
  import { controlType } from "../../utils/enum";
348
349
  import moment from "moment";
@@ -360,6 +361,7 @@ export default {
360
361
  Input,
361
362
  InputGroup: Input.Group,
362
363
  InputNumber,
364
+ Popconfirm,
363
365
  },
364
366
  computed: {
365
367
  ...mapGetters(["controlSize"]),