Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
程序yang
unidocs-zh
提交
682ad9e6
U
unidocs-zh
项目概览
程序yang
/
unidocs-zh
与 Fork 源项目一致
Fork自
DCloud / unidocs-zh
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
682ad9e6
编写于
3月 08, 2022
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: resolve release render
上级
1c80c627
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
52 addition
and
0 deletion
+52
-0
docs/.vuepress/components/md/virtual.vue
docs/.vuepress/components/md/virtual.vue
+47
-0
docs/.vuepress/theme/styles/index.styl
docs/.vuepress/theme/styles/index.styl
+1
-0
docs/release-note-alpha.md
docs/release-note-alpha.md
+2
-0
docs/release.md
docs/release.md
+2
-0
未找到文件。
docs/.vuepress/components/md/virtual.vue
0 → 100644
浏览文件 @
682ad9e6
<
template
>
<div></div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
contentFrame
:
[],
};
},
mounted
()
{
if
(
this
.
$isServer
)
return
;
const
visibleHeight
=
document
.
documentElement
.
clientHeight
-
document
.
querySelector
(
'
.sub-navbar
'
).
clientHeight
;
const
contentRef
=
document
.
querySelector
(
'
.page .theme-default-content
'
);
const
renderUl
=
()
=>
{
const
contentChildren
=
contentRef
.
children
;
[...
contentChildren
].
forEach
((
child
,
index
)
=>
{
if
(
child
.
nodeName
===
'
UL
'
)
{
const
ulHeight
=
child
.
clientHeight
;
const
isVisible
=
visibleHeight
+
window
.
scrollY
>
child
.
offsetTop
-
500
;
child
.
style
.
height
=
`
${
ulHeight
}
px`
;
if
(
!
isVisible
)
{
const
_ul
=
document
.
createDocumentFragment
();
[...
child
.
children
].
forEach
(
item
=>
_ul
.
appendChild
(
item
));
(
!
this
.
contentFrame
[
index
]
||
!
this
.
contentFrame
[
index
].
children
.
length
)
&&
(
this
.
contentFrame
[
index
]
=
_ul
);
}
else
{
if
(
this
.
contentFrame
[
index
])
{
[...
this
.
contentFrame
[
index
].
children
].
forEach
(
item
=>
child
.
appendChild
(
item
));
}
}
}
});
};
if
(
contentRef
)
{
contentRef
.
style
.
height
=
contentRef
.
clientHeight
;
renderUl
();
window
.
addEventListener
(
'
scroll
'
,
renderUl
);
}
},
};
</
script
>
docs/.vuepress/theme/styles/index.styl
浏览文件 @
682ad9e6
.custom-page-class{
position: relative;
/* 首页几个logo的排版 */
.flex-img-group-view {
display flex
...
...
docs/release-note-alpha.md
浏览文件 @
682ad9e6
...
...
@@ -2718,3 +2718,5 @@
+
Android平台 修复 创建视频播放控件(VideoPlayer)时,没有开始播放视频也会停止后台背景音频的Bug
[
详情
](
https://ask.dcloud.net.cn/question/82034
)
+
Android平台 优化 视频播放的操作条的拖动误触和图标美化问题
+
iOS平台 修复 平台绝对路径转换成本地URL路径(plus.io.convertAbsoluteFileSystem)可能返回null的Bug
[
详情
](
https://ask.dcloud.net.cn/question/51954
)
<md-virtual
key=
"release-note-alpha"
/>
\ No newline at end of file
docs/release.md
浏览文件 @
682ad9e6
...
...
@@ -3400,3 +3400,5 @@
*
【重要】新增uni-app,使用vue技术,开发一次,iOS、Android、微信小程序三端同时生成。
[
详见
](
https://uniapp.dcloud.io/
)
*
【重要】调整uniapp策略,之前的原生渲染uniapp改为nml项目
[
详见
](
https://ask.dcloud.net.cn/article/13507
)
*
uni-app:新增条件编译,采用类似 //#ifdef APP-PLUS 的写法做平台条件编译,代码块名为ifdef,还可双击ifdef选中整体代码段落。
[
详见
](
https://uniapp.dcloud.io/platform
)
<md-virtual
key=
"release"
/>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录