<!--
 * @Author: 李佐宁 lizuoning@yuan-info.com
 * @Date: 2022-07-05 16:20:25
 * @LastEditors: 曹文丽
 * @LastEditTime: 2023-05-31 09:58:03
-->
<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup lang="ts">
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import { mapMapping } from "@/assets/map/provinceData";
const mapData = mapMapping();
const locale = zhCn;
if (mapData) {
  document.body.id = mapData.en;
  if (mapData.bgTransparent) {
    document.body.classList.add("transparent");
  }
}

localStorage.YA_THEME = "light";
</script>

<style>
/* 图片注释---demo */
#shandong .ya-bg-color {
  /* background-image: url("@/assets/image/screen_bg.png"); */
}
body.transparent,
body.transparent .ya-bg-color {
  background: transparent !important;
}
.ya-page-container {
  margin-bottom: 5px !important;
}
</style>

<style lang="scss">
.ya-bg {
  background: #fff;
  padding: 16px;
  padding-bottom: 0;
  border-radius: 4px;
  .ya-table-search {
    padding: 0 !important;
    padding-top: 16px !important;
  }
}
</style>
