<template>
  <t-config-provider :global-config="globalConfig">
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
  </t-config-provider>
</template>
<script setup lang="ts">
import { merge } from 'lodash-es'
import { GlobalConfigProvider } from 'tdesign-vue-next'
// 全局配置
const customConfig: GlobalConfigProvider = {
  table: {
    empty: '空数据'
  },
  pagination: {
    itemsPerPage: '{size} 条/页',
    jumpTo: '总页数',
    page: '10',
    total: '共 {total} 条数据'
  }
}
const globalConfig = merge(customConfig)
</script>
