MCPcopy Create free account
hub / github.com/Monibuca/engine / GetFormily

Method GetFormily

config/formily.go:223–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221}
222
223func (config *Config) GetFormily() (r Object) {
224 var fromItems = make(map[string]any)
225 r.Type = "object"
226 r.Properties = map[string]any{
227 "layout": Card{
228 Type: "void",
229 Component: "FormLayout",
230 ComponentProps: map[string]any{
231 "labelCol": 4,
232 "wrapperCol": 20,
233 },
234 Properties: fromItems,
235 },
236 }
237 for i, v := range config.props {
238 if strings.HasPrefix(v.tag.Get("desc"), "废弃") {
239 continue
240 }
241 fromItems[v.name] = v.schema(i)
242 }
243 return
244}

Callers 1

API_getConfigMethod · 0.80

Calls 2

schemaMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected