<template lang="">
    <Modal
        title="查看"
        ok-text="确认"
        cancel-text="取消"
        :visible="true"
        width="500px"
        @cancel="handleCancel"
        @ok="handleOk"
    >
        <span>失败原因：{{ data }}</span>
    </Modal>
</template>
<script lang="ts" setup name="TaskDetailSavePage">
import { defineProps } from 'vue';
// @ts-ignore
import { Modal } from 'linker-ui-components';
const props = defineProps({
    data: {
        type: Object,
        default: () => {},
    },
});

const emit = defineEmits(['change']);

const handleOk = () => {
    handleCancel();
};
const handleCancel = () => {
    emit('change', false);
};
</script>

<style lang="less" scoped></style>
