import { defineComponent, onMounted, PropType, ref, Teleport, toRef, toRefs } from 'vue' import { Row, Col, Tabs, Space, Button } from 'ant-design-vue' import { LeftOutlined } from '@ant-design/icons-vue' import './index.less' const RealView = defineComponent({ props: { open: { type: Boolean, default: false }, tabKey: { type: String, default: '' }, tabsList: { type: Array as PropType<{key: string, tab: string}[]>, default: () => [] }, footer: { type: Boolean, default: false } }, emits: ['cancel', 'tabChang', 'ok'], setup (props, ctx) { const { open, tabKey, tabsList, footer } = toRefs(props) const cancel = () => ctx.emit('cancel') const ok = () => ctx.emit('ok') const onTabChange = (key) => ctx.emit('tabChang', key) const TabsRender =