This commit is contained in:
Daniel 2025-07-06 16:54:55 +08:00
parent 2e444d899b
commit 05f4d2995c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 89 additions and 124 deletions

View file

@ -149,13 +149,13 @@ func (table *Table) GetFields() (ret []Field) {
return ret
}
func (table *Table) GetField(id string) Field {
func (table *Table) GetField(id string) (ret Field, fieldIndex int) {
for _, column := range table.Columns {
if column.ID == id {
return column
return column, fieldIndex
}
}
return nil
return nil, -1
}
func (*Table) GetType() LayoutType {