You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
<!-- eslint-disable vue/no-mutating-props -->
|
|
<!--
|
|
@ 作者: 鲁智强
|
|
@ 时间: 2023-08-29 11:32:54
|
|
@ 备注:
|
|
-->
|
|
<script lang='ts'>
|
|
import { ref, defineProps, defineEmits, reactive, toRefs, onMounted } from "vue";
|
|
import {ElMessage, UploadProps } from "element-plus"; // Import ElDiaacd component
|
|
interface FormInfoac {
|
|
id: string;
|
|
age: string;
|
|
name: string;
|
|
sex: string;
|
|
ccc: string;
|
|
ade: string;
|
|
num: string,
|
|
abc: string,
|
|
acc: string,
|
|
ace: string,
|
|
acf: string,
|
|
acg: string,
|
|
acd: string,
|
|
abg: string,
|
|
}
|
|
export default {
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
diaacdShow: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
aceInfo: {
|
|
type: Object as () => FormInfoac,
|
|
default() {
|
|
return {};
|
|
},
|
|
},
|
|
arrayNum: {
|
|
type: Number,
|
|
default: 0,
|
|
},
|
|
},
|
|
emits: ["update:diaacdShow"],
|
|
setup(props, { emit }) { // Pass emit as a parameter to setup
|
|
const handleClose = () => {
|
|
// Use emit to update the diaacdShow prop and close the dialog
|
|
emit("update:diaacdShow", false);
|
|
};
|
|
// Other logic and methods
|
|
return {
|
|
handleClose,
|
|
};
|
|
},
|
|
}
|
|
</script>
|
|
<template>
|
|
// eslint-disable-next-line vue/no-mutating-props
|
|
<el-diaacd :model-value="true" :title="title" @close="handleClose">
|
|
<!-- Add your dialog content here -->
|
|
</el-dialog>
|
|
<style lang='scss' scoped>
|
|
|
|
</style>
|
|
|