Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
833e33aa
Commit
833e33aa
authored
Sep 13, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: account settings
parent
9fb94ecc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
13 deletions
+54
-13
Custom.vue
src/views/account/Custom.vue
+24
-4
Index.vue
src/views/account/Index.vue
+0
-5
Security.vue
src/views/account/Security.vue
+30
-4
No files found.
src/views/account/Custom.vue
View file @
833e33aa
<
template
>
<
template
>
<div>
<a-list
主题色:
{{
theme
|
themeFilter
}}
<a-switch
defaultChecked
@
change=
'onChange'
/>
itemLayout=
"horizontal"
</div>
:dataSource=
"data"
>
<a-list-item
slot=
"renderItem"
slot-scope=
"item, index"
:key=
"index"
>
<a-list-item-meta>
<a
slot=
"title"
href=
"https://vuecomponent.github.io/ant-design-vue/"
>
{{
item
.
title
}}
</a>
<span
slot=
"description"
>
<span
class=
"security-list-description"
>
{{
item
.
description
}}
</span>
<span
v-if=
"item.value"
>
:
</span>
<span
class=
"security-list-value"
>
{{
item
.
value
}}
</span>
</span>
</a-list-item-meta>
<template
v-if=
"item.actions"
>
<a
slot=
"actions"
@
click=
"item.actions.callback"
>
{{
item
.
actions
.
title
}}
</a>
</
template
>
</a-list-item>
</a-list>
</template>
</template>
<
script
>
<
script
>
...
@@ -9,7 +25,11 @@
...
@@ -9,7 +25,11 @@
name
:
"Security"
,
name
:
"Security"
,
data
()
{
data
()
{
return
{
return
{
theme
:
'dark'
theme
:
'dark'
,
data
:
[
{
title
:
'主题色'
,
description
:
'设置全局主题色'
,
value
:
this
.
theme
,
actions
:
{
title
:
'修改'
,
callback
:
()
=>
{
this
.
$message
.
info
(
'This is a normal message'
);
}
}
},
]
}
}
},
},
filters
:
{
filters
:
{
...
...
src/views/account/Index.vue
View file @
833e33aa
...
@@ -10,28 +10,23 @@
...
@@ -10,28 +10,23 @@
>
>
<a-menu-item
key=
"1"
>
<a-menu-item
key=
"1"
>
<router-link
:to=
"
{ name: 'BaseSettings' }">
<router-link
:to=
"
{ name: 'BaseSettings' }">
<a-icon
type=
"mail"
/>
基本设置
基本设置
</router-link>
</router-link>
</a-menu-item>
</a-menu-item>
<a-menu-item
key=
"2"
>
<a-menu-item
key=
"2"
>
<router-link
:to=
"
{ name: 'SecuritySettings' }">
<router-link
:to=
"
{ name: 'SecuritySettings' }">
<a-icon
type=
"mail"
/>
安全设置
安全设置
</router-link>
</router-link>
</a-menu-item>
</a-menu-item>
<a-menu-item
key=
"3"
>
<a-menu-item
key=
"3"
>
<router-link
:to=
"
{ name: 'CustomSettings' }">
<router-link
:to=
"
{ name: 'CustomSettings' }">
<a-icon
type=
"mail"
/>
个性化
个性化
</router-link>
</router-link>
</a-menu-item>
</a-menu-item>
<a-menu-item
key=
"4"
>
<a-menu-item
key=
"4"
>
<a-icon
type=
"mail"
/>
账户绑定
账户绑定
</a-menu-item>
</a-menu-item>
<a-menu-item
key=
"5"
>
<a-menu-item
key=
"5"
>
<a-icon
type=
"mail"
/>
新消息通知
新消息通知
</a-menu-item>
</a-menu-item>
</a-menu>
</a-menu>
...
...
src/views/account/Security.vue
View file @
833e33aa
<
template
>
<
template
>
<div>
<a-list
222
itemLayout=
"horizontal"
</div>
:dataSource=
"data"
>
<a-list-item
slot=
"renderItem"
slot-scope=
"item, index"
:key=
"index"
>
<a-list-item-meta>
<a
slot=
"title"
href=
"https://vuecomponent.github.io/ant-design-vue/"
>
{{
item
.
title
}}
</a>
<span
slot=
"description"
>
<span
class=
"security-list-description"
>
{{
item
.
description
}}
</span>
<span
v-if=
"item.value"
>
:
</span>
<span
class=
"security-list-value"
>
{{
item
.
value
}}
</span>
</span>
</a-list-item-meta>
<template
v-if=
"item.actions"
>
<a
slot=
"actions"
@
click=
"item.actions.callback"
>
{{
item
.
actions
.
title
}}
</a>
</
template
>
</a-list-item>
</a-list>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"Security"
data
()
{
return
{
data
:
[
{
title
:
'账户密码'
,
description
:
'当前密码强度'
,
value
:
'强'
,
actions
:
{
title
:
'修改'
,
callback
:
()
=>
{
this
.
$message
.
info
(
'This is a normal message'
);
}
}
},
{
title
:
'密保手机'
,
description
:
'已绑定手机'
,
value
:
'138****8293'
,
actions
:
{
title
:
'修改'
,
callback
:
()
=>
{
this
.
$message
.
success
(
'This is a message of success'
);
}
}
},
{
title
:
'密保问题'
,
description
:
'未设置密保问题,密保问题可有效保护账户安全'
,
value
:
''
,
actions
:
{
title
:
'设置'
,
callback
:
()
=>
{
this
.
$message
.
error
(
'This is a message of error'
);
}
}
},
{
title
:
'备用邮箱'
,
description
:
'已绑定邮箱'
,
value
:
'ant***sign.com'
,
actions
:
{
title
:
'修改'
,
callback
:
()
=>
{
this
.
$message
.
warning
(
'This is message of warning'
);
}
}
},
{
title
:
'MFA 设备'
,
description
:
'未绑定 MFA 设备,绑定后,可以进行二次确认'
,
value
:
''
,
actions
:
{
title
:
'绑定'
,
callback
:
()
=>
{
this
.
$message
.
info
(
'This is a normal message'
);
}
}
},
]
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment