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
d310d2f4
Unverified
Commit
d310d2f4
authored
Jan 20, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: login enter submit, username user-select:none
parent
10dc997e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+5
-0
UserMenu.vue
src/components/tools/UserMenu.vue
+0
-5
Login.vue
src/views/user/Login.vue
+4
-2
No files found.
src/components/page/GlobalLayout.vue
View file @
d310d2f4
...
...
@@ -551,6 +551,11 @@
}
//
外置的样式控制
.user-dropdown-menu
{
span
{
user-select
:
none
;
}
}
.user-dropdown-menu-wrapper.ant-dropdown-menu
{
padding
:
4px
0
;
...
...
src/components/tools/UserMenu.vue
View file @
d310d2f4
...
...
@@ -73,7 +73,3 @@
}
}
</
script
>
\ No newline at end of file
<
style
scoped
>
</
style
>
\ No newline at end of file
src/views/user/Login.vue
View file @
d310d2f4
...
...
@@ -5,6 +5,7 @@
class=
"user-layout-login"
ref=
"formLogin"
:form=
"form"
@
submit=
"handleSubmit"
>
<a-tabs
:activeKey=
"customActiveKey"
...
...
@@ -82,10 +83,10 @@
<a-button
size=
"large"
type=
"primary"
htmlType=
"submit"
class=
"login-button"
:loading=
"state.loginBtn"
:disabled=
"state.loginBtn"
@
click
.
stop
.
prevent=
"handleSubmit"
>
确定
</a-button>
</a-form-item>
...
...
@@ -169,7 +170,8 @@ export default {
this
.
customActiveKey
=
key
// this.form.resetFields()
},
handleSubmit
()
{
handleSubmit
(
e
)
{
e
.
preventDefault
()
const
{
form
:
{
validateFields
},
state
,
...
...
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