MCPcopy Create free account
hub / github.com/DTStack/molecule / getDefaultState

Method getDefaultState

src/components/select/select.tsx:114–119  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

112 }
113
114 private getDefaultState(props) {
115 return {
116 ...initialValue,
117 option: { ...Select.getSelectOption(props) },
118 };
119 }
120
121 public handleOnClickOption = (e: React.MouseEvent) => {
122 const option = e.target as HTMLDivElement;

Callers 1

constructorMethod · 0.95

Calls 1

getSelectOptionMethod · 0.80

Tested by

no test coverage detected