()
| 221 | } |
| 222 | |
| 223 | func (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 | } |
no test coverage detected