可编辑的下拉框

el-autocomplete可编辑的下拉框

    <el-autocomplete class="inline-input" v-model="form.remark15" value-key="value"
                :fetch-suggestions="querySearch3" placeholder="请输入内容" style="width: 100%"></el-autocomplete>
 options1: [{
            value: '1111',
            label: '1111',
          },
          {
            value: '222',
            label: '222',
          }
        ],
  methods: 
   querySearch3(queryString, cb) {
      var options1 = this.options1;
      var results = options1;
      cb(results);
    },

你可能感兴趣的:(组件,vue.js,javascript)