### 自定义筛选

:::demo

```html

<template>
    <div>
        <condition-diy :advanced="true" @submit="submit" @reset="reset" :searchLoading="searchLoading">
            <condition-diy-item term="数字范围">
                <div class="numRange">
                    <el-row type="flex" class="numRange">
                        <el-input v-model="model.start">
                        </el-input>
                        <span style="padding:0 5px;">
						至
					</span>
                        <el-input v-model="model.end">
                        </el-input>
                    </el-row>
                </div>
            </condition-diy-item>
            <condition-diy-item term="选择框">
                <el-select v-model="model.selectvalue" placeholder="请选择">
                    <el-option v-for="item in options" :key="item.value" :label="item.label"
                               :value="item.value">
                    </el-option>
                </el-select>
            </condition-diy-item>
            <condition-diy-item term="输入框">
                <el-input placeholder="请输入" v-model="model.a"/>
            </condition-diy-item>
            <condition-diy-item term="远程搜索">
                <el-select v-model="value" filterable remote reserve-keyword placeholder="请输入关键词"
                           :remote-method="remoteMethod" :loading="loading">
                    <el-option v-for="item in optionsRemote" :key="item.value" :label="item.label"
                               :value="item.value">
                    </el-option>
                </el-select>
            </condition-diy-item>
        </condition-diy>

        <div>
            结果：{{JSON.stringify(model)}}
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                value: "",
                loading: false,
                searchLoading: false,
                model: {
                    a: 123, selectvalue: "", start: "", end: ""
                },
                optionsRemote: [],
                options: [
                    {value: "选项1", label: "黄金糕"},
                    {value: "选项2", label: "双皮奶"},
                    {value: "选项3", label: "蚵仔煎"},
                    {value: "选项4", label: "龙须面"},
                    {value: "选项5", label: "北京烤鸭"}
                ]
            }
        },
        methods: {
            remoteMethod(query) {
                var _this = this;
                if (query !== '') {
                    this.loading = true;
                    setTimeout(function () {
                        _this.loading = false;
                        _this.optionsRemote = _this.options.filter(function (item) {
                            return item;
                        });
                    }, 200);
                } else {
                    this.options = [];
                }
            },
            submit() {
                var _this2 = this;
                this.searchLoading = true;
                setTimeout(function () {
                    _this2.searchLoading = false;
                    _this2.MsgBox.alert(JSON.stringify(_this2.model));
                }, 500);
            },
            reset() {
                var _this3 = this;
                this.searchLoading = true;
                setTimeout(function () {
                    _this3.searchLoading = false;
                    _this3.MsgBox.alert("reset");
                }, 500);
            }
        }
    }
</script>
```
