API > @blocksuite/store > BaseBlockModel
Class: BaseBlockModel<Props>
​
Extends ​
Props
Constructors ​
constructor ​
new BaseBlockModel<
Props
>():BaseBlockModel
<Props
>
Type parameters ​
Parameter | Default |
---|---|
Props extends object | object |
Returns ​
BaseBlockModel
< Props
>
Inherited from ​
MagicProps()<Props>.constructor
Defined In ​
packages/store/src/schema/base.ts:168
Properties ​
childrenUpdated ​
childrenUpdated:
Slot
<void
>
Defined In ​
packages/store/src/schema/base.ts:191
created ​
created:
Slot
<void
>
Defined In ​
packages/store/src/schema/base.ts:188
deleted ​
deleted:
Slot
<void
>
Defined In ​
packages/store/src/schema/base.ts:189
flavour ​
flavour:
string
Defined In ​
packages/store/src/schema/base.ts:178
id ​
id:
string
Defined In ​
packages/store/src/schema/base.ts:181
keys ​
keys:
string
[]
Defined In ​
packages/store/src/schema/base.ts:183
page ​
page:
Page
Defined In ​
packages/store/src/schema/base.ts:180
propsUpdated ​
propsUpdated:
Slot
< {key
:string
;} >
Defined In ​
packages/store/src/schema/base.ts:190
role ​
role:
"root"
|"hub"
|"content"
Defined In ​
packages/store/src/schema/base.ts:179
text ​
optional
text:Text
Defined In ​
packages/store/src/schema/base.ts:186
yBlock ​
yBlock:
YBlock
Defined In ​
packages/store/src/schema/base.ts:182
Accessors ​
childMap ​
get
childMap():Map
<string
,number
>
Defined In ​
packages/store/src/schema/base.ts:193
children ​
get
children():BaseBlockModel
<object
>[]
Defined In ​
packages/store/src/schema/base.ts:200
Methods ​
clone ​
clone():
BaseBlockModel
<Props
>
Returns ​
BaseBlockModel
< Props
>
Defined In ​
packages/store/src/schema/base.ts:247
dispose ​
dispose():
void
Returns ​
void
Defined In ​
packages/store/src/schema/base.ts:240
firstChild ​
firstChild():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Defined In ​
packages/store/src/schema/base.ts:222
isEmpty ​
isEmpty():
boolean
Returns ​
boolean
Defined In ​
packages/store/src/schema/base.ts:218
lastChild ​
lastChild():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Defined In ​
packages/store/src/schema/base.ts:226
lastItem ​
lastItem():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Defined In ​
packages/store/src/schema/base.ts:233