refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
@@ -312,7 +312,7 @@ export class FramePanelBody extends SignalWatcher(
|
||||
const after = frames[insertIndex]?.props.presentationIndex || null;
|
||||
selectedFrames.forEach(frame => {
|
||||
const newIndex = generateKeyBetweenV2(before, after);
|
||||
frame.doc.updateBlock(frame, {
|
||||
frame.store.updateBlock(frame, {
|
||||
presentationIndex: newIndex,
|
||||
});
|
||||
before = newIndex;
|
||||
|
||||
@@ -112,7 +112,7 @@ export class FramePreview extends WithDisposable(ShadowlessElement) {
|
||||
};
|
||||
|
||||
get _originalDoc() {
|
||||
return this.frame.doc;
|
||||
return this.frame.store;
|
||||
}
|
||||
|
||||
private _initPreviewDoc() {
|
||||
|
||||
@@ -52,7 +52,7 @@ export class OutlineBlockPreview extends SignalWatcher(
|
||||
if (delta.attributes?.reference) {
|
||||
// If linked doc, render linked doc icon and the doc title.
|
||||
const refAttribute = delta.attributes.reference;
|
||||
const refMeta = block.doc.workspace.meta.docMetas.find(
|
||||
const refMeta = block.store.workspace.meta.docMetas.find(
|
||||
doc => doc.id === refAttribute.pageId
|
||||
);
|
||||
const unavailable = !refMeta;
|
||||
|
||||
Reference in New Issue
Block a user