Closed XMahoniX closed 2 years ago
从获取到的数据来看,inline类型数据库和Full page数据库没有可以区分的字段。数据样例如下:
{
"object": "block",
"id": "7e168ba7-893d-4e40-9c8d-a70253bec086",
"created_time": "2022-04-15T00:51:00.000Z",
"last_edited_time": "2022-04-15T00:51:00.000Z",
"created_by": {
"object": "user",
"id": "ccca2aa3-1ee1-4285-8f1d-b01339eaf9e5"
},
"last_edited_by": {
"object": "user",
"id": "ccca2aa3-1ee1-4285-8f1d-b01339eaf9e5"
},
"has_children": false,
"archived": false,
"type": "child_database",
"child_database": {
"title": "嵌入式数据库"
}
},
{
"object": "block",
"id": "7851132c-d014-48c9-a127-c236afeb481a",
"created_time": "2022-04-15T00:51:00.000Z",
"last_edited_time": "2022-04-15T00:51:00.000Z",
"created_by": {
"object": "user",
"id": "ccca2aa3-1ee1-4285-8f1d-b01339eaf9e5"
},
"last_edited_by": {
"object": "user",
"id": "ccca2aa3-1ee1-4285-8f1d-b01339eaf9e5"
},
"has_children": false,
"archived": false,
"type": "child_database",
"child_database": {
"title": "全页面式数据库"
}
}
后续会新增配置项,可以选择将数据库以链接形式嵌入或者以内容嵌入形式,默认使用内容嵌入形式。 因为配置项有变动,所以以客户端会以1.x版本提供,改版本兼容0.x版本
OK
Notion显示:![image](https://user-images.githubusercontent.com/44489677/163309332-b6a54f1f-8134-4226-b376-9045525714df.png)
导出的显示效果:![image](https://user-images.githubusercontent.com/44489677/163309470-e77df2a5-98fd-426c-b923-b31eee80c67d.png)
想要的效果![image](https://user-images.githubusercontent.com/44489677/163309221-e784cc75-6fdc-49be-94dc-c3cd5a6a9b10.png)
导出之后块数据库页面会直接显示在了主页上,而不是跟上面那个一样显示的另一个文档的路径链接
测试页面:https://xmahonix.notion.site/206a4fc146cc47608a76f3325c0ace3f