mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 Improve database field default filling https://github.com/siyuan-note/siyuan/issues/15549
This commit is contained in:
parent
bcbd895303
commit
ff077158dc
2 changed files with 52 additions and 25 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue