<!-- 期货交易 -->
<template>
  <app-drawer v-model:show="show">
    <template #default>
      {{ selectedRow }}
    </template>
    <template #footer>
      <el-button @click="cancel">取消</el-button>
      <el-button @click="cancel" type="primary">提交</el-button>
    </template>
  </app-drawer>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import AppDrawer from '../../base/drawer/index.vue'

defineProps({
  selectedRow: {
    type: Object,
    default: () => ({})
  }
})

const show = ref(true);

const cancel = () => {
  show.value = false;
}
</script>