plugins/filter/CFilterSelect.vue
@@ -16,6 +16,7 @@ mode="selector" range-key="name" :range="options2" :value="current" @change="evt=>handleChange(evt.detail.value)" > <view class="content"> @@ -42,7 +43,10 @@ props: { type: String, label: String, options: Array, options: { type: Array, default: [], }, value: null, onChange: Function, }, @@ -59,9 +63,12 @@ return i; } } return -1; return 0; }, selected() { if (typeof this.value === 'undefined') { return false; } for (let item of this.options) { if (this.value === item.value) { return true;