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

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

export default {
  name: 'InformationToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'title',
          label: '标题'
        },
        {
          type: 'issueTypeSelect',
          name: 'helpGroupId',
          label: '分类',
          labelWidth: '100px'
        },
        {
          type: 'select',
          name: 'status',
          label: '状态',
          labelWidth: '100px',
          options: TYPE,
          format: val => (val !== null && val !== '' ? !!val : null)
        }
      ]
    };
  }
};
</script>

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