mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 10:30:13 +01:00
🎨 Database column icon https://github.com/siyuan-note/siyuan/issues/9304
This commit is contained in:
parent
9468e5b038
commit
12f9042eab
1 changed files with 5 additions and 1 deletions
|
|
@ -903,7 +903,11 @@ func addAttributeViewColumn(operation *Operation) (err error) {
|
|||
keyType := av.KeyType(operation.Typ)
|
||||
switch keyType {
|
||||
case av.KeyTypeText, av.KeyTypeNumber, av.KeyTypeDate, av.KeyTypeSelect, av.KeyTypeMSelect, av.KeyTypeURL, av.KeyTypeEmail, av.KeyTypePhone, av.KeyTypeMAsset, av.KeyTypeTemplate:
|
||||
key := av.NewKey(operation.ID, operation.Name, operation.Data.(string), keyType)
|
||||
var icon string
|
||||
if nil != operation.Data {
|
||||
icon = operation.Data.(string)
|
||||
}
|
||||
key := av.NewKey(operation.ID, operation.Name, icon, keyType)
|
||||
attrView.KeyValues = append(attrView.KeyValues, &av.KeyValues{Key: key})
|
||||
|
||||
switch view.LayoutType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue