mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15590
This commit is contained in:
parent
8c3837deaa
commit
e1fca0674d
2 changed files with 6 additions and 6 deletions
|
|
@ -75,12 +75,12 @@ func (value *Value) String(format bool) string {
|
|||
if nil == value.Block {
|
||||
return ""
|
||||
}
|
||||
return value.Block.Content
|
||||
return strings.TrimSpace(value.Block.Content)
|
||||
case KeyTypeText:
|
||||
if nil == value.Text {
|
||||
return ""
|
||||
}
|
||||
return value.Text.Content
|
||||
return strings.TrimSpace(value.Text.Content)
|
||||
case KeyTypeNumber:
|
||||
if nil == value.Number {
|
||||
return ""
|
||||
|
|
@ -113,17 +113,17 @@ func (value *Value) String(format bool) string {
|
|||
if nil == value.URL {
|
||||
return ""
|
||||
}
|
||||
return value.URL.Content
|
||||
return strings.TrimSpace(value.URL.Content)
|
||||
case KeyTypeEmail:
|
||||
if nil == value.Email {
|
||||
return ""
|
||||
}
|
||||
return value.Email.Content
|
||||
return strings.TrimSpace(value.Email.Content)
|
||||
case KeyTypePhone:
|
||||
if nil == value.Phone {
|
||||
return ""
|
||||
}
|
||||
return value.Phone.Content
|
||||
return strings.TrimSpace(value.Phone.Content)
|
||||
case KeyTypeMAsset:
|
||||
if 1 > len(value.MAsset) {
|
||||
return ""
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ func renderAttributeViewGroups(viewable av.Viewable, attrView *av.AttributeView,
|
|||
|
||||
fixDev := false
|
||||
for _, groupView := range view.Groups {
|
||||
if ("" == groupView.GetGroupValue() || nil == groupView.GroupKey) && !fixDev {
|
||||
if (nil == groupView.GroupVal || nil == groupView.GroupKey) && !fixDev {
|
||||
// TODO 分组上线后删除,预计 2025 年 9 月后可以删除
|
||||
regenAttrViewGroups(attrView, "force")
|
||||
av.SaveAttributeView(attrView)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue