Blame view

examples/routers/auto-complete.vue 751 Bytes
fed3e09d   梁灏   add AutoComplete ...
1
  <template>
33c826ec   Rookie_Zoe   fix #5150
2
3
4
    <div style="margin: 100px;width: 200px;">
      <auto-complete v-model="value" :data="data" :disabled="disabled"></auto-complete>
    </div>
fed3e09d   梁灏   add AutoComplete ...
5
6
  </template>
  <script>
33c826ec   Rookie_Zoe   fix #5150
7
8
9
10
11
12
  export default {
    data() {
      return {
        value: "",
        disabled: false,
        data: []
fed3e09d   梁灏   add AutoComplete ...
13
      };
33c826ec   Rookie_Zoe   fix #5150
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
    },
    methods: {},
    created() {
      setTimeout(() => {
        this.value = "1.0.0.5";
        this.data = [
          "12412515",
          "123444",
          "12355",
          "12345",
          "12312",
          "1234",
          "123",
          "111",
          "5.2.3.4",
          "1.2.3.4",
          "1.2.3.4.5",
          "1.2.3.4.5.6",
          "1.2.3.4.5.6.7",
          "1.0.0.8",
          "1.0.0.5",
          "whb-03"
        ];
        //   this.disabled = true;
      }, 1000);
    }
  };
  </script>