mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
323b9345fc
commit
a2152fd423
2 changed files with 20 additions and 2 deletions
|
|
@ -682,6 +682,15 @@ type ValueSelect struct {
|
|||
Color string `json:"color"` // 1-14
|
||||
}
|
||||
|
||||
func MSelectRemoveOption(mSelect []*ValueSelect, opt string) (ret []*ValueSelect) {
|
||||
for _, s := range mSelect {
|
||||
if s.Content != opt {
|
||||
ret = append(ret, s)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func MSelectExistOption(mSelect []*ValueSelect, opt string) bool {
|
||||
for _, s := range mSelect {
|
||||
if s.Content == opt {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue