<template>
  <wrapper
    fill
    margin
    padding
    background
  >
    <grid-table
      ref="table"
      :schema="schema"
    >
      <grid-table-item v-slot="item">
        <program
          :key="item.id"
          :program="item"
        >
          <div
            v-if="item.del"
            @click="onDel(item)"
          >
            删除
          </div>
        </program>
      </grid-table-item>
    </grid-table>
  </wrapper>
</template>

<script>
import mixin from './mixin'

export default {
  name: 'ProgramViewer',
  mixins: [mixin]
}
</script>
