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

<script>
import mixin from './mixin'

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