framework7表单如何获取验证结果

在vue中使用了framework7

<template>
    <f7-page no-toolbar no-navbar no-swipeback login-screen>
        <f7-login-screen-title>Sign In</f7-login-screen-title>
        <f7-list form ref="form">
            <f7-list-input
                label="Username"
                type="text"
                placeholder="Your username"
                :value="username"
                @input="username = $event.target.value"
                validate
                required
            ></f7-list-input>
            <f7-list-input
                label="Password"
                type="password"
                placeholder="Your password"
                :value="password"
                @input="password = $event.target.value"
                validate
                required
            ></f7-list-input>
            <f7-list>
                <f7-list-button type="submit" @click="signIn">Sign In</f7-list-button>
            </f7-list>
        </f7-list>
    </f7-page>
</template>

在signin方法中使用app.input.validateInputs("form")可以触发验证表单,但是没有返回验证结果,无法根据验证结果进行下一步判断。
如何才能获取验证结果呢?

阅读 3.9k
1 个回答

clipboard.png
很遗憾,没有解决方法,只能自己写查验是什么验证不合格了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题