doway-coms 1.5.14 → 1.6.0

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.5.14",
3
+ "version": "1.6.0",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1,9 +1,10 @@
1
1
  <template>
2
2
  <div class="d-form-items">
3
+ <!-- <div @click="hiddenDetail = !hiddenDetail">展开</div> -->
3
4
  <div
4
5
  class="d-form-item"
5
6
  v-for="col in internalComputedHiddenCols"
6
- :key="col.field"
7
+ :key="col.field" v-show="(hiddenDetail?colIndex===0:true)"
7
8
  >
8
9
  <!-- 文本框输入控件 -->
9
10
  <BaseInput
@@ -371,6 +372,7 @@ export default {
371
372
  filters: {},
372
373
  data() {
373
374
  return {
375
+ hiddenDetail:false,
374
376
  moment,
375
377
  editFormName: "",
376
378
  internalEdit: false,
@@ -121,8 +121,6 @@
121
121
  <div
122
122
  v-for="loopItem in row.items"
123
123
  :key="loopItem.id"
124
- :name="'gantt-bar'+loopItem.taskId"
125
- :id="'gantt-bar'+loopItem.id"
126
124
  class="gantt-bar"
127
125
  @mouseenter="ganttBarMouseEnter($event, loopItem, rowIndex)"
128
126
  @mouseleave="ganttBarMouseLeave($event, loopItem)"
@@ -450,11 +448,9 @@ export default {
450
448
  evt.clientY + evt.target.offsetHeight - evt.offsetY // (rowIndex + 1) * this.rowHeight
451
449
  this.ganttBarTooltip.item = ordInfo
452
450
  this.ganttBarTooltip.show = true
453
- this.$emit('mouseEnter',ordInfo)
454
451
  },
455
452
  ganttBarMouseLeave(evt, ordInfo) {
456
453
  this.ganttBarTooltip.show = false
457
- this.$emit('mouseLeave',ordInfo)
458
454
  },
459
455
  bodyScroll(scrollInfo) {
460
456
  if (scrollInfo.isX === true) {
@@ -364,47 +364,41 @@
364
364
  </template>
365
365
  <template #select_filter="scope">
366
366
  <div class="interceptor-class">
367
- <a-checkbox-group
368
- v-model="scope.column.filters[0].data.displayValues"
369
- @keyup.enter.native="filterConfirm(scope.column)"
370
- >
371
- <a-input placeholder="请输入搜索内容" @change="displayValueSearchTextChange(scope.column)" v-model="scope.column.filters[0].data.displayValueSearchText" :addon-before="'已选'+scope.column.filters[0].data.displayValues.length"/>
372
- <div style="max-height:200px;overflow-y:scroll">
373
- <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
374
- <a-checkbox
375
- v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
376
- :value="loopSource.value"
377
- style="margin: 5px 0;"
378
- >{{ loopSource.caption }}
379
- </a-checkbox>
367
+ <a-checkbox-group
368
+ v-model="scope.column.filters[0].data.displayValues"
369
+ @keyup.enter.native="filterConfirm(scope.column)"
370
+ >
371
+ <a-input placeholder="请输入搜索内容" @change="displayValueSearchTextChange(scope.column)" v-model="scope.column.filters[0].data.displayValueSearchText" :addon-before="'已选'+scope.column.filters[0].data.displayValues.length"/>
372
+ <div style="max-height:200px;overflow-y:scroll">
373
+ <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
374
+ <a-checkbox
375
+ v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
376
+ :value="loopSource.value"
377
+ style="margin: 5px 0;"
378
+ >{{ loopSource.caption }}
379
+ </a-checkbox>
380
+ </div>
380
381
  </div>
381
- </div>
382
- </a-checkbox-group>
382
+ </a-checkbox-group>
383
+ <!-- <a-select-->
384
+ <!-- v-model="scope.column.filters[0].data.displayValues"-->
385
+ <!-- mode="multiple"-->
386
+ <!-- allowClear-->
387
+ <!-- style="width: 300px;"-->
388
+ <!-- placeholder="筛选条件"-->
389
+ <!-- showArrow-->
390
+ <!-- >-->
391
+ <!-- <a-select-option-->
392
+ <!-- v-for="loopSource in scope.column.params.dataSource"-->
393
+ <!-- :key="loopSource.value"-->
394
+ <!-- :value="loopSource.value"-->
395
+ <!-- >{{ loopSource.caption }}</a-select-option-->
396
+ <!-- >-->
397
+ <!-- </a-select>-->
383
398
  <br>
384
399
  <a-button @click="filterConfirm(scope.column)">确认</a-button>
385
400
  </div>
386
401
  </template>
387
- <template #checkbox_filter="scope">
388
- <div class="interceptor-class">
389
- <a-checkbox-group
390
- v-model="scope.column.filters[0].data.displayValues"
391
- @keyup.enter.native="filterConfirm(scope.column)"
392
- >
393
- <div style="max-height:200px;overflow-y:scroll">
394
- <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
395
- <a-checkbox
396
- v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
397
- :value="loopSource.value"
398
- style="margin: 5px 0;"
399
- >{{ loopSource.caption }}
400
- </a-checkbox>
401
- </div>
402
- </div>
403
- </a-checkbox-group>
404
- <br>
405
- <a-button @click="filterConfirm(scope.column)">确认</a-button>
406
- </div>
407
- </template>
408
402
  <template #datetime_filter="scope">
409
403
  <div class="interceptor-class">
410
404
  <div
@@ -1348,12 +1342,7 @@ export default {
1348
1342
  if (!originCol.controlType) {
1349
1343
  originCol.controlType = controlType.text;
1350
1344
  }
1351
- if (originCol.controlType === controlType.checkbox) {
1352
- originCol.dataSource = [
1353
- {caption:'是',value: true},
1354
- {caption:'否',value: false}
1355
- ]
1356
- }
1345
+
1357
1346
  if (originCol.controlType === controlType.customRadio) {
1358
1347
  colInfo["type"] = "radio";
1359
1348
  customSlot["radio"] = "customRadio";
@@ -2360,7 +2349,7 @@ export default {
2360
2349
  this.$set(col.filters[0].data,'bindingValues',[])
2361
2350
  colInfo.filters[0].data.bindingValues = [];
2362
2351
  XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
2363
- if (colInfo.params.controlType === controlType.select || colInfo.params.controlType === controlType.checkbox) {
2352
+ if (colInfo.params.controlType === controlType.select) {
2364
2353
  colInfo.filters[0].data.bindingValues.push(item);
2365
2354
  this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2366
2355
  } else {
@@ -2446,7 +2435,7 @@ export default {
2446
2435
  //筛选条件过滤
2447
2436
  let colFilterExpression = { operator: "or", expressions: [] };
2448
2437
 
2449
- if (loopColInfo.params.controlType === controlType.select || loopColInfo.params.controlType === controlType.checkbox) {
2438
+ if (loopColInfo.params.controlType === controlType.select) {
2450
2439
  colFilterExpression.expressions.push({
2451
2440
  field: loopColInfo.field,
2452
2441
  operator: "IN",
@@ -2702,6 +2691,9 @@ export default {
2702
2691
  ::v-deep .ant-btn {
2703
2692
  margin: 10px 10px 0;
2704
2693
  }
2694
+ ::v-deep .ant-input {
2695
+ margin-bottom: 5px;
2696
+ }
2705
2697
  ::v-deep .ant-calendar-picker {
2706
2698
  margin: 0 5px;
2707
2699
  }
@@ -43,7 +43,7 @@
43
43
  pageSizeOptions: {
44
44
  type: Array,
45
45
  default: function() {
46
- return [10, 20 ,50, 100, 150, 200]
46
+ return [10, 20 ,50, 100, 150, 200,500,1000]
47
47
  }
48
48
  },
49
49
  totalRows: {