소스 검색

initialize states

Adam Shaw 5 년 전
부모
커밋
d3ddaabd1e
3개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages-premium
  2. 4 0
      packages/daygrid/src/Table.tsx
  3. 5 1
      packages/timegrid/src/TimeCols.tsx

+ 1 - 1
packages-premium

@@ -1 +1 @@
-Subproject commit edb2c0dcc081ee4cb8d421ef71a555ea91f45260
+Subproject commit 00d93364e0fe93060c8ac640fb74700866c41a61

+ 4 - 0
packages/daygrid/src/Table.tsx

@@ -69,6 +69,10 @@ export class Table extends DateComponent<TableProps, TableState> {
   private rowPositions: PositionCache
   private rowPositions: PositionCache
   private colPositions: PositionCache
   private colPositions: PositionCache
 
 
+  state = {
+    morePopoverState: null
+  }
+
 
 
   render() {
   render() {
     let { props } = this
     let { props } = this

+ 5 - 1
packages/timegrid/src/TimeCols.tsx

@@ -49,7 +49,7 @@ export interface TimeColsProps {
 }
 }
 
 
 interface TimeColsState {
 interface TimeColsState {
-  slatCoords?: TimeColsSlatsCoords
+  slatCoords: TimeColsSlatsCoords | null
 }
 }
 
 
 
 
@@ -62,6 +62,10 @@ export class TimeCols extends BaseComponent<TimeColsProps, TimeColsState> {
   private scrollResponder: ScrollResponder
   private scrollResponder: ScrollResponder
   private colCoords: PositionCache
   private colCoords: PositionCache
 
 
+  state = {
+    slatCoords: null
+  }
+
 
 
   render() {
   render() {
     let { props, state } = this
     let { props, state } = this