<template>
  <w-grid
    :title="$t('menu.developer.springboot.autoconfigure')"
    :checkbox-selection="false"
    :fetch-data-url="Environment.apiContextPath('/api/developer/springboot/autoConfiguration')"
    :pageable="true"
    :toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']"
    :columns="[
      { width: 100, name: 'context', label: $t('category') },
      { width: 400, name: 'name', label: $t('name') },
      { width: 100, name: 'positiveAndNegativeType', label: $t('P/N') + ' ' + $t('type') },
      { width: 100, name: 'matchedAndNotMatchedType', label: $t('M/N') + ' ' + $t('type') },
      { width: 250, name: 'condition', label: $t('condition') },
      { width: '100%', name: 'message', label: $t('description') },
    ]"
    :viewer="{
      panel: {
        columnNum: 1,
        fields: [
          { name: 'context', label: $t('category') },
          { name: 'name', label: $t('name') },
          { name: 'positiveAndNegativeType', label: $t('P/N') + ' ' + $t('type') },
          { name: 'matchedAndNotMatchedType', label: $t('M/N') + ' ' + $t('type') },
          { name: 'condition', label: $t('condition') },
          { name: 'message', label: $t('description') },
        ],
      },
    }"
  ></w-grid>
</template>
<script setup lang="ts">
import { Environment, Formater } from 'platform-core';
</script>
