code refactoring

This commit is contained in:
Burak Civan 2022-06-22 13:27:29 +03:00
parent ae55e4eb06
commit 6a3e96364f

View File

@ -389,7 +389,7 @@ export default {
this.current_value = value;
this.range = false;
this.dynamicPlaceholder = this.selectPlaceholder;
this.onChangeSearchAndFilterText(this.selectPlaceholder);
let option = false;
let option_url = false;
@ -522,7 +522,7 @@ export default {
this.show_close_icon = true;
let select_value = false;
this.dynamicPlaceholder = this.enterPlaceholder;
this.onChangeSearchAndFilterText(this.enterPlaceholder);
for (let i = 0; i < this.values.length; i++) {
if (this.values[i].key == value) {
@ -582,7 +582,7 @@ export default {
this.show_date = false;
if (this.filter_index == 0) {
this.dynamicPlaceholder = this.defaultPlaceholder;
this.onChangeSearchAndFilterText(this.defaultPlaceholder);
}
this.filter_last_step = 'options';
@ -597,6 +597,10 @@ export default {
this.onInputConfirm();
},
onChangeSearchAndFilterText(arg) {
this.dynamicPlaceholder = arg;
},
convertOption(options) {
let values = [];
@ -765,6 +769,9 @@ export default {
},
mounted() {
if (this.filter_index > 0) {
this.onChangeSearchAndFilterText(this.enterPlaceholder);
}
},
computed: {