<template>
  <div>
    <search :SearchFields="data" @search="search"></search>
  </div>
</template>

<script>
import search from './search.vue';
export default {
  components: {
    search
  },
  props: {},
  data() {
    return {
        data:[
            {
                label:'文本',
                value:'text',
                type:1
            },
            {
                label:'时间',
                value:'date',
                type:2
            },
            {
                label:'选择',
                value:'select',
                type:3,
                options:[
                    {
                        label:'1',
                        value:'1'
                    },
                    {
                        label:'2',
                        value:'2'
                    }, {
                        label:'3',
                        value:'3'
                    },
                ]
            }
        ]
    };
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {},
  methods: {
    search(val){
        // console.log(val)
    }
  },
};
</script>
<style lang="scss" scoped>
</style>