Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
1222e5d0
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
1 年多 前同步成功
通知
88
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看板
未验证
提交
1222e5d0
编写于
8月 15, 2018
作者:
N
Nicky Chan
提交者:
GitHub
8月 15, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
finalized global run selector UI (#487)
* finalized global run selector UI * Add runs selector open UI effect
上级
e33b56d9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
61 addition
and
26 deletion
+61
-26
frontend/src/common/component/AppMenu.vue
frontend/src/common/component/AppMenu.vue
+60
-26
frontend/src/index.js
frontend/src/index.js
+1
-0
未找到文件。
frontend/src/common/component/AppMenu.vue
浏览文件 @
1222e5d0
...
...
@@ -5,31 +5,39 @@
color=
"primary"
dark
>
<v-toolbar-title
class=
"appbar-menu-title"
/>
<v-menu
:close-on-content-click=
"false"
>
<v-btn
slot=
"activator"
dark
flat
>
Runs:
{{
runs
}}
</v-btn>
<v-list
dense
>
<v-list-tile
v-for=
"(item, index) in availableRuns"
:key=
"index"
@
click=
""
>
<v-list-tile-action>
<v-checkbox
:value=
"item"
:key=
"item"
:label=
"item"
v-model=
"runs"
/>
</v-list-tile-action>
</v-list-tile>
</v-list>
</v-menu>
<v-toolbar-items>
<v-menu
open-on-hover
offset-y
:close-on-content-click=
"false"
>
<v-btn
slot=
"activator"
depressed
@
mouseover=
"runsSelectorOpen = true"
@
mouseout=
"runsSelectorOpen = false"
:color=
"runsSelectorOpen ? 'dark_primary' : 'primary'"
:class=
"runsSelectorOpen ? 'runs-selected-menu-open' : 'runs-selected-menu'"
>
<span
class=
"runs-selected-text"
>
Runs:
{{
runs
.
length
==
0
?
'
None selected
'
:
runs
.
join
(
'
,
'
)
}}
</span>
<v-icon>
arrow_drop_down
</v-icon>
</v-btn>
<v-list
dense
>
<v-list-tile
v-for=
"(item, index) in availableRuns"
:key=
"index"
@
mouseover=
"runsSelectorOpen = true"
@
mouseout=
"runsSelectorOpen = false"
>
<v-list-tile-action>
<v-checkbox
:value=
"item"
:key=
"item"
:label=
"item"
v-model=
"runs"
/>
</v-list-tile-action>
</v-list-tile>
</v-list>
</v-menu>
<v-btn
v-for=
"item in items"
:key=
"item.name"
...
...
@@ -57,6 +65,7 @@ export default {
name
:
'
AppMenu
'
,
data
()
{
return
{
runsSelectorOpen
:
false
,
availableRuns
:
[],
runs
:
[],
selected
:
this
.
initialRoute
,
...
...
@@ -119,13 +128,13 @@ export default {
};
</
script
>
<
style
scoped
lang=
"stylus"
>
<
style
lang=
"stylus"
>
@import '~style/variables';
.visual-dl-app-menu
.appbar-menu-title
flex none
margin-right
2
0px
margin-right
1
0px
background url('../../assets/ic_logo.svg') no-repeat
width 180px
height 24px
...
...
@@ -146,4 +155,29 @@ export default {
.menu-item-selected
@extends .visual-dl-app-menu .menu-item
opacity 1
.runs-selected-menu
font-size 16px
text-transform none
opacity 0.75
.runs-selected-menu-open
@extends .visual-dl-app-menu .runs-selected-menu
opacity 1
.runs-selected-text
text-align left
padding-right 6px
overflow hidden
text-overflow ellipsis
max-width 200px
.theme--light .input-group:not(.input-group--error) label
color #000
.input-group label
overflow visible
</
style
>
frontend/src/index.js
浏览文件 @
1222e5d0
...
...
@@ -11,6 +11,7 @@ Vue.use(Vuetify, {
primary
:
'
#008c99
'
,
accent
:
'
#008c99
'
,
toolbox_icon
:
'
#999999
'
,
dark_primary
:
'
#00727c
'
},
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录