提交 e86e0b72 编辑于 作者: Lancercmd's avatar Lancercmd
浏览文件

feat: confirm with Enter

上级 76f37f84
......@@ -64,12 +64,12 @@
<el-dialog title="上报伤害" :visible.sync="recordFormVisible">
<el-form>
<el-form-item label="伤害值" label-width="120">
<el-input v-model.number="damage"{# @keyup.enter.native="recordselfdamage" #}>
<el-input v-model.number="damage" @keyup.enter.native="recordselfdamage">
<template slot="prepend">[[ damageHint ]]</template>
</el-input>
</el-form-item>
<el-form-item label="留言" label-width="120">
<el-input v-model="message" placeholder="(选填)"></el-input>
<el-input v-model="message" placeholder="(选填)" @keyup.enter.native="recordselfdamage"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -81,7 +81,7 @@
<el-dialog title="上报伤害" :visible.sync="recordDefeatVisible">
<el-form>
<el-form-item label="留言" label-width="120">
<el-input v-model="message" placeholder="(选填)"></el-input>
<el-input v-model="message" placeholder="(选填)" @keyup.enter.native="recordselfdefeat"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -104,12 +104,12 @@
</el-select>
</el-form-item>
<el-form-item label="伤害值" label-width="120">
<el-input v-model.number="damage" :disabled="defeat"{# @keyup.enter.native="recorddamage" #}>
<el-input v-model.number="damage" :disabled="defeat" @keyup.enter.native="recorddamage">
<template slot="prepend">[[ damageHint ]]</template>
</el-input>
</el-form-item>
<el-form-item label="留言" label-width="120">
<el-input v-model="message" placeholder="(选填)"></el-input>
<el-input v-model="message" placeholder="(选填)" @keyup.enter.native="recorddamage"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -126,7 +126,7 @@
<el-dialog title="锁定boss" :visible.sync="lockBossVisible">
<el-form>
<el-form-item label="留言" label-width="120">
<el-input v-model="message" placeholder="(必填)"></el-input>
<el-input v-model="message" placeholder="(必填)" @keyup.enter.native="challengeapply(2)"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -141,7 +141,7 @@
<el-dialog title="挂树" :visible.sync="suspendVisible">
<el-form>
<el-form-item label="留言" label-width="120">
<el-input v-model="message" placeholder="(选填)"></el-input>
<el-input v-model="message" placeholder="(选填)" @keyup.enter.native="addsuspend"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -159,7 +159,7 @@
<el-radio-button label="4"></el-radio-button>
<el-radio-button label="5"></el-radio-button>
</el-radio-group>
<el-input v-model="message" placeholder="留言(选填)"></el-input>
<el-input v-model="message" placeholder="留言(选填)" @keyup.enter.native="addsubscribe"></el-input>
<div slot="footer" class="dialog-footer">
<el-button @click="subscribeFormVisible = false">取消</el-button>
<el-button type="primary" @click="addsubscribe">预约</el-button>
......
......@@ -51,10 +51,10 @@
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="QQ号" prop="qq">
<el-input v-model="form.qq" name="user" placeholder="请输入登录QQ号"></el-input>
<el-input v-model="form.qq" name="user" placeholder="请输入登录QQ号" @keyup.enter.native="onSubmit"></el-input>
</el-form-item>
<el-form-item label="密码" prop="pwd">
<el-input v-model="form.pwd" name="password" placeholder="这个密码不是QQ密码" type="password"></el-input>
<el-input v-model="form.pwd" name="password" placeholder="这个密码不是QQ密码" type="password" @keyup.enter.native="onSubmit"></el-input>
<p class="comment">* 如果不知道密码,您可以私聊机器人“{{ prefix }}登录”或“{{ prefix }}重置密码”</p>
</el-form-item>
<el-form-item>
......
......@@ -44,10 +44,10 @@
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="密码" prop="pwd">
<el-input v-model="form.pwd" placeholder="这个密码不是QQ密码" type="password"></el-input>
<el-input v-model="form.pwd" placeholder="这个密码不是QQ密码" type="password" @keyup.enter.native="onSubmit"></el-input>
</el-form-item>
<el-form-item label="确认密码" prop="again">
<el-input v-model="form.again" placeholder="这个密码不是QQ密码" type="password"></el-input>
<el-input v-model="form.again" placeholder="这个密码不是QQ密码" type="password" @keyup.enter.native="onSubmit"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">修改</el-button>
......
......@@ -33,8 +33,8 @@ else:
class Yobot:
Version = "[v3.6.4-beta.1]"
Version_id = 202
Version = "[v3.6.4-beta.2]"
Version_id = 203
# "git rev-list --count HEAD"
def __init__(self, *,
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册