refactor: remove field.f.PrepareView
This commit is contained in:
parent
924e74cb58
commit
e48e850fa3
1 changed files with 0 additions and 7 deletions
|
|
@ -61,7 +61,6 @@ type Field struct {
|
|||
Children []*Field
|
||||
Constraints []validation.Constraint
|
||||
Errors []validation.Error
|
||||
PrepareView func() map[string]any
|
||||
BeforeMount func(data any) (any, error)
|
||||
BeforeBind func(data any) (any, error)
|
||||
Validate func(f *Field) bool
|
||||
|
|
@ -81,12 +80,6 @@ func NewField(name, widget string) *Field {
|
|||
Data: nil,
|
||||
}
|
||||
|
||||
f.PrepareView = func() map[string]any {
|
||||
m := make(map[string]any)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
f.BeforeMount = func(data any) (any, error) {
|
||||
return data, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue