Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
516f18ea
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
接近 2 年 前同步成功
通知
89
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
516f18ea
编写于
12月 25, 2017
作者:
B
BingBlog
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add expandpael arrow
上级
d04e0f1a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
32 addition
and
35 deletion
+32
-35
frontend/mock/data/plugin/images/individualImage.js
frontend/mock/data/plugin/images/individualImage.js
+0
-29
frontend/src/common/ui/Charts/chart.san
frontend/src/common/ui/Charts/chart.san
+5
-3
frontend/src/common/ui/ExpandPanel.san
frontend/src/common/ui/ExpandPanel.san
+24
-0
frontend/src/common/ui/ui-common.styl
frontend/src/common/ui/ui-common.styl
+2
-2
frontend/src/scalars/ui/chartPage.san
frontend/src/scalars/ui/chartPage.san
+1
-1
未找到文件。
frontend/mock/data/plugin/images/individualImage.js
已删除
100644 → 0
浏览文件 @
d04e0f1a
/**
* @file mock data
* @author autoresponse
*/
/* eslint-disable fecs-camelcase */
/**
* 获取 mock 响应数据
*
* @param {string} path 请求路径名
* @param {Object} queryParam 查询参数信息
* @param {Object} postParam post 的查询参数信息
* @return {Object}
*/
module
.
exports
=
function
(
path
,
queryParam
,
postParam
)
{
return
{
// 可以通过该属性来设置响应的延时,也可以设为值为'0,100',表示随机 0-100ms 的延时,默认 0
_timeout
:
0
,
// 通过该状态来设置响应的 http 的状态码,默认 200
_status
:
200
,
// 对于要响应的 json 数据可以统一放在该字段里,也可以不使用该字段,直接跟 _xx 属性平级放
_data
:
[]
};
};
/* eslint-enable fecs-camelcase */
frontend/src/common/ui/Charts/chart.san
浏览文件 @
516f18ea
...
...
@@ -83,6 +83,7 @@ export default {
this.watch('orginData', orginData => {
this.setChartData();
this.setChartsOutlier();
this.setChartHorizon();
});
this.watch('smoothing', smoothing => {
...
...
@@ -95,7 +96,7 @@ export default {
});
this.watch('horizontal', horizontal => {
this.setChartHorizon(
horizontal
);
this.setChartHorizon();
});
this.watch('runs', runs => {
...
...
@@ -318,7 +319,7 @@ export default {
startValue = millisecond;
}
// relative time, millisecond to hours
d[4] = Math.floor(millisecond - startValue)
/ (60 * 60 * 1000)
;
d[4] = Math.floor(millisecond - startValue);
if (!isFinite(nextVal)) {
d[3] = nextVal;
} else {
...
...
@@ -391,7 +392,8 @@ export default {
},
// chart horizontal options methods and functions ---- start
setChartHorizon(horizontal) {
setChartHorizon() {
let horizontal = this.data.get('horizontal');
let seriesOption = this.myChart.getOption().series;
let encodeSeries = val => {
return {
...
...
frontend/src/common/ui/ExpandPanel.san
浏览文件 @
516f18ea
...
...
@@ -5,6 +5,10 @@
on-click="handleHeadClick()"
>
<span>{{title}}</span>
<span class="visaul-dl-expand-head-info">
<ui-icon class="visaul-dl-expand-head-arrow" size="20">{{iconName}}</ui-icon>
<span class="visaul-dl-expand-head-num">({{info}})</span>
</span>
</h3>
<div
san-if="{{isShow}}"
...
...
@@ -15,7 +19,17 @@
</div>
</template>
<script>
import Icon from 'san-mui/Icon';
export default {
components: {
'ui-icon': Icon
},
computed: {
iconName() {
let isShow = this.data.get('isShow');
return isShow ? 'expand_less' : 'expand_more';
}
},
initData() {
return {
isShow: false
...
...
@@ -38,6 +52,16 @@ export default {
height 50px
padding 0 20px
cursor pointer
position relative
.visaul-dl-expand-head-info
position absolute
left 90%
.visaul-dl-expand-head-arrow
vertical-align middle
.visaul-dl-expand-head-num
line-height 20px
font-size 12px
font-weight normal
.visaul-dl-expand-panel-content
padding 0 20px
.visaul-dl-expand-panel-content:after
...
...
frontend/src/common/ui/ui-common.styl
浏览文件 @
516f18ea
...
...
@@ -5,8 +5,8 @@ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, fo
// modify some styles of san-mui
.sm-icon
width
100%
height
100%
width
20px
height
20px
overflow hidden
.sm-radio,
...
...
frontend/src/scalars/ui/chartPage.san
浏览文件 @
516f18ea
<template>
<div class="visual-dl-chart-page">
<ui-expand-panel title="{{title}}">
<ui-expand-panel
info="{{tagList.length}}"
title="{{title}}">
<div class="visual-dl-chart-box">
<ui-chart
san-for="tag in filteredTagList"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录