<template>
    <div>
        <search :logical="logical" :logicalProps="logicalProps" :operator="operator" :field="field" :searchValue="true" :list="list"></search>
    </div>
</template>
<script>
import search from './search.vue'
export default {
    components:{
        search
    },
    data() {
        return {
        //逻辑符
        logical:[
            {
                name:'并且',
                value:'&&'
            },
            {
                name:'或者',
                value:'||'
            },
        ],
        logicalProps:{
            label:'name',
            value:'value'
        },
        //运算符
        operator:[
            {
                label:'=',
                value:'='
            },
            {
                label:'>',
                value:'>'
            },
            {
                label:'<',
                value:'<'
            },
            {
                label:'<=',
                value:'<='
            },
        ],
        //搜索值
        field:[
            {
                label:'专利号',
                value:'patentNo'
            },
            {
                label:'标题',
                value:'title'
            },
            {
                label:'公开日',
                value:'publicDate'
            },
        ],
        list:[
            {
                logical:'and',
                field:'patentNo',
                operator:'=',
                value:'123'
            }
        ],
        }
    },
}
</script>