MCPcopy
hub / github.com/baidu/amis / constructor

Method constructor

packages/amis-core/src/renderers/wrapControl.tsx:132–322  ·  view source on GitHub ↗
(props: OuterProps)

Source from the content-addressed store, hash-verified

130 });
131
132 constructor(props: OuterProps) {
133 super(props);
134
135 const {
136 formStore: form,
137 formItem,
138 rootStore,
139 store,
140 onChange,
141 data,
142 inputGroupControl,
143 colIndex,
144 rowIndex,
145 $schema: {
146 id,
147 type,
148 required,
149 validations,
150 validationErrors,
151 unique,
152 value,
153 extraName,
154 multiple,
155 delimiter,
156 valueField,
157 labelField,
158 joinValues,
159 extractValue,
160 selectFirst,
161 autoFill,
162 clearValueOnHidden,
163 validateApi,
164 minLength,
165 maxLength,
166 validateOnChange,
167 label,
168 pagination
169 }
170 } = this.props;
171
172 this.getValue = this.getValue.bind(this);
173 this.setValue = this.setValue.bind(this);
174 this.handleChange = this.handleChange.bind(this);
175 this.setPrinstineValue = this.setPrinstineValue.bind(this);
176 this.controlRef = this.controlRef.bind(this);
177 this.handleBlur = this.handleBlur.bind(this);
178 this.validate = this.validate.bind(this);
179 this.flushChange = this.flushChange.bind(this);
180 this.renderChild = this.renderChild.bind(this);
181 let name =
182 this.props.$schema.name ||
183 (ComposedComponent.defaultProps as Record<string, unknown>)?.name;
184
185 // 如果 name 是表达式
186 // 扩充 each 用法
187 if (isExpression(name)) {
188 name = tokenize(name, data);
189 }

Callers

nothing calls this directly

Calls 9

isExpressionFunction · 0.90
tokenizeFunction · 0.90
guidFunction · 0.90
str2rulesFunction · 0.90
injectObjectChainFunction · 0.90
replaceMethod · 0.80
setInitialValueMethod · 0.80
onChangeFunction · 0.50
dispatchEventMethod · 0.45

Tested by

no test coverage detected