uniapp u-view 弹出匡内加表单 验证无法触发的解决方法 u-popup+u-form

		<u-popup v-model="password_show" mode="bottom">
			<u-form :model="form" ref="uForm">
				<u-form-item label="修改密码:" prop="password" label-width="400rpx;">
					<u-input type='password' v-model="form.password" maxlength='6' />
				</u-form-item>
				<u-form-item label="确认新密码:" prop="check_password" label-width="400rpx;">
					<u-input type='password' v-model="form.check_password" maxlength='6' />
				</u-form-item>
			</u-form>
			<u-button @click="submit">提交</u-button>
		</u-popup>
			open_update_pass(id) {
				this.password_show=true
				this.$nextTick(function(){
					this.$refs.uForm.setRules(this.rules);
				})
			},

你可能感兴趣的:(uni-app,uni-app)