mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
68ad43b819
commit
9cede8f1a4
1 changed files with 13 additions and 0 deletions
|
|
@ -213,6 +213,10 @@ func performTx(tx *Transaction) (ret *TxErr) {
|
|||
ret = tx.doUnfoldHeading(op)
|
||||
case "setAttrs":
|
||||
ret = tx.setAttrs(op)
|
||||
case "insertAttrViewBlock":
|
||||
ret = tx.insertAttrViewBlock(op)
|
||||
case "removeAttrViewBlock":
|
||||
ret = tx.removeAttrViewBlock(op)
|
||||
}
|
||||
|
||||
if nil != ret {
|
||||
|
|
@ -232,6 +236,14 @@ func performTx(tx *Transaction) (ret *TxErr) {
|
|||
return
|
||||
}
|
||||
|
||||
func (tx *Transaction) insertAttrViewBlock(operation *Operation) (ret *TxErr) {
|
||||
return
|
||||
}
|
||||
|
||||
func (tx *Transaction) removeAttrViewBlock(operation *Operation) (ret *TxErr) {
|
||||
return
|
||||
}
|
||||
|
||||
func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {
|
||||
var err error
|
||||
id := operation.ID
|
||||
|
|
@ -1021,6 +1033,7 @@ type Operation struct {
|
|||
ParentID string `json:"parentID"`
|
||||
PreviousID string `json:"previousID"`
|
||||
NextID string `json:"nextID"`
|
||||
SrcIDs []string `json:"srcIDs"` // 用于将块拖拽到属性视图中
|
||||
RetData interface{} `json:"retData"`
|
||||
|
||||
discard bool // 用于标识是否在事务合并中丢弃
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue