mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 移动折叠标题后自动展开 https://github.com/siyuan-note/siyuan/issues/6673
This commit is contained in:
parent
f23cd5005d
commit
5afffdb0f7
3 changed files with 34 additions and 0 deletions
|
|
@ -52,6 +52,20 @@ func swapBlockRef(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func getHeadingChildrenIDs(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
ids := model.GetHeadingChildrenIDs(id)
|
||||
ret.Data = ids
|
||||
}
|
||||
|
||||
func getHeadingChildrenDOM(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue