forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
a9e0b246d5
commit
ed03368f5d
14
tableView.go
14
tableView.go
|
@ -454,13 +454,10 @@ func (table *tableViewData) set(tag string, value any) bool {
|
||||||
delete(table.properties, tag)
|
delete(table.properties, tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
case DataNode:
|
case DataObject:
|
||||||
switch value.Type() {
|
|
||||||
case ObjectNode:
|
|
||||||
obj := value.Object()
|
|
||||||
params := Params{}
|
params := Params{}
|
||||||
for k := 0; k < obj.PropertyCount(); k++ {
|
for k := 0; k < value.PropertyCount(); k++ {
|
||||||
if prop := obj.Property(k); prop != nil && prop.Type() == TextNode {
|
if prop := value.Property(k); prop != nil && prop.Type() == TextNode {
|
||||||
params[prop.Tag()] = prop.Text()
|
params[prop.Tag()] = prop.Text()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -470,6 +467,11 @@ func (table *tableViewData) set(tag string, value any) bool {
|
||||||
delete(table.properties, tag)
|
delete(table.properties, tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case DataNode:
|
||||||
|
switch value.Type() {
|
||||||
|
case ObjectNode:
|
||||||
|
return table.set(tag, value.Object())
|
||||||
|
|
||||||
case TextNode:
|
case TextNode:
|
||||||
table.properties[tag] = value.Text()
|
table.properties[tag] = value.Text()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue