Files
cdTestPlant3/cdTMP/src/views/testmanage/projmanage/cpns/preview.vue
2023-06-12 20:47:54 +08:00

26 lines
741 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<!-- 描述列表组件 -->
<a-modal width="1000px" v-model:visible="visible" :footer="false">
<template #title>{{ previewRecord.name }}</template>
<ma-info :columns="columns" :data="previewRecord" :column="3"></ma-info>
</a-modal>
</template>
<script setup>
import { ref, reactive } from "vue"
import MaInfo from "@/components/ma-info/index.vue"
// 提供open方法给外界并获取整行数据
const visible = ref(false)
const previewRecord = ref({})
const columns = ref([])
const open = (record, outColumns) => {
visible.value = true
previewRecord.value = record
columns.value = outColumns
}
defineExpose({ open })
// MA-INFO的columns
</script>
<style lang="less" scoped></style>