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
e3ab40e4
Commit
e3ab40e4
authored
Sep 03, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed user/avatar layout
parent
6fbfd656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
90 deletions
+107
-90
avatar2.jpg
public/avatar2.jpg
+0
-0
Index.vue
src/views/user/Index.vue
+107
-90
No files found.
public/avatar2.jpg
0 → 100644
View file @
e3ab40e4
78.3 KB
src/views/user/Index.vue
View file @
e3ab40e4
...
...
@@ -20,89 +20,68 @@
</a-row>
</div>
<a-card>
<a-form>
<a-row
:gutter=
"24"
:style=
"
{ marginBottom: '24px' }">
<a-col
:sm=
"12"
:xs=
"24"
:style=
"
{ height: '250px' }">
<vue-cropper
style=
"width: 300px;position: absolute; left: 50%"
ref=
"cropper"
:img=
"option.img"
:outputSize=
"option.size"
:outputType=
"option.outputType"
:info=
"option.info"
:autoCrop=
"option.autoCrop"
:autoCropWidth=
"option.autoCropWidth"
:autoCropHeight=
"option.autoCropHeight"
:fixedBox=
"option.fixedBox"
@
realTime=
"realTime"
>
</vue-cropper>
</a-col>
<a-col
:sm=
"12"
:xs=
"24"
:style=
"
{ height: '250px' }">
<div
class=
"ant-upload-preview"
>
<img
:src=
"preview.url"
:style=
"preview.img"
/>
<a-card
:style=
"
{ padding: '0 15%' }">
<a-row
:gutter=
"16"
>
<a-col
:md=
"24"
:lg=
"8"
:style=
"
{ minHeight: '180px' }">
<div
class=
"ant-upload-preview"
>
<a-icon
type=
"cloud-upload-o"
class=
"upload-icon"
/>
<div
class=
"mask"
>
<a-icon
type=
"plus"
/>
</div>
</a-col>
</a-row>
<a-form-item
label=
"昵称"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
>
<a-input
placeholder=
"给自己起个名字"
/>
</a-form-item>
<a-form-item
label=
"Bio"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
>
<a-textarea
rows=
"4"
placeholder=
"You are not alone."
/>
</a-form-item>
<a-form-item
label=
"电子邮件"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
:required="false"
>
<a-input
placeholder=
"exp@admin.com"
/>
</a-form-item>
<a-form-item
label=
"加密方式"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
:required="false"
>
<a-select
defaultValue=
"aes-256-cfb"
>
<a-select-option
value=
"aes-256-cfb"
>
aes-256-cfb
</a-select-option>
<a-select-option
value=
"aes-128-cfb"
>
aes-128-cfb
</a-select-option>
<a-select-option
value=
"chacha20"
>
chacha20
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"连接密码"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
:required="false"
>
<a-input
placeholder=
"h3gSbecd"
/>
</a-form-item>
<a-form-item
label=
"登陆密码"
:labelCol=
"
{span: 7}"
:wrapperCol="{span: 10}"
:required="false"
>
<a-input
placeholder=
"密码"
/>
</a-form-item>
<a-form-item
:wrapperCol=
"
{span: 10, offset: 7}">
<a-button
type=
"primary"
>
提交
</a-button>
<a-button
style=
"margin-left: 8px"
>
保存
</a-button>
</a-form-item>
</a-form>
<img
:src=
"option.img"
/>
</div>
</a-col>
<a-col
:md=
"24"
:lg=
"16"
>
<a-form
layout=
"vertical"
>
<a-form-item
label=
"昵称"
>
<a-input
placeholder=
"给自己起个名字"
/>
</a-form-item>
<a-form-item
label=
"Bio"
>
<a-textarea
rows=
"4"
placeholder=
"You are not alone."
/>
</a-form-item>
<a-form-item
label=
"电子邮件"
:required=
"false"
>
<a-input
placeholder=
"exp@admin.com"
/>
</a-form-item>
<a-form-item
label=
"加密方式"
:required=
"false"
>
<a-select
defaultValue=
"aes-256-cfb"
>
<a-select-option
value=
"aes-256-cfb"
>
aes-256-cfb
</a-select-option>
<a-select-option
value=
"aes-128-cfb"
>
aes-128-cfb
</a-select-option>
<a-select-option
value=
"chacha20"
>
chacha20
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"连接密码"
:required=
"false"
>
<a-input
placeholder=
"h3gSbecd"
/>
</a-form-item>
<a-form-item
label=
"登陆密码"
:required=
"false"
>
<a-input
placeholder=
"密码"
/>
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
>
提交
</a-button>
<a-button
style=
"margin-left: 8px"
>
保存
</a-button>
</a-form-item>
</a-form>
</a-col>
</a-row>
</a-card>
</page-layout>
...
...
@@ -140,7 +119,7 @@
// cropper
preview
:
{},
option
:
{
img
:
'
https://gw.alipayobjects.com/zos/rmsportal/jZUIxmJycoymBprLOUbT.pn
g'
,
img
:
'
/avatar2.jp
g'
,
info
:
true
,
size
:
1
,
outputType
:
'jpeg'
,
...
...
@@ -181,14 +160,51 @@
}
.ant-upload-preview
{
width
:
180px
;
height
:
180px
;
position
:
relative
;
margin
:
0
auto
;
width
:
100%
;
max-width
:
180px
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
#ccc
;
position
:
absolute
;
top
:
50%
;
left
:
15%
;
margin-top
:
-90px
;
overflow
:
hidden
;
.upload-icon
{
position
:
absolute
;
top
:
0
;
right
:
10px
;
font-size
:
1.4rem
;
padding
:
0.5rem
;
background
:
rgba
(
222
,
221
,
221
,
0.7
);
border-radius
:
50%
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
}
.mask
{
opacity
:
0
;
position
:
absolute
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
cursor
:
pointer
;
transition
:
opacity
0.4s
;
&:hover
{
opacity
:
1
;
}
i
{
font-size
:
2rem
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
margin-left
:
-1rem
;
margin-top
:
-1rem
;
color
:
#d6d6d6
;
}
}
img
,
.mask
{
width
:
100%
;
max-width
:
180px
;
height
:
100%
;
border-radius
:
50%
;
overflow
:
hidden
;
}
}
</
style
>
\ No newline at end of file
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