<template>
  <div class='PublishingChannelManagement'>
    <!-- 搜索栏 -->
    <div class="filter">
      <ButtonGradient>
        <template #prefix>
          <img src="@screen/images/refresh.svg" />
        </template>
        刷新
      </ButtonGradient>

      <InputSearch style="width: 402px;" />
    </div>

    <!-- 内容 -->
    <div class="body">
      <Card v-for="item in 8" :key="item" />
    </div>

    <!-- 分页 -->
    <div class="footer">
      <Pagination :total="90" />
    </div>
  </div>
</template>

<script>
import Pagination from '@screen/components/Pagination.vue';
import InputSearch from '@screen/components/InputSearch/index.vue';
import Card from './components/Card';
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue';

export default {
  name: 'PublishingChannelManagement',
  components: {
    Pagination,
    InputSearch,
    Card,
    ButtonGradient
  },
}
</script>

<style lang='scss' scoped>
.PublishingChannelManagement {

  padding: 21px;

  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 6;
  width: 100%;

  .filter {
    height: 60px;
    display: flex;
    justify-content: space-between;
  }

  .body {
    flex: 1;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 24px;
    // grid-row-gap: 9px;
    // grid-column-gap: 9px;
    grid-auto-rows: min-content;
  }

  .footer {
    margin-top: 15px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
</style>
