doway-coms 2.9.1 → 2.9.4

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": "2.9.1",
3
+ "version": "2.9.4",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -26,7 +26,7 @@
26
26
  :edit-config="{
27
27
  trigger: 'manual',
28
28
  mode: 'row',
29
- activeMethod: activeCellMethod,
29
+ beforeEditMethod: activeCellMethod,
30
30
  showStatus: true,
31
31
  showUpdateStatus: true,
32
32
  showInsertStatus: true,
@@ -62,7 +62,7 @@
62
62
  :checkbox-config="checkboxConfig"
63
63
  :expand-config="expandConfig"
64
64
  @edit-closed="editClosedEvent"
65
- @edit-actived="editActived"
65
+ @edit-activated="editActived"
66
66
  @filter-visible="filterVisible"
67
67
  :sort-config="{
68
68
  multiple: true,
@@ -1293,7 +1293,7 @@ export default {
1293
1293
  if(this.keyBoardNavi){
1294
1294
  const key=$event.key
1295
1295
  //当前行
1296
- const record= $grid.getActiveRecord()
1296
+ const record= $grid.getEditRecord()
1297
1297
  if(!record)return
1298
1298
  const fullData= $grid.getTableData().fullData
1299
1299
  const currentIndex= $grid.getRowIndex(record.row)
@@ -1305,20 +1305,20 @@ export default {
1305
1305
  switch (key) {
1306
1306
  case 'ArrowUp':
1307
1307
  row= fullData[currentIndex-1]
1308
- $grid.setActiveCell(row,record.column)
1308
+ $grid.setEditCell(row,record.column)
1309
1309
  $grid.setCurrentRow(row)
1310
1310
  break;
1311
1311
  case 'ArrowDown':
1312
1312
  row= fullData[currentIndex+1]
1313
- $grid.setActiveCell(row,record.column)
1313
+ $grid.setEditCell(row,record.column)
1314
1314
  $grid.setCurrentRow(row)
1315
1315
  break;
1316
1316
  case 'ArrowLeft':
1317
1317
  row= record.row
1318
1318
  //左右移动的需要手动focus下
1319
1319
  if(columns[visibleColIndex-1].field){
1320
- $grid.setActiveCell(row,columns[visibleColIndex-1].field).then(()=>{
1321
- this.editActived($grid.getActiveRecord())
1320
+ $grid.setEditCell(row,columns[visibleColIndex-1].field).then(()=>{
1321
+ this.editActived($grid.getEditRecord())
1322
1322
  })
1323
1323
  }
1324
1324
  break;
@@ -1326,8 +1326,8 @@ export default {
1326
1326
  row= record.row
1327
1327
  //左右移动的需要手动focus下
1328
1328
  if(columns[visibleColIndex+1].field){
1329
- $grid.setActiveCell(row,columns[visibleColIndex+1].field).then(()=>{
1330
- this.editActived($grid.getActiveRecord())
1329
+ $grid.setEditCell(row,columns[visibleColIndex+1].field).then(()=>{
1330
+ this.editActived($grid.getEditRecord())
1331
1331
  })
1332
1332
  }
1333
1333
  break;
@@ -2155,13 +2155,13 @@ export default {
2155
2155
  case 38: //向上
2156
2156
  if (0 < currentRowIndex - 1) {
2157
2157
  targetRow = scope.data[currentRowIndex - 1]
2158
- this.$refs.baseGrid.setActiveCell(targetRow, columnTag)
2158
+ this.$refs.baseGrid.setEditCell(targetRow, columnTag)
2159
2159
  }
2160
2160
  break
2161
2161
  case 40: //向下
2162
2162
  if (scope.data.length > currentRowIndex + 1) {
2163
2163
  targetRow = scope.data[currentRowIndex + 1]
2164
- this.$refs.baseGrid.setActiveCell(targetRow, columnTag)
2164
+ this.$refs.baseGrid.setEditCell(targetRow, columnTag)
2165
2165
  }
2166
2166
  break
2167
2167
  }
@@ -2694,7 +2694,7 @@ export default {
2694
2694
  }
2695
2695
  let insertRow = await this.$refs.baseGrid.insertAt(row, index)
2696
2696
  if (autoSelect === true) {
2697
- this.$refs.baseGrid.setActiveRow(row)
2697
+ this.$refs.baseGrid.setEditRow(row)
2698
2698
  this.$refs.baseGrid.setCurrentRow(row)
2699
2699
  this.$emit('currentChange', row)
2700
2700
  }
@@ -2712,7 +2712,7 @@ export default {
2712
2712
  }
2713
2713
 
2714
2714
  if (autoSelect === true) {
2715
- vm.$refs.baseGrid.setActiveRow(row)
2715
+ vm.$refs.baseGrid.setEditRow(row)
2716
2716
  vm.$refs.baseGrid.setCurrentRow(row)
2717
2717
  // vm.rows.push(row)
2718
2718
  vm.$emit('currentChange', row)
@@ -2985,9 +2985,9 @@ export default {
2985
2985
  }
2986
2986
  // column.editRender.enabled = false
2987
2987
  if (column.editRender && column.editRender.enabled === true) {
2988
- this.$refs.baseGrid.setActiveCell(row, column)
2988
+ this.$refs.baseGrid.setEditCell(row, column)
2989
2989
  } else {
2990
- this.$refs.baseGrid.setActiveRow(row)
2990
+ this.$refs.baseGrid.setEditRow(row)
2991
2991
  }
2992
2992
  },
2993
2993
  customSetActive(id) {