神仙都没用 преди 1 година
родител
ревизия
3dd5849c22
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      src/modules/extend/editor/preview.vue

+ 5 - 1
src/modules/extend/editor/preview.vue

@@ -1,7 +1,7 @@
 <template>
 	<div>
 		<slot>
-			<el-button @click="open()">点击查看</el-button>
+			<el-button @click="open()">{{ text }}</el-button>
 		</slot>
 
 		<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">,
 		required: true
 	},
+	text: {
+		type: String,
+		default: "点击查看"
+	},
 	props: Object
 });