<template>
  <toolbar-container :fields="fields" v-on="$listeners" />
</template>

<script>
import TYPE from '@/const/type';

export default {
  name: 'TrendingToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'name',
          label: '关键字'
        },
        {
          type: 'select',
          name: 'isShow',
          label: '状态',
          options: TYPE,
          format: val => (val !== null && val !== '' ? !!val : null)
        }
      ]
    };
  }
};
</script>

<style type="scss" scoped></style>
