🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/15549

This commit is contained in:
Daniel 2025-08-12 21:22:10 +08:00
parent bcbd895303
commit ff077158dc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 52 additions and 25 deletions

View file

@ -595,6 +595,15 @@ type ValueSelect struct {
Color string `json:"color"`
}
func MSelectExistOption(mSelect []*ValueSelect, opt string) bool {
for _, s := range mSelect {
if s.Content == opt {
return true
}
}
return false
}
type ValueURL struct {
Content string `json:"content"`
}