Commit 60a7675d by weijiguang

enter

parent 45a14e29
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<Row> <Row>
<Col span="24"> <Col span="24">
<FormItem prop="username"> <FormItem prop="username">
<Input type="text" v-model="loginForm.username" placeholder="帐号"> <Input type="text" v-model="loginForm.username" placeholder="帐号" @keyup.enter.native="login('loginForm')">
<Icon type="ios-person-outline" slot="prepend"></Icon> <Icon type="ios-person-outline" slot="prepend"></Icon>
</Input> </Input>
</FormItem> </FormItem>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<Row> <Row>
<Col span="24"> <Col span="24">
<FormItem prop="password"> <FormItem prop="password">
<Input type="password" v-model="loginForm.password" placeholder="密码"> <Input type="password" v-model="loginForm.password" placeholder="密码" @keyup.enter.native="login('loginForm')">
<Icon type="ios-lock-outline" slot="prepend"></Icon> <Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input> </Input>
</FormItem> </FormItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment