Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suncj1314
unidocs-zh
提交
277f5541
U
unidocs-zh
项目概览
suncj1314
/
unidocs-zh
与 Fork 源项目一致
Fork自
DCloud / unidocs-zh
通知
1
Star
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
277f5541
编写于
3月 21, 2022
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: docs render error
上级
374bc291
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
5 deletion
+30
-5
docs/.vuepress/theme/global-components/CodeSimulator.vue
docs/.vuepress/theme/global-components/CodeSimulator.vue
+20
-3
docs/.vuepress/theme/styles/index.styl
docs/.vuepress/theme/styles/index.styl
+4
-0
docs/README.md
docs/README.md
+6
-2
未找到文件。
docs/.vuepress/theme/global-components/CodeSimulator.vue
浏览文件 @
277f5541
...
...
@@ -12,8 +12,20 @@ export default {
activeIndex
:
0
}
},
created
(){},
mounted
(){
this
.
onWindowResize
()
window
.
addEventListener
(
'
resize
'
,
this
.
onWindowResize
)
},
beforeDestroy
(){
window
.
removeEventListener
(
'
resize
'
,
this
.
onWindowResize
)
},
methods
:{
onWindowResize
(){
const
contentWidth
=
getComputedStyle
(
document
.
querySelector
(
'
.theme-default-content
'
)).
width
if
(
window
.
matchMedia
(
'
(max-width: 410px)
'
).
matches
)
{
this
.
$refs
.
codeIframe
.
style
.
maxWidth
=
contentWidth
}
},
onClick
(
index
){
this
.
activeIndex
=
index
},
...
...
@@ -37,7 +49,7 @@ export default {
h
(
'
iframe
'
,{
class
:
'
code-iframe
'
,
attrs
:{
src
:
this
.
src
,
frameborder
:
'
0
'
}})
}
,
ref
:
'
codeIframe
'
})
]),
]
...
...
@@ -84,7 +96,7 @@ export default {
}
</
script
>
<
style
>
<
style
lang=
"stylus"
scoped
>
.page-runtime {
display: flex;
height: 667px;
...
...
@@ -155,4 +167,9 @@ export default {
width: 375px;
height: 667px;
}
@media (max-width: $MQMobileNarrow)
{$contentClass}
div[class*="language-"]
margin 0 !important
</
style
>
docs/.vuepress/theme/styles/index.styl
浏览文件 @
277f5541
...
...
@@ -88,6 +88,10 @@ main.page
@media (max-width: $MQMobile)
&
margin-top $navbarHeight
img
max-width 100% !important
table
position relative
h1, h2, h3, h4, h5, h6
...
...
docs/README.md
浏览文件 @
277f5541
...
...
@@ -93,11 +93,15 @@ pageClass: custom-page-class
<b>京东小程序版</b>
</a>
<a href="javascript:void(0)" οnclick="js_method()" class="clear-style barcode-view">
<div class="barcode-img-box" style="width: 160px;"></div>
<div class="barcode-img-box">
<img style="opacity: 0;" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/96e072fe-f338-46bd-b2d7-7b3aac7df501.png" width="160" />
</div>
<b></b>
</a>
<a href="javascript:void(0)" οnclick="js_method()" class="clear-style barcode-view">
<div class="barcode-img-box" style="width: 160px;"></div>
<div class="barcode-img-box">
<img style="opacity: 0;" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/96e072fe-f338-46bd-b2d7-7b3aac7df501.png" width="160" />
</div>
<b></b>
</a>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录