auto-complete.vue
751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
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
<template>
<div style="margin: 100px;width: 200px;">
<auto-complete v-model="value" :data="data" :disabled="disabled"></auto-complete>
</div>
</template>
<script>
export default {
data() {
return {
value: "",
disabled: false,
data: []
};
},
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>