mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 16:06:13 +01:00
🎨 Improve database table view template col sorting https://ld246.com/article/1702871433047
This commit is contained in:
parent
5ff968412a
commit
89d1b7c28a
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ func (value *Value) String() string {
|
||||||
if nil == value.Text {
|
if nil == value.Text {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return value.Text.Content
|
return strings.TrimSpace(value.Text.Content)
|
||||||
case KeyTypeNumber:
|
case KeyTypeNumber:
|
||||||
if nil == value.Number {
|
if nil == value.Number {
|
||||||
return ""
|
return ""
|
||||||
|
|
@ -122,7 +122,7 @@ func (value *Value) String() string {
|
||||||
if nil == value.Template {
|
if nil == value.Template {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return value.Template.Content
|
return strings.TrimSpace(value.Template.Content)
|
||||||
case KeyTypeCreated:
|
case KeyTypeCreated:
|
||||||
if nil == value.Created {
|
if nil == value.Created {
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue