<template>
  <div class="hw-custom-criteria">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'HwCustomCriteria',
  data() {
    return {
      condition: ''
    }
  },
  methods: {
    search() {
      this.$emit('condition-changed', { condition: this.condition, model: this.$parent.model })
    }
  }
}
</script>

<style scoped>
.hw-custom-criteria {
  width: 100%;
}
</style>