Vuejs VueFormGenerator焦点输入字段

时间:2019-01-08 10:20:45

标签: vuejs2

我正在使用VueFormGenerator,我想关注例如poscode字段。我在他们的网站https://icebob.gitbooks.io/vueformgenerator

上找不到它

我该如何实现?

schema: {
        fields: [{
            focus:true,
            id:"zaw-postcode",
            type: "input",
            inputType: "text",
            model: "postcode",
            placeholder: "Postcode...",
            label: "Postcode",
            required: true,
            validator: VueFormGenerator.validators.postcode,
            hint: "Example: 1234 AB",
        }, {
   etc
   etc
   etc

1 个答案:

答案 0 :(得分:0)

答案:

attributes: {'autofocus':true}