MCPcopy Create free account
hub / github.com/ElemeFE/element-react / constructor

Method constructor

src/date-picker/BasePicker.jsx:83–93  ·  view source on GitHub ↗
(props: BasePickerProps, _type: string, state: any = {})

Source from the content-addressed store, hash-verified

81 }
82
83 constructor(props: BasePickerProps, _type: string, state: any = {}) {
84 require_condition(typeof _type === 'string')
85 super(props);
86
87 this.type = _type// type need to be set first
88 this.state = Object.assign({}, state, {
89 pickerVisible: false,
90 }, this.propsToState(props))
91
92 this.clickOutsideId = 'clickOutsideId_' + idGen.next()
93 }
94
95 // ---: start, abstract methods
96 // (state, props)=>ReactElement

Callers

nothing calls this directly

Calls 3

propsToStateMethod · 0.95
require_conditionFunction · 0.90
nextMethod · 0.45

Tested by

no test coverage detected