Meteor autoForm autosave未在模板中反射
使用aldeed的流星现象 我有一个使用autoForm的自定义表单,它启用了autosaveMeteor autoForm autosave未在模板中反射,meteor,meteor-autoform,Meteor,Meteor Autoform,使用aldeed的流星现象 我有一个使用autoForm的自定义表单,它启用了autosave {{#autoForm collection="people" id=formId type="update" class="update" doc=. autosave=true template="autoupdate"}} 我创建了一个自定义输入模板,其相关部分如下所示: <template name="afInputText_autoupdate"> <input ty
{{#autoForm collection="people" id=formId type="update" class="update" doc=. autosave=true template="autoupdate"}}
我创建了一个自定义输入模板,其相关部分如下所示:
<template name="afInputText_autoupdate">
<input type="text" value="{{this.value}}" {{atts}}/><span class="display-value">{{this.value}}</span>
</template>
{{this.value}}
.display值
span显示,默认情况下(使用css)隐藏输入,单击时显示输入,隐藏span
除了.display value
span中的值没有像我所期望的那样自动更新之外,包括自动保存功能在内,一切都正常工作
我怀疑用于创建表单的对象没有订阅相关文档。我还不了解流星的内部工作原理,还没有弄明白这一点(我已经试过了)
有人能帮我指出正确的方向来更新这个值吗