mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15644
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user