-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO: - 处理地址中有章节且章节就在本页的情况。 - 对于实验场和示例,不显示预览(并进行说明),但要注意处理章节变更的情 况。 - 对于语法参考,应该显示预览。 - 缩短预览。 - 被省略的部分应该有不易与内容混淆的提示。 - 如果地址中没有章节:则范围从最初开始。 - 如果地址中有章节,且对应章节存在:则范围从那个章节的标题开始。 - 如果地址中有章节,切对应的章节不存在:则应该显示相关说明。 - 预览的结尾,应该在 "从预览开头的第一个非标题元素起,遇到的第一个标题 元素" 之前。 - 在加载时显示加载指示器。 此外,之后还需要完成两件事: 1. 悬浮状态的挂件的悬浮框部分,其宽度目前会受到主要部分开头的位置的影 响,这并非预期行为。理想情况下,悬浮框的最大宽度总应该是其所处容器 的宽度,且悬浮框应尽量满足其内容的宽度。在可满足的宽度不大于从主要 部分到容器右侧边界的距离时,悬浮框应该像现在这样,其左侧应该与主要 部分的左侧对其。但当不能满足上述距离时,悬浮框的对其方式应该变为: 悬浮框的右侧贴在容器的右侧边界。 应将悬浮框固定时的实现方式回退到原先顶部偏移的方案(即悬浮时的方案), 以确保不同的显示形式之间不存在不一致。之后,悬浮框的最大宽度应该由其 容器的宽度决定。原先盛放主要部分以及固定的悬浮框的悬浮框依旧使用 inline-grid,只是原先悬浮框的改为放置一个 dummy 元素:在挂件固定时, 该元素的高度与宽度与悬浮框同步,其他情况下则不存在。 2. 改回使用顶部偏移的方案后,就可以考虑将悬浮框实现为 sticky 了。悬浮框 应该根据其外层(如果存在)的悬浮框决定为顶部预留的空白高度,以实现头 部嵌套堆叠的效果。
- Loading branch information
Showing
14 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## `domestic-internal` | ||
|
||
与 `domestic` 的区别是:这里包含的自定义元素是专用于本单页面应用的,并不<wbr /> | ||
适用于通常场景。 |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...axReference/RotextExample/create-store.ts → ...c-internal/rotext-example/create-store.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters