#vue.js
Вопрос:
Здесь я использовал генератор форм vue. Итак, в этом генераторе форм vue я сталкиваюсь с одной проблемой, как вы можете видеть на изображении в четвертом поле, вместо держателя места он отображается неопределенным. Поэтому вместо этого неопределенного он должен отображать пол держателя места. Так почему же он не отображается, я не в состоянии понять. Если у кого-нибудь есть идея, пожалуйста, дайте мне знать.
<vue-form-g :schema="schema_sports" :model="model" :options="formOptions"></vue-form-g>
schema_sports: {
fields: [{
type: "input",
inputType: "text",
placeholder: "Make:",
model: "Make",
styleClasses: ["half-width col-xs-12 col-sm-6", "job_title"]
}, {
type: "input",
inputType: "number",
placeholder: "Size:",
required: true,
model: "Size",
styleClasses: ["half-width col-xs-12 col-sm-6", "Experience"]
},{
type: "input",
inputType: "text",
placeholder: "Material:",
required: true,
model: "Material",
styleClasses: ["half-width col-xs-12 col-sm-4", "job_title"]
},{
type: "input",
inputType: "text",
placeholder: "Gender:",
required: true,
model: "Gender",
styleClasses: ["half-width col-xs-12 col-sm-4", "Experience"]
},{
type: "select",
inputType: "number",
placeholder: "Condition:",
required: true,
styleClasses: ["half-width col-xs-14 col-sm-14", "selectPost"],
model: "Condition",
values: [
{ id: "Mint", name: "Mint" },
{ id: "Good", name: "Good" },
{ id: "Usable", name: "Usable" }
]
},{
type: "textArea",
inputType: "text",
placeholder: "Spec:",
required: true,
model: "Spec",
styleClasses: ["half-width col-xs-12 col-sm-4", "Experience"]
}]
},
Комментарии:
1. Как выглядит модель? Тот, который вы передаете
vue-form-g
компоненту?