mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15644
This commit is contained in:
parent
2899e3851d
commit
bbc788cfa5
1 changed files with 4 additions and 0 deletions
|
|
@ -225,6 +225,10 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
|
|||
newValue.Block.Content = content
|
||||
case av.KeyTypeText:
|
||||
newValue.Text.Content = content
|
||||
case av.KeyTypeNumber:
|
||||
num, _ := strconv.ParseFloat(strings.Split(content, " - ")[0], 64)
|
||||
newValue.Number.Content = num
|
||||
newValue.Number.IsNotEmpty = true
|
||||
case av.KeyTypeURL:
|
||||
newValue.URL.Content = content
|
||||
case av.KeyTypeEmail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue