Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
boya-demonstration
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
游洋澄
boya-demonstration
Commits
8c6e7833
提交
8c6e7833
authored
11月 07, 2019
作者:
游洋澄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
页面更新
上级
9dd9fa09
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
50 行增加
和
23 行删除
+50
-23
Home.vue
src/views/Home.vue
+37
-10
vue.config.js
vue.config.js
+13
-13
没有找到文件。
src/views/Home.vue
浏览文件 @
8c6e7833
<
template
>
<a-layout
id=
"components-layout-demo-responsive"
>
<a-layout-content
:style=
"
{ margin: '10px 16px 16px 16px',height:'67%',backgroundColor:'rgba(0,0,0,0.1)'}">
<div
:style=
"
{ padding: '
24p
x',height:'100%'}">
<div
:style=
"
{ padding: '
15
x',height:'100%'}">
<a-row
style=
"height:100%"
>
<a-col
:span=
"6"
style=
"height:100%"
>
<a-row
style=
"height:50%;padding:1
5
px;"
>
<a-row
style=
"height:50%;padding:1
0
px;"
>
<div
class=
"demo"
>
<video-player
class=
"video-player vjs-custom-skin"
ref=
"videoPlayer"
...
...
@@ -13,17 +13,17 @@
:options=
"playerOptions"
></video-player>
</div>
</a-row>
<a-row
style=
"height:50%;"
>
<a-row
style=
"height:50%;
padding:10px;background-color:rgba(100,100,100,0.1)
"
>
<a-col
:span=
"10"
>
<a-card
:bordered=
"false"
style=
"height:100%;width:
47%;background-color:rgba(100,100,100,0.1);margin-lef
t:20px;"
>
<img
style=
"height:100%;maxHeight:2
00
px;"
style=
"height:100%;width:
80%;margin-left:20px;margin-righ
t:20px;"
>
<img
style=
"height:100%;maxHeight:2
45
px;"
alt=
"example"
:src=
"currentInfo.url"
slot=
"cover"
/>
</a-card>
</a-col>
<a-col
:span=
"
10
"
>
<a-col
:span=
"
8
"
>
<span
>
{{
currentInfo
.
timestamp
}}
</span>
</a-col>
</a-row>
...
...
@@ -63,11 +63,11 @@
v-for=
"(item,index) in data1PhotoArray"
:key=
"index"
>
<div
@
click=
"scrollTo(index)"
style=
"display:inline-block;padding:
10px;text-align:center;"
>
style=
"display:inline-block;padding:10px;text-align:center;"
>
<a-card
hoverable
style=
"height:100%;width:80%;"
>
<img
alt=
"example"
style=
"max-height:2
00
px;"
style=
"max-height:2
25
px;"
:src=
"item.url"
slot=
"cover"
/>
<a-card-meta>
...
...
@@ -123,7 +123,10 @@ export default {
// 1
demoData1Array
:
[],
data1PhotoArray
:
[],
currentInfo
:
{},
currentInfo
:
{
url
:
''
,
timestamp
:
''
},
flvResource
:
{
type
:
'video/x-flv'
,
src
:
'http://202.112.23.252:9017/public_pic_dir/sample.flv'
...
...
@@ -173,7 +176,7 @@ export default {
},
swiperOption
:
function
()
{
return
{
slidesPerView
:
1
0
,
slidesPerView
:
1
2
,
spaceBetween
:
0
,
freeMode
:
true
,
pagination
:
{
...
...
@@ -251,4 +254,28 @@ export default {
width
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.swiper-container-horizontal
{
height
:
8px
;
}
#components-layout-demo-responsive
.ant-card
{
line-height
:
1
;
font-size
:
12px
;
}
#components-layout-demo-responsive
.ant-card-body
{
padding
:
15px
;
zoom
:
1
;
}
#components-layout-demo-responsive
.swiper-container-horizontal
>
.swiper-scrollbar
{
height
:
8px
;
}
#components-layout-demo-responsive
.ant-col-8
{
width
:
40%
;
}
#components-layout-demo-responsive
.ant-card-meta-description
{
color
:
rgba
(
0
,
0
,
0
,
0.85
);
}
</
style
>
vue.config.js
浏览文件 @
8c6e7833
...
...
@@ -12,20 +12,20 @@
// vue.config.js
module
.
exports
=
{
devServer
:
{
host
:
'192.168.100.101'
,
disableHostCheck
:
true
,
// development server port 8000
port
:
8080
// proxy: {
// '/api': {
// devServer: {
// host: '192.168.100.101',
// disableHostCheck: true,
// // development server port 8000
// port: 8080
// // proxy: {
// // '/api': {
// // // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// ws: false,
// changeOrigin: true
// }
// }
},
// // ws: false,
// // changeOrigin: true
// // }
// // }
// },
// disable source map in production
productionSourceMap
:
false
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论