toolbar.vue 623 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <toolbar-container :fields="fields" v-on="$listeners" />
  3. </template>
  4. <script>
  5. import TYPE from '@/const/type';
  6. export default {
  7. name: 'BannerManagementToolbar',
  8. data() {
  9. return {
  10. fields: [
  11. {
  12. type: 'DataSelect',
  13. name: 'type',
  14. label: '位置',
  15. params: this.$dict.BANNER_TYPE
  16. },
  17. {
  18. type: 'select',
  19. name: 'isShow',
  20. label: '状态',
  21. options: TYPE,
  22. format: val => (val !== null && val !== '' ? !!val : null)
  23. }
  24. ]
  25. };
  26. }
  27. };
  28. </script>
  29. <style type="scss" scoped></style>