doway-coms 2.7.1 → 2.7.3

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.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -39,7 +39,7 @@
39
39
  {{ moment(currentValue).format("YYYY-MM-DD") }}
40
40
  </template>
41
41
  <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
42
- {{ moment(currentValue).format("YYYY-MM-DD") }}
42
+ {{ currentValue?moment(currentValue).format("YYYY-MM-DD"):currentValue }}
43
43
  </span>
44
44
  </Tooltip>
45
45
  </div>
@@ -2001,7 +2001,7 @@ export default {
2001
2001
  }
2002
2002
  if (originCol.controlType === controlType.date) {
2003
2003
  colParams['pastDate'] = originCol.pastDate == undefined ? true : false
2004
- colParams['disabledDateValue'] =
2004
+ colParams['disabledDateValue'] =
2005
2005
  originCol.disabledDateValue == undefined ? 0: originCol.disabledDateValue
2006
2006
  }
2007
2007
  colParams['disableUserVisible'] = originCol.disableUserVisible === true
@@ -2429,7 +2429,7 @@ export default {
2429
2429
  editActived(scope) {
2430
2430
  let colElId = scope.column.id
2431
2431
  let rowElId = scope.row._X_ROW_KEY
2432
- //如果用了rowConfig里的keyField
2432
+ //如果用了rowConfig里的keyField
2433
2433
  if(this.rowConfig!=null&&this.rowConfig.keyField){
2434
2434
  rowElId=scope.row[this.rowConfig.keyField]
2435
2435
  }
@@ -3313,6 +3313,7 @@ export default {
3313
3313
  let tempObject = vm.defaultPostData.fields.find(
3314
3314
  (x) => x.field == item.field
3315
3315
  )
3316
+ if (!tempObject) return
3316
3317
  let tempData = {
3317
3318
  field: item.field,
3318
3319
  sort: index + 1,