<template>
  <div class="container md:w-screen-xl m-auto">
    <div class="flex flex-col" v-if="!layout?.showLayout">
      <Breadcrumb :data="form" />
      <div :class="layout?.style" class="page-main w-full bg-white rounded-lg">
        <div class="p-4 leading-7" v-html="form?.design?.content">
        </div>

        <!-- 空白页 -->
        <div class="mt-[60px]" v-if="!form?.design?.content">
          <el-empty description="暂无内容"></el-empty>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Breadcrumb from "~/components/Breadcrumb.vue";
import type {Navigation} from "~/api/cms/navigation/model";

  withDefaults(
    defineProps<{
      layout?: any;
      form?: Navigation;
    }>(),
    {}
);

</script>
