瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父節點
當前提交
c2e2f37f87
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      kernel/av/av.go
  2. 1 1
      kernel/sql/database.go

+ 3 - 3
kernel/av/av.go

@@ -40,9 +40,9 @@ type AttributeView struct {
 	Rows    []*Row    `json:"rows"`    // 表格行记录
 
 	Type        AttributeViewType      `json:"type"`        // 属性视图类型
-	Projections []string               `json:"projections"` // 显示的列名,SELECT *
-	Filters     []*AttributeViewFilter `json:"filters"`     // 过滤规则,WHERE ...
-	Sorts       []*AttributeViewSort   `json:"sorts"`       // 排序规则,ORDER BY ...
+	Projections []string               `json:"projections"` // 显示的列名
+	Filters     []*AttributeViewFilter `json:"filters"`     // 过滤规则
+	Sorts       []*AttributeViewSort   `json:"sorts"`       // 排序规则
 }
 
 // AttributeViewType 描述了属性视图的类型。

+ 1 - 1
kernel/sql/database.go

@@ -710,7 +710,7 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
 		markdown = treenode.ExportNodeStdMd(n, luteEngine)
 		content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
 		fc := treenode.FirstLeafBlock(n)
-		fcontent = treenode.NodeStaticContent(fc, nil, false, false)
+		fcontent = treenode.NodeStaticContent(fc, nil, true, false)
 		parentID = n.Parent.ID
 		// 将标题块作为父节点
 		if h := heading(n); nil != h {