<template>
  <div class="container">
    <el-card shadow="always">
      <template #header>
        <p>流程</p>
      </template>

      <template>
        <div class="form-container">
          <template v-if="device === 'desktop'">
            <DesktopForm :device="device"></DesktopForm>
          </template>
          <template v-else>
            <MobileForm></MobileForm>
          </template>
        </div>
      </template>
    </el-card>
  </div>
</template>

<script>
import DesktopForm from "./DesktopForm.vue";
import MobileForm from "./MobileForm.vue";
export default {
  components: {
    DesktopForm,
    MobileForm
  },
  data() {
    return {}
  },
  methods: {},
  computed: {
    device() {
      return this.$store.state.app.device
    }
  },
}
</script>

<style scoped lang="scss">
::v-deep .el-card__header {

}
.container {
  padding: 20px;
}
.form-container {
}
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
}
</style>
