<template>
  <sd-webflow ref="flow">
    <template v-slot:form="{ model }">
      <table>
        <tr>
          <sd-form-item-td name="title" :colspan="3" />
        </tr>
        <tr>
          <sd-form-item-td name="type" />
        </tr>
        <tr>
          <sd-form-item-td name="reason" :colspan="3">
            <a-textarea v-model="model.reason" :rows="4" placeholder="请输入推荐原因" allow-clear />
          </sd-form-item-td>
        </tr>
        <tr>
          <sd-form-item-td name="creatorName" />
          <sd-form-item-td name="creationTime" />
        </tr>
      </table>
    </template>
  </sd-webflow>
</template>

<script>
import moment from 'moment'
import components from './_import-components/km-knowledge-borrow-import'

export default {
  name: 'KmKnowledgeRecommend',
  metaInfo: {
    title: '知识借阅',
  },
  components,
  data() {
    return {}
  },
  created() {},
  methods: {
    disabledDate(current) {
      return current && current < moment().subtract(1, 'days')
    },
  },
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
