mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-15 13:18:51 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
1d37134df2
1 changed files with 7 additions and 0 deletions
|
|
@ -545,6 +545,13 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
||||||
kValues.Values = append(kValues.Values, &av.Value{ID: ast.NewNodeID(), KeyID: kValues.Key.ID, BlockID: blockID, Type: av.KeyTypeCreated})
|
kValues.Values = append(kValues.Values, &av.Value{ID: ast.NewNodeID(), KeyID: kValues.Key.ID, BlockID: blockID, Type: av.KeyTypeCreated})
|
||||||
case av.KeyTypeUpdated:
|
case av.KeyTypeUpdated:
|
||||||
kValues.Values = append(kValues.Values, &av.Value{ID: ast.NewNodeID(), KeyID: kValues.Key.ID, BlockID: blockID, Type: av.KeyTypeUpdated})
|
kValues.Values = append(kValues.Values, &av.Value{ID: ast.NewNodeID(), KeyID: kValues.Key.ID, BlockID: blockID, Type: av.KeyTypeUpdated})
|
||||||
|
case av.KeyTypeNumber:
|
||||||
|
for _, v := range kValues.Values {
|
||||||
|
if nil != v.Number {
|
||||||
|
v.Number.Format = kValues.Key.NumberFormat
|
||||||
|
v.Number.FormatNumber()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if 0 < len(kValues.Values) {
|
if 0 < len(kValues.Values) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue