This commit is contained in:
神仙都没用 2023-10-12 15:34:05 +08:00
parent 9b8769d0b2
commit 3dd5849c22

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<slot> <slot>
<el-button @click="open()">点击查看</el-button> <el-button @click="open()">{{ text }}</el-button>
</slot> </slot>
<cl-dialog width="1000px" :title="title" append-to-body v-model="visible"> <cl-dialog width="1000px" :title="title" append-to-body v-model="visible">
@ -39,6 +39,10 @@ const props = defineProps({
type: String as PropType<"monaco" | "quill" | "wang">, type: String as PropType<"monaco" | "quill" | "wang">,
required: true required: true
}, },
text: {
type: String,
default: "点击查看"
},
props: Object props: Object
}); });