我遇到了这个问题,我不知道为什么...我创建了一个链接到集合的AutoForm,当我尝试创建输入字段时,什么也没发生,我只看到该字段的名称通过收藏,什么都没有。
这是我的模式集合:
Posts.attachSchema(new SimpleSchema({
body: {
type: String,
max: 500
},
userId: {
type: String
},
username: {
type: String
},
createdAt: {
type: Date
}
}));
这是我创建自动表格的HTML:
<div class="modal-body">
{{#autoForm collection="Posts" id="insertPostForm" type="insert"}}
{{> afQuickField name='body'}}
{{/autoForm}}
</div>
这是我所看到的屏幕: Screen
我搜索了很多类似问题,但是没有,希望大家能帮助我! 谢谢。