cnhis-design-vue 3.1.22-beta.6 → 3.1.22-beta.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.
@@ -537,7 +537,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
537
537
  const day = `00${d.getDate()}`.slice(-2);
538
538
  const todayTime = new Date(`${d.getFullYear()}-${month}-${day} 23:59:59`).getTime();
539
539
  const pointTime = new Date(`${getXValue(x)}:00`).getTime();
540
- if (pointTime < new Date(hospitalizationDate).getTime() || pointTime > todayTime)
540
+ if (hospitalizationDate && pointTime < new Date(hospitalizationDate).getTime() || pointTime > todayTime)
541
541
  return false;
542
542
  return true;
543
543
  }
@@ -34,7 +34,7 @@ export interface IPropItems {
34
34
  xScalevalueHeight: number;
35
35
  topList: IDate[];
36
36
  breathingHeight: number;
37
- hospitalizationDate: string;
37
+ hospitalizationDate?: string;
38
38
  grid: IGrid;
39
39
  top: ITop;
40
40
  left: ILeft;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.22-beta.6",
3
+ "version": "3.1.22-beta.8",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -66,5 +66,5 @@
66
66
  "iOS 7",
67
67
  "last 3 iOS versions"
68
68
  ],
69
- "gitHead": "d0c2a35d6c077af7ed4e7e874cd57bfecae1e138"
69
+ "gitHead": "668fe14bb24fc850cea13e3a7b213c5792fbcccc"
70
70
  }