WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-04-02 73d4022530530be074c48a978ff6d489134bc8e4
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;