如何在Meteoric中设计自动表单? {{{#autoformschema=“asdf”id=“sdfg”type=“method”method=“meth”} {{>afQuickField name=“startLocation”} {{>afQuickField name=“destination”} {{>afQuickField name=“date”} {{>afQuickField name=“departureTime”} {{>afQuickField name=“returnTime”} {{>afQuickField name=“seats”type=“number”} 提交 {{/autoForm}
上面的代码在我的Meteor应用程序中生成了一个表单,但是它看起来很糟糕(或者至少不直观):如何在Meteoric中设计自动表单? {{{#autoformschema=“asdf”id=“sdfg”type=“method”method=“meth”} {{>afQuickField name=“startLocation”} {{>afQuickField name=“destination”} {{>afQuickField name=“date”} {{>afQuickField name=“departureTime”} {{>afQuickField name=“returnTime”} {{>afQuickField name=“seats”type=“number”} 提交 {{/autoForm},meteor,ionic-framework,ionic,meteor-autoform,meteoric,Meteor,Ionic Framework,Ionic,Meteor Autoform,Meteoric,上面的代码在我的Meteor应用程序中生成了一个表单,但是它看起来很糟糕(或者至少不直观): 我不知道这是为什么。在我看到的示例(,)中,表单以一种更加感性的方式呈现。如何让afQuickField在单独的行上显示标签和输入,或者至少以另一种有意义的方式显示?可能不需要将其放在FieldSet中您是否添加了Meteroic:autoform-ionic包@challett@corvid取出字段集不会改变任何东西,并且添加了meteroic:autoform-ionic {{#autoFor
我不知道这是为什么。在我看到的示例(,)中,表单以一种更加感性的方式呈现。如何让afQuickField在单独的行上显示标签和输入,或者至少以另一种有意义的方式显示?可能不需要将其放在FieldSet中您是否添加了
Meteroic:autoform-ionic
包@challett@corvid取出字段集
不会改变任何东西,并且添加了meteroic:autoform-ionic
{{#autoForm schema="asdf" id="sdfg" type="method" meteormethod="meth"}}
<fieldset>
{{> afQuickField name="startLocation"}}
{{> afQuickField name="destination"}}
{{> afQuickField name="date"}}
{{> afQuickField name="departureTime"}}
{{> afQuickField name="returnTime"}}
{{> afQuickField name="seats" type="number"}}
</fieldset>
<button type="submit" class="btn btn-primary">submit<button>
{{/autoForm}}