commit
1a98ac1a97
2 changed files with 20 additions and 3 deletions
|
@ -27,6 +27,10 @@
|
||||||
<Button @click="handleReset('formValidate')" style="margin-left: 8px">Reset</Button>
|
<Button @click="handleReset('formValidate')" style="margin-left: 8px">Reset</Button>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
<!-- fix #6349 -->
|
||||||
|
<Select v-model='test' filterable clearable>
|
||||||
|
<Option v-for='item in list' :value='item.value' :label="item.name"></Option>
|
||||||
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -44,7 +48,15 @@
|
||||||
binterest: [
|
binterest: [
|
||||||
{ required: true, type: 'array', min: 1, message: 'Choose at least one hobby', trigger: 'change' },
|
{ required: true, type: 'array', min: 1, message: 'Choose at least one hobby', trigger: 'change' },
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
test:'',
|
||||||
|
list:[{
|
||||||
|
name:"测试测试",
|
||||||
|
value:8
|
||||||
|
},{
|
||||||
|
name:"\"年龄\"123",
|
||||||
|
value:9
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -495,9 +495,14 @@
|
||||||
const nodeText = node.elm ? node.elm.textContent : node.text;
|
const nodeText = node.elm ? node.elm.textContent : node.text;
|
||||||
return `${str} ${nodeText}`;
|
return `${str} ${nodeText}`;
|
||||||
}, '') || '';
|
}, '') || '';
|
||||||
const stringValues = JSON.stringify([label, textContent]);
|
const stringValues = [label, textContent];
|
||||||
const query = this.query.toLowerCase().trim();
|
const query = this.query.toLowerCase().trim();
|
||||||
return stringValues.toLowerCase().includes(query);
|
for (let i = 0; i < stringValues.length; ++i) {
|
||||||
|
if (stringValues[i].toLowerCase().includes(query)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleMenu (e, force) {
|
toggleMenu (e, force) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue