mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 19:10:49 +08:00
🎨 Update av https://ld246.com/article/1703831044435
This commit is contained in:
parent
23fd11ae12
commit
2db7c5167d
@ -742,6 +742,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
|
|||||||
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
|
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
|
||||||
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
|
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
|
||||||
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
|
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
|
||||||
|
case av.KeyTypeRelation: // 清空关联列值,后面再渲染 https://ld246.com/article/1703831044435
|
||||||
|
if nil != tableCell.Value && nil != tableCell.Value.Relation {
|
||||||
|
tableCell.Value.Relation.Contents = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
treenode.FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
|
treenode.FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
|
||||||
|
@ -698,6 +698,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
|
|||||||
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
|
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeCreated}
|
||||||
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
|
case av.KeyTypeUpdated: // 填充更新时间列值,后面再渲染
|
||||||
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
|
tableCell.Value = &av.Value{ID: tableCell.ID, KeyID: col.ID, BlockID: rowID, Type: av.KeyTypeUpdated}
|
||||||
|
case av.KeyTypeRelation: // 清空关联列值,后面再渲染 https://ld246.com/article/1703831044435
|
||||||
|
if nil != tableCell.Value && nil != tableCell.Value.Relation {
|
||||||
|
tableCell.Value.Relation.Contents = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
|
FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
|
||||||
|
Loading…
Reference in New Issue
Block a user